mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-08 04:01:25 +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
17
tests/fmt/always_display.v
Normal file
17
tests/fmt/always_display.v
Normal file
|
@ -0,0 +1,17 @@
|
|||
module m(input clk, rst, en, input [31:0] data);
|
||||
|
||||
`ifdef EVENT_CLK
|
||||
always @(posedge clk)
|
||||
`endif
|
||||
`ifdef EVENT_CLK_RST
|
||||
always @(posedge clk or negedge rst)
|
||||
`endif
|
||||
`ifdef EVENT_STAR
|
||||
always @(*)
|
||||
`endif
|
||||
`ifdef COND_EN
|
||||
if (en)
|
||||
`endif
|
||||
$display("data=%d", data);
|
||||
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue