I’ve got an assertion that depending on parameter may or may not exist.
generate
if (CONFIG_EN != 0) begin
initial begin
$assertoff(0, u_block.config_enabled.u_another_bock.ast_rule);
end
end
endgenerate
In the design the generate block config_enabled
may exist. I’ve tried disabling the assertion in a top level testbench but in configurations where config_enabled
does not exists the TB does not compile as the heirarchy in the $assertoff
does not exist. Does anyone know a way around this?
Because of our CI flow I can’t really use `defines to guard this.
Also I am using Visualizer.