How can we concatinate the interface signals, im trying to concatinate but it is throwing invalid variable declaration
interface check_intr(input wire [31:0] Interrupt);
endinterface
im binding this interface in another interface
interface all_interfaces();
check_intr intr(.Interrupt0,
.Interrupt1,
…,
.Interrupt31);
endinterface
can you please let us know how can we concatinate interface signals
In reply to srikanth.verification:
It would’ve helped to see the declarations of everything, but I think you want:
check_intr intr(.Interrupt({dut.a, dut.b, dut.c, ... }) );
In reply to dave_59:
Hi Dave, thank you for the reply, can you please let me know that Interrupt 31st bit mapping to dut.a or Interrupt 0th bit mapping to dut.a.
In reply to srikanth.verification:
It’s just a concatenation as if you wrote
Interrupt = {dut.a, dut.b, dut.c, ... };
So Interrupt[31] = dut.a;