cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
add.jky1
Visitor
Visitor
715 Views
Registered: ‎06-21-2018

Using Enumeration with VIO (Virtual Input/Output)

Hello,

 

I am using VIO to insert inputs (parameters) to my design.

 

One of the inputs is named "Mode", and currently it receives a number (0-7) that later another logic in my design translates this number to a enum struct in systemVerilog that i have.

 

For example - the number 3 in the VIO input translates into MODE3 in my design.

 

My question - is it possible to have the vio input "Mode" be some sort of drop menu that contains 8 enums (e.x MODE1,MODE2,MODE3 etc), each corresponding to a number between (0-7)?

 

Thanks.

0 Kudos
1 Reply
drjohnsmith
Teacher
Teacher
700 Views
Registered: ‎07-09-2009

easy answer

 

nope.

 

Oh I wish that one could,

   

the number of times I want to look at say a state machine , and see what state its in,

    unless I hard code the states to numbers, which is not efficient,

        or put in a hardware decode block in the fpga

              which is not efficient

 

<== If this was helpful, please feel free to give Kudos, and close if it answers your question ==>
0 Kudos