Skip to content

Commit 0bc0d89

Browse files
author
Rafal Kapuscik
committed
Update plugin documentation
Signed-off-by: Rafal Kapuscik <[email protected]>
1 parent 03c1191 commit 0bc0d89

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

systemverilog-plugin/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,18 @@ yosys> write_edif counter.edif
100100
101101
```
102102
As a result we get a `counter.edif` file that can be further processed to get the bitstream.
103+
104+
### Parsing multiple files
105+
When parsing multiple files you can either pass them together to the `read_systemverilog` command
106+
or read them one by one using `-defer` flag. In the latter case, you will need to call
107+
`readsystemverilog -link` after processing all files to elaborate them. An example flow would
108+
look like below:
109+
```
110+
plugin -i systemverilog
111+
# Read each file separately
112+
read_systemverilog -defer dut.sv
113+
read_systemverilog -defer top.sv
114+
# Finish reading files, elaborate the design
115+
read_systemverilog -link
116+
# Continue Yosys flow...
117+
```

0 commit comments

Comments
 (0)