improved handling of string parameters

- variable-size string parameter conversion restricted to modules which
  depend on the size of the string parameter
- string localparams are typed as appropriately sized vectors
- remove ordered parameter binding logic from string param conversion
This commit is contained in:
Zachary Snow
2021-05-28 20:27:14 -04:00
parent 280d3dc5a6
commit 7ffea36ddd
6 changed files with 71 additions and 44 deletions
+10
View File
@@ -0,0 +1,10 @@
module other;
parameter STR = "missing";
initial $display("other: STR=%s $bits(STR)=%0d", STR, $bits(STR));
endmodule
module mod;
parameter STR = "missing";
initial $display("mod: STR=%s", STR);
other #("HI") m();
endmodule