M
Michael Meeuwisse
Guest
Hi,
I'm still not that familiar with verilog and am getting some weird
errors. Hopefully somebody can make some sense out of them because
google can't.
I have:
reg [1: 0] cmd [1: 0];
And during reset want to do:
cmd <= 0;
When checking syntax (Xilinx Webpack 10.1.01) This gives "Illegal left
hand side of nonblocking assignment" which is really annoying. I figured
I could do something like this:
{cmd[0], cmd[1], cmd[2], cmd[3]} <= 0;
But this gives the warning (twice, for 2 & 3) "Index 1 in word-select of
vector reg array 'cmd' is out of range". Ehm, no? It isn't, is it?
Thanks in advance,
Michael
I'm still not that familiar with verilog and am getting some weird
errors. Hopefully somebody can make some sense out of them because
google can't.
I have:
reg [1: 0] cmd [1: 0];
And during reset want to do:
cmd <= 0;
When checking syntax (Xilinx Webpack 10.1.01) This gives "Illegal left
hand side of nonblocking assignment" which is really annoying. I figured
I could do something like this:
{cmd[0], cmd[1], cmd[2], cmd[3]} <= 0;
But this gives the warning (twice, for 2 & 3) "Index 1 in word-select of
vector reg array 'cmd' is out of range". Ehm, no? It isn't, is it?
Thanks in advance,
Michael