New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: how to assign all 0 to input and floating all output #863
Comments
Original Redmine Comment anybody can help? |
Original Redmine Comment
Although if you're using systemverilog I would not use vl-width and instead use "'0". |
Original Redmine Comment Thanks a lot, I will try it when I come to office tomorrow, why I need this is RTL lint rule report bitwidth mismatch as error. |
Original Redmine Comment IMO if a lint tool reports ".port('0)" as a width mismatch, that tool is broken. In contrast note ".port('h0)" is a mismatch. |
Original Redmine Comment above command works perfect. .si (@"(concat vl-width \"'b0\")"), regards |
Original Redmine Comment vl-width is a number, and numbers do not automatically stringify in (Emacs-) Lisp. |
Original Redmine Comment si (@"(concat vl-width "'b0")"), can work, but I am confused about when to use \" and when to use ", could you help clarify it? |
Original Redmine Comment " is part of the template, Generally \" is what you want. |
Original Redmine Comment Hi, I am encountering an error with the following auto_template. I am trying to make output's floating and input's tied to zero's. May I pls know if I am missing anything here. in rtl: input [`LP_CMD_WIDTH-1:0] lp_cmd_type; output lp_ack; info that's placed in Testbench top AUTO_TEMPLATE
connection gets expanded as below:
Error msg seen: ncvlog: *E,EXPRPA (abc_wrap.sv,391|48): expecting a right parenthesis (')') [12.3.4(IEEE)]. Pls suggest rgds |
Original Redmine Comment !! |
Original Redmine Comment please check attached file "input0-floating.jpg" |
Original Redmine Comment Ignore verilog-mode this is really just a Verilog question. "(1+( |
Original Redmine Comment Thanks for the suggestions Wilson and Jie Xiao rgds |
Original Redmine Comment why sometimes I need to modify it as .comp_1_db (@"(if (string= vl-dir "input" ) (concat vl-width "'b0" ) "" )" ), //default input 0" also find another case, 723 line need use ", 724 can pass with \" 723 .DEBUG_BUS_o (@"(if (= @ 0) "yuv444_down_DEBUG_BUS" "yuv444_down_1_DEBUG_BUS" )" ), Really confused with " and \" could you help answer, thank you very much . |
Original Redmine Comment Here's an example that works without issues If the port matching the port name regex does not exist on the instance then the expansion will get messed up. -VS Jie Xiao wrote:
|
Original Redmine Comment This one worked for me, I had a problem with solutions above because I had parametrized ports thus output was like:
Solution to this problem, one more do concat:
|
Author Name: Jie Xiao
Original Redmine Message: 1565 from https://www.veripool.org
I want to tie all input of a bus to 0 and all output floating as
but it does not work, could you help on this.
Thanks a lot.
Arthas Jie Xiao
The text was updated successfully, but these errors were encountered: