Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Systemverilog "math_real" equivalent

Status
Not open for further replies.

shaiko

Advanced Member level 5
Advanced Member level 5
Joined
Aug 20, 2011
Messages
2,644
Helped
303
Reputation
608
Reaction score
297
Trophy points
1,363
Visit site
Activity points
18,302
Hello,

VHDL has the "math_real" package.
This package has very useful functions such as trigonometrics, power, square root, etc...
Does Systemverilog have something equivalent ?
 

SystemVerilog has all these function built-in to the language, and not a separate package. See section 20.8.2 Real math functions in the IEEE 1800-2017 SystemVerilog LRM. Note that the power function is available as the operator x**y
 
  • Like
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
Thanks dave_59,
Can the trigonometric functions be used in synthesis (during compile time) to setup values for constants ?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top