mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-07 19:51:23 +00:00
Added tests/techmap/mem_simple_4x1
This commit is contained in:
parent
79f8944811
commit
81b3f52519
8 changed files with 215 additions and 0 deletions
29
tests/techmap/mem_simple_4x1_tb.v
Normal file
29
tests/techmap/mem_simple_4x1_tb.v
Normal file
|
@ -0,0 +1,29 @@
|
|||
module tb;
|
||||
|
||||
reg clk, rst;
|
||||
wire [7:0] out;
|
||||
wire [4:0] counter;
|
||||
|
||||
uut uut (clk, rst, out, counter);
|
||||
|
||||
initial begin
|
||||
#5 clk <= 0;
|
||||
repeat (100) #5 clk <= ~clk;
|
||||
#5 $finish;
|
||||
end
|
||||
|
||||
initial begin
|
||||
rst <= 1;
|
||||
repeat (2) @(posedge clk);
|
||||
rst <= 0;
|
||||
end
|
||||
|
||||
always @(posedge clk)
|
||||
$display("%d %d %d", rst, out, counter);
|
||||
|
||||
initial begin
|
||||
$dumpfile("mem_simple_4x1_tb.vcd");
|
||||
$dumpvars(0, uut);
|
||||
end
|
||||
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue