usage of parameters in size spec ?

OP (Company: Student) #1777363
Rate this post
• ▲ useful
▼ not useful
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

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.