The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Modeling >> Behavioral Models >> The problem of bus width of output terminal https://designers-guide.org/forum/YaBB.pl?num=1583206952 Message started by Bisharp on Mar 2nd, 2020, 7:42pm |
Title: The problem of bus width of output terminal Post by Bisharp on Mar 2nd, 2020, 7:42pm For example, in these code written by Ken. the output has a bus width of 8. But when I create the symbol of this va view, the out<-1:0> will lead to an error... it seems the bits in the code is read as 0.. how can i create a editable bus width of terminal in symbol.. |
Title: Re: The problem of bus width of output terminal Post by Ken Kundert on Mar 2nd, 2020, 9:42pm In some of my examples I made the bus width a parameters. That works in Verilog but not in the Cadence design environment. Make sure the bus width is given as a literal constant, ex: 8 -Ken |
Title: Re: The problem of bus width of output terminal Post by Bisharp on Mar 3rd, 2020, 1:32am Thank you Ken :D I tried the definition like "`define BITS 8",and use "`BITS" in the code, it passed in the cadence environment. However, the bus width can 't edit, because the symbol is fixed. (I guess maybe the skill language can do something, i will try. sorry for my poor english |
Title: Re: The problem of bus width of output terminal Post by Ken Kundert on Mar 3rd, 2020, 3:03pm Correct, the bus width in symbols and schematics are fixed. They cannot be parameterized. -Ken |
Title: Re: The problem of bus width of output terminal Post by Andrew Beckett on Mar 5th, 2020, 7:03am You might find my article on Cadence Online Support helpful: How to create a VerilogA model of a DAC with a variable width bus input This shows how you can have a Verilog-A model with a variable width bus (for the symbol and the Verilog-A view itself). It is possible, it's just slightly tricky because you have to build a PCell to do the work to make the bus width variable. Regards, Andrew. |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |