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 much are it default value of enumeration in vhdl?

Status
Not open for further replies.

taoshen

Junior Member level 1
Joined
Mar 11, 2004
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
130
example:

==========================

type multypes is (none, iterative, m32x8, m16x16, m32x16, m32x32)

=============================

value of none is 0 , 00, or 000 ?

value of iterative is 01, 001 or 0001?
 

It depends on the synthesis mode: one-hot or etc. If onehot has been selected, "none" is synthesized to -----1. Otherwise it will synthesize to 0, "iterative" to 1 and etc. You also can specify the value of them, i.e. (none=0, ...).

Regards,
KH
 

how to decid the synthese mode?
 

Synthesis mode is one of switches in the synthesis tools and you as a designer can change it. For example in Leonardo, after selecting Tools --> Synthesis Wizard --> Next, you will see "encoding Style" when you read input files. Its default value is "Auto" which can be set to "Binary", "Onehot", "Twohot", "Random" and "Gray".

Regards,
KH
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top