Skip to content

Use $param_given instead of `NOT_GIVEN #2

Description

@gjcoram

These parameters use a "magic number" to try to detect if a parameter was specified or not:

parameter real TEMP = -`NOT_GIVEN from [`P_CELSIUS0:inf];  // Device temp [C]
parameter real TNOM = -`NOT_GIVEN; // Temperature [C]

But the Verilog-AMS LRM has had the $param_given function since version 2.2 in 2004. This function should be used instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions