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.

How does the procedure with a generic enumeration parameter look like?

Status
Not open for further replies.

zoidberg

Newbie level 1
Joined
Sep 10, 2008
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
Hey,

in trying to implement a generic procedure which has the ability to modify the current state.

it looks like procedure(FSM_NEXT_STATE, NEW_STATE)

the problem is the encoding and the type.
Im trying an approach to convert the state into an integer , change that value and convert back to the state type. It this a useful way?

how does procedure with a generic enumeration parameter has to look? I know how it looks with a specific unconstrained vector. But not if the type is unknown. Is this possible?

thanks
Bernhard
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top