I'm new to verilog and I use Modelsim. How can I write an 8-bit array as input of a module in systemverilog that its bits are bits of another array?
something like this:
module cmp2(input[1:0] A,B, output GT,EQ);
mux8to1 M1(8'b0~B[0]11000B[0], 3'bB[1]A[1]A[0], GT);
mux8to1 is defined in following format of inputs:
module mux8to1(input[0:7]a, input[2:0]s, output w);
compile of "cmp2" fail with errors:
Illegal digit for specified base in numeric constant.
near "[": syntax error, unexpected '[', expecting ')'.
I will appreciate any advice of you guys on help me to solve this.