Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
shtaxxx committed Oct 17, 2018
2 parents 41d292e + 755fa21 commit 7fd5703
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 11 deletions.
35 changes: 24 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,43 +62,54 @@ Requirements

- Icarus Verilog: 10.1 or later

sudo apt install iverilog
```
sudo apt install iverilog
```

- Jinja2: 2.10 or later
- Pyverilog: 1.1.2 or later

pip3 install jinja2 pyverilog

```
pip3 install jinja2 pyverilog
```

Install
--------------------

Install IPgen.

python3 setup.py install
```
python3 setup.py install
```


Getting Started
==============================

You can use the ipgen command from your console.

ipgen
```
ipgen
```

You can find the sample projects in 'tests'. Now let's see 'tests/memcpy'. There is an input source code.

- memcpy.v : User-defined Verilog code using IPgen abstract memory interfaces

Then type 'make' and 'make run' to simulate sample system.

make build
make sim
```
make build
make sim
```

Or type commands as below directly.

ipgen default.config -t memcpy -I include tests/memcpy/memcpy.v
iverilog -I memcpy_ip_v1_00_a/hdl/verilog/ memcpy_ip_v1_00_a/test/test_memcpy_ip.v
./a.out
```
ipgen default.config -t memcpy -I include tests/memcpy/memcpy.v
iverilog -I memcpy_ip_v1_00_a/hdl/verilog/ memcpy_ip_v1_00_a/test/test_memcpy_ip.v
./a.out
```

IPgen compiler generates a directory for IP-core (memcpy\_ip\_v1\_00\_a, in this example).

Expand All @@ -118,7 +129,9 @@ IPgen Command Options
Command
------------------------------

ipgen [config] [-t topmodule] [--ipname=ipname] [--memimg=memimg_name] [--usertest=usertest_name] [-I include]+ [-D define]+ [file]+
```
ipgen [config] [-t topmodule] [--ipname=ipname] [--memimg=memimg_name] [--usertest=usertest_name] [-I include]+ [-D define]+ [file]+
```


Description
Expand Down
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,15 @@ Requirements

- Icarus Verilog: 10.1 or later

::

sudo apt install iverilog

- Jinja2: 2.10 or later
- Pyverilog: 1.1.2 or later

::

pip3 install jinja2 pyverilog

Install
Expand Down

0 comments on commit 7fd5703

Please sign in to comment.