mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-28 05:58:57 +00:00
fmt: add tests for Verilog round trip of format expressions.
This commit is contained in:
parent
67052f62ec
commit
c285880684
5 changed files with 95 additions and 2 deletions
13
tests/fmt/roundtrip_tb.v
Normal file
13
tests/fmt/roundtrip_tb.v
Normal file
|
@ -0,0 +1,13 @@
|
|||
module tb;
|
||||
reg clk = 1'b0;
|
||||
reg [31:0] data;
|
||||
|
||||
m dut(.clk(clk), .data(data));
|
||||
|
||||
initial begin
|
||||
data = 32'haa;
|
||||
#10; clk = 1; #10; clk = 0;
|
||||
data = 32'haaaa;
|
||||
#10; clk = 1; #10; clk = 0;
|
||||
end
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue