Hi All,
I would like to detect Z (high impedence) and raise a flag; But I could not do in the following way;
…
initial begin
clk <= 0;
rstn <= 0;
#20 rstn <= 1'hz;
#15 rstn <= 1;
#80 rstn <= 0;
#50 rstn <= 1;
//method1
if ($isunknown(rstn)) begin
$display(“%t DETECTED Z:: rstnnnnn=%0d”, $time, rstn);
end
//method2
//a = $isunknown(rstn);
//if (a)
//$display(“%t DETECTED Z:: rstn=%0d”, $time, rstn);
From both the methods, not able to get the display, can someone suggest ?