You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just installed the svinst from pip install svinst and want to try it with a simple module like this:
a.sv
module t1 #(parameter P="TRUE")();
reg a=0;
b #(.P(P))b1(.a(a));
endmodule
I can use the command line and get the full tree with no error by.
svinst a.sv --full-tree
But if I do the same thing in python,
import svinst
svinst.get_syntax_tree('a.sv')
I got the error message
in "<unicode string>", line 50, column 54:
... - Token: ""TRUE""
For me, it looks like it got confused by the quotation mark " in the string.
Maybe for the yaml it generate, the quotation mark should be escaped like "\"TRUE\""
We could do a quick fix for this, although the more robust solution would be to use a real YAML generator, rather than the ad-hoc generator I currently have.
If you end up fixing this on your side, feel free to submit a pull request, and I can help integrate it. Otherwise, I will have some time to look at this in about 2 weeks.
I just installed the svinst from
pip install svinst
and want to try it with a simple module like this:a.sv
I can use the command line and get the full tree with no error by.
But if I do the same thing in python,
I got the error message
For me, it looks like it got confused by the quotation mark " in the string.
Maybe for the yaml it generate, the quotation mark should be escaped like "\"TRUE\""
or the full error message
The text was updated successfully, but these errors were encountered: