The elements should be handled cyclic, so that the modulo operator % would come in handy. But it doesn't work (see below). What can I do instead? Can I use << operators? Thanks! module ring_operation(in,out);
The reason for the always_ff block not working is because you'v used the bit-wise AND (&) operator and not the logical AND (&&). Change the '&' to '&&' and try. It will trigger this time. /*this is the part that doesn't work always_ff @(posedge oneSec...
The elements should be handled cyclic, so that the modulo operator % would come in handy. But it doesn't work (see below). What can I do instead? Can I use << operators? Thanks! module ring_operation(in,out); parameter index;//can be called as any value in 0...range-1 ...