T
Tobias Weingartner
Guest
This does not seem to want to be accepted by my verilog system.
The output declaration complains and does not seem to recognize
the << operator. Is the following legal? Any other way to do
this?
module decoder(enable,num,out);
parameter DBW = 1;
input enable; // Enable decoder output
input [DBW-1:0] num; // Line to enable
output [((1<<DBW)-1):0] out; // Output lines
assign out = (enable)?(1<<num):0;
endmodule
Thanks much for suggestions,
--
[100~Plax]sb16i0A2172656B63616820636420726568746F6E61207473754A[dZ1!=b]salax
The output declaration complains and does not seem to recognize
the << operator. Is the following legal? Any other way to do
this?
module decoder(enable,num,out);
parameter DBW = 1;
input enable; // Enable decoder output
input [DBW-1:0] num; // Line to enable
output [((1<<DBW)-1):0] out; // Output lines
assign out = (enable)?(1<<num):0;
endmodule
Thanks much for suggestions,
--
[100~Plax]sb16i0A2172656B63616820636420726568746F6E61207473754A[dZ1!=b]salax