mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
Merge pull request #2339 from zachjs/display-format-0s
Allow %0s $display format specifier
This commit is contained in:
commit
22765ef0a5
2 changed files with 8 additions and 1 deletions
7
tests/simple/string_format.v
Normal file
7
tests/simple/string_format.v
Normal file
|
@ -0,0 +1,7 @@
|
|||
module top;
|
||||
parameter STR = "something interesting";
|
||||
initial begin
|
||||
$display("A: %s", STR);
|
||||
$display("B: %0s", STR);
|
||||
end
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue