Product Documentation
Digital Design Netlisting and Simulation SKILL Reference
Product Version IC23.1, June 2023

hnlRegPreNetlistTrigger

hnlRegPreNetlistTrigger(
S_triggerFunc
)
=> t / nil

Description

Registers a trigger, which is a user-defined SKILL procedure that is called before the netlist generation.

The registration can be done in the .simrc file, at the CIW, or any other location that will be executed before generating the netlist.

Arguments

S_triggerFunc

A symbol representing a user-defined function that needs to be called before netlist generation.

Value Returned

t

The trigger registration is successful.

nil

The trigger registration was unsuccessful.

Examples

The following example shows a user-defined SKILL procedure, which is called before netlist generation.

procedure( Func()
let(()
printf("In Func\n")
)
)

If you want the above procedure Func to be run only for Verilog and SytemVerilog netlisting, set simSimulator to "verilog". For Spectre, set simSimulator to "spectre". If you do not set this variable, then the trigger will run for all netlisters.

If more than one triggers have been registered, then they are run in the order of registration.

when(simSimulator == "verilog"
hnlRegPreNetlistTrigger('Func)
)

Related Topics

OSS Functions


Return to top
 ⠀
X