S
samuel
Guest
Hi,
I have an 255 bit inputs , and also a 8bit control input signal to
choose one from the 255 input and drive to the one bit output port.
I want to check if the connections are correct with assertion. The
best(lazy) way is to use the 8bit control input as the index in the
property as below :
module check_assertion(
input clk,
input port_a_tpa_pad,
input port_ae_tpa_pad,
//source
input [1:255] port_a_source,
//tpa slec
input [0:7] tpa_select,
);
integer port_index ;
always @(tpa_select) begin
$cast(port_index,tpa_select);
end
a_tpa: assert property (@(posedge clk) (port_ae_tpa) |-
endmodule
However, I got an error message from ncvlog :
ncvlog: *E,NULLLP (aaa.v,64|0): empty/illegal list of ports
[12.3.4(IEEE-2001)].
Does anyone know other possible way to handle this ?
I have an 255 bit inputs , and also a 8bit control input signal to
choose one from the 255 input and drive to the one bit output port.
I want to check if the connections are correct with assertion. The
best(lazy) way is to use the 8bit control input as the index in the
property as below :
module check_assertion(
input clk,
input port_a_tpa_pad,
input port_ae_tpa_pad,
//source
input [1:255] port_a_source,
//tpa slec
input [0:7] tpa_select,
);
integer port_index ;
always @(tpa_select) begin
$cast(port_index,tpa_select);
end
a_tpa: assert property (@(posedge clk) (port_ae_tpa) |-
);
endmodule
However, I got an error message from ncvlog :
ncvlog: *E,NULLLP (aaa.v,64|0): empty/illegal list of ports
[12.3.4(IEEE-2001)].
Does anyone know other possible way to handle this ?