Hi, This is a query on Verilog usage. If this is not the appropriate forum for this type of query, please ignore this request. Can I use parameters as part of the size specification for a sized number ? My simulator (gplcver), gives error. e.g. :- *** parameter DATA_WIDTH = 8; // o/p to external bus assign data = (CS && !WR) ? data_out : DATA_WIDTH'bz; *** I wish to avoid `defines in verilog source. -- Thanks, V
Guest
#1777534
Hi, just use
1 | |
instead of
1 | |
This will replicate the 1'bz the number of times specified by the parameter.
Thanks Hans ! I have made a note of the replication operator. -- V
Reply
Please log in before posting.