3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-26 18:45:34 +00:00

Docs: reworking scripting_intro

Now comes *after* example_synth, with references back to it.
Includes some minor adjustment to the `fifo.ys` script to better demonstrate the `select` command.
Still needs an updated section on `show`.

Also includes some other minor updates.
This commit is contained in:
Krystine Sherwin 2024-01-18 15:33:59 +13:00
parent 74d2c918cd
commit 14b7c581fa
No known key found for this signature in database
8 changed files with 139 additions and 120 deletions

View file

@ -27,7 +27,36 @@ Removing unused module `$abstract\fifo'.
Removing unused module `$abstract\addr_gen'.
Removed 2 unused modules.
yosys> select -set new_cells t:*
yosys> select -module addr_gen
yosys [addr_gen]> select -list
addr_gen
addr_gen/$1\addr[7:0]
addr_gen/$add$fifo.v:20$3_Y
addr_gen/$eq$fifo.v:17$2_Y
addr_gen/$0\addr[7:0]
addr_gen/addr
addr_gen/rst
addr_gen/clk
addr_gen/en
addr_gen/$add$fifo.v:20$3
addr_gen/$eq$fifo.v:17$2
addr_gen/$proc$fifo.v:0$4
addr_gen/$proc$fifo.v:13$1
yosys [addr_gen]> select t:*
yosys [addr_gen]*> select -list
addr_gen/$add$fifo.v:20$3
addr_gen/$eq$fifo.v:17$2
yosys [addr_gen]*> select -set new_cells %
yosys [addr_gen]*> select -clear
yosys> select -list addr_gen/t:*
addr_gen/$add$fifo.v:20$3
addr_gen/$eq$fifo.v:17$2
yosys> show -color maroon3 @new_cells -color cornflowerblue p:* -notitle -format dot -prefix addr_gen_hier