Quantcast
Channel: Cadence Functional Verification Forum
Viewing all articles
Browse latest Browse all 1093

Use of a specify block within a SystemVerilog interface

$
0
0

Hi All, 

I'm currently converting a legacy testbench to use SystemVerilog interfaces between the DUT and some behavioural models. The testbench code includes a specify block that uses the $width system task to check for glitches on a signal between the DUT and one of the models.

I've tried to update the code so that the $width task now checks the equivalent signal within the interface instance, which connects the DUT and the model. For example:

specify

$width(posedge interface_inst.my_signal, 100, 0, my_notifier);

endspecify

Unfortunately Incisive reported a ncvlog error (ILLHIN) for the line containing the $width task call:

"A hierarchical name was used as an identifier where a hierarchical name is not allowed. Use a simple identifier."

I then moved the specify block to the interface itself, as on reflection, this seems a more suitable place anyway. The specify block is defined within the scope of the interface declaration. For example:

interface my_interface ();

logic my_signal, ...etc

modport ( ...);

specify

$width(posedge my_signal, 100, 0, my_notifier);

endspecify

endinterface

This time, Incisive reported a different ncvlog error (DECINM) for the line containing the specify keyword:

"The declaration is only valid within a module, interface, and program and not supported within task, function and package."

The message clearly states that a specify block within an interface is supported so why is Incisive reporting an error?

Thanks in advance for any help.


Viewing all articles
Browse latest Browse all 1093

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>