D
David Rogoff
Guest
Here's a weird one. I'm working on converting some old test code that
used the typical 'reg [n*8:1] pretend_im_a_string' to actual System
Verilog string variables. Mostly it's working, but I have a case in
which there's a string down inside a module and the testbench was
forcing it.
The old code was something like this:
force tb.mod0.string_reg = 40'h48454c4c4f";
which I changed to
force tb.mod0.really_a_string = "HELLO";
However, vcs really doesn't like this:
Error-[DTIDCIL] Dynamic type in declarative context
file.v, 917
"force tb.mod0.really_a_string = "HELLO";"
Argument: tb.mod0.really_a_string
String may not be used in declarative context.
Any ideas on this? S.V. issue? VCS issue?
Thanks,
David
used the typical 'reg [n*8:1] pretend_im_a_string' to actual System
Verilog string variables. Mostly it's working, but I have a case in
which there's a string down inside a module and the testbench was
forcing it.
The old code was something like this:
force tb.mod0.string_reg = 40'h48454c4c4f";
which I changed to
force tb.mod0.really_a_string = "HELLO";
However, vcs really doesn't like this:
Error-[DTIDCIL] Dynamic type in declarative context
file.v, 917
"force tb.mod0.really_a_string = "HELLO";"
Argument: tb.mod0.really_a_string
String may not be used in declarative context.
Any ideas on this? S.V. issue? VCS issue?
Thanks,
David