mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-22 23:25:51 +00:00
twine: fix replayability, reduce TwineSearch usage
This commit is contained in:
parent
e9eb3889b7
commit
7c73fd62e4
41 changed files with 273 additions and 272 deletions
|
|
@ -7,6 +7,6 @@ import gen_tests_makefile
|
|||
|
||||
gen_tests_makefile.generate_autotest("*.v", "",
|
||||
"""if grep -Eq 'expect-(wr-ports|rd-ports|rd-clk)' $@; then \\
|
||||
$(YOSYS) -f verilog -qp "proc; opt; memory -nomap; dump -outfile $(@:.v=).dmp t:\\$$mem_v2" $@; \\
|
||||
$(YOSYS) -f verilog -qp "proc; opt; memory -nomap; dump -readable -outfile $(@:.v=).dmp t:\\$$mem_v2" $@; \\
|
||||
python3 validate.py $@ $(@:.v=).dmp; \\
|
||||
fi""")
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
autoidx 1
|
||||
twines
|
||||
leaf 0 "/home/emil/repo/"
|
||||
suffix 1 0 "foo/"
|
||||
suffix 2 1 "bar.v"
|
||||
suffix 3 2 ":10.1-10.5"
|
||||
suffix 4 2 ":11.1-11.5"
|
||||
leaf 1009 "/home/emil/repo/"
|
||||
suffix 1010 1009 "foo/"
|
||||
suffix 1011 1010 "bar.v"
|
||||
suffix 1012 1011 ":10.1-10.5"
|
||||
suffix 1013 1011 ":11.1-11.5"
|
||||
end
|
||||
module \chain
|
||||
attribute \src "@3"
|
||||
attribute \src "@1012" # /home/emil/repo/foo/bar.v:10.1-10.5
|
||||
wire input 1 \a
|
||||
attribute \src "@4"
|
||||
attribute \src "@1013" # /home/emil/repo/foo/bar.v:11.1-11.5
|
||||
wire output 2 \b
|
||||
connect \b \a
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,15 +1,16 @@
|
|||
autoidx 1
|
||||
twines
|
||||
leaf 0 "everything.v"
|
||||
suffix 1 0 ":1.1-1.10"
|
||||
suffix 2 0 ":2.5-2.8"
|
||||
concat 3 1 2
|
||||
leaf 1009 "everything.v"
|
||||
suffix 1010 1009 ":1.1-1.10"
|
||||
suffix 1011 1009 ":2.5-2.8"
|
||||
concat 1012 1010 1011
|
||||
leaf 1013 "tiny"
|
||||
end
|
||||
attribute \src "@3"
|
||||
module \tiny
|
||||
attribute \src "@1"
|
||||
attribute \src "@1012" # everything.v:1.1-1.10|everything.v:2.5-2.8
|
||||
module $pub@1013 # \tiny
|
||||
attribute \src "@1010" # everything.v:1.1-1.10
|
||||
wire input 1 \a
|
||||
attribute \src "@2"
|
||||
attribute \src "@1011" # everything.v:2.5-2.8
|
||||
wire output 2 \b
|
||||
connect \b \a
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue