Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

system verilog typedef

helloo all

i need some help with the system verilog typedef construct. in c there is a usage of the typedef as " typedef void number (int, int)". here the example provides the type number for a function returning no value and taking two int arguments. is there is any similar structure in system verilog. i am searching for a straight conversion or some round about way in which i can implement the same functionality.

thanks in advance

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I do not believe you need to do this in Verilog or SystemVerilog. You can reference a function before it has been defined.