3
0
Fork 0
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:
Krystine Sherwin 2025-11-14 11:47:40 +13:00
parent 7d79c11ca9
commit 3787ea19cd
No known key found for this signature in database
7 changed files with 152 additions and 49 deletions

View 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