mirror of
https://github.com/YosysHQ/yosys
synced 2025-12-05 19:42:25 +00:00
tests/memfile: Test dump_meminit
Change tests/memfile to a mktest, moving the prior run-test.sh contents into a new read_dir.sh. Add dump.ys (and friends) for testing dump_meminit.
This commit is contained in:
parent
7d79c11ca9
commit
3787ea19cd
7 changed files with 152 additions and 49 deletions
17
tests/memfile/dump_gold.il
Normal file
17
tests/memfile/dump_gold.il
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
module \gold
|
||||
wire input 1 \clk
|
||||
wire input 1 \wen
|
||||
wire input 3 \addr
|
||||
wire input 4 \wdata
|
||||
wire input 4 \rdata
|
||||
cell $__MEMORY \m
|
||||
parameter \WIDTH 4
|
||||
parameter \ABITS 3
|
||||
parameter \INIT 32'11011110101011011011111011101111
|
||||
connect \PORT_A_CLK \clk
|
||||
connect \PORT_A_ADDR \addr
|
||||
connect \PORT_A_WR_DATA \wdata
|
||||
connect \PORT_A_WR_EN \wen
|
||||
connect \PORT_A_RD_DATA \rdata
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue