mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
ast: use new format string helpers.
This commit is contained in:
parent
9ea241711e
commit
9f8e039a4b
4 changed files with 48 additions and 161 deletions
|
@ -5,7 +5,7 @@ module top;
|
|||
localparam b = $sformatf("%d", 4'b011);
|
||||
generate
|
||||
if (a != "0x5a") $error("a incorrect!");
|
||||
if (b != "3") $error("b incorrect!");
|
||||
if (b != " 3") $error("b incorrect!");
|
||||
endgenerate
|
||||
endmodule
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue