3
0
Fork 0
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:
whitequark 2020-11-29 08:57:07 +00:00 committed by Marcelina Kościelnicka
parent 9ea241711e
commit 9f8e039a4b
4 changed files with 48 additions and 161 deletions

View file

@ -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