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.

VHDL Native Maximum function

Status
Not open for further replies.

shaiko

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

Is there a native VHDL function that receives 2 or more integers and returns the higher result ?
 

In VHDL 2008, yes

result := maximum(a, b)
result := maximum(some_array);

minimum and maximum are defined for all scalar and enumerated types and arrays of those types.

- - - Updated - - -

Let me google that for you...........

Yes.

Only for vhdl 2008.
Pre 2008 they are not defined in any part of the langauge.
 
Last edited:
For some reason Quartus doesn't accept it.
Even though I have the tool set to VHDL 2008 I get this error:

Error (10482): VHDL error object "maximum" is used but not declared

Modelsim does accept the syntax...
 

For some reason Quartus doesn't accept it.
Even though I have the tool set to VHDL 2008 I get this error:



Modelsim does accept the syntax...

Yes, because Quartus VHDL 2008 support is pretty laughable, other than Quartus prime pro 16.
No 2008 versions of any VHDL package are supported. Hence the lack of min/max functions.
Best stick with VHDL 1993 for synthesisable code for the time being.
 
  • Like
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top