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.

help in type conversion in vhdl

Status
Not open for further replies.

nastarans

Newbie level 1
Joined
Sep 24, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,290
hi im new in vhdl and hope somebody can help me
i have problem in type conversion in vhdl from nemeric to array for example is this code correct?
product:= routing(0)*rulevaluation(0)+routing(1)*rulevaluation(1)+routing(2)*rulevaluation(2)+routing(3)*rulevaluation(3)+routing(4)*rulevaluation(4)
routing and rulevaluation is array and product is real
Thank you for your help
 

"array" allone isn't a type. Please post the full type or signal definition.

In addition, real isn't a synthesizable VHDL type, it's only provided for internal calculations in simulator testbenches.
 

Hi.I think its betther that u define your signals and variables with "unsigned" type,and use the "nemeric" library.
 

real is not synthesizable , you can use ipcores for fixed or float math.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top