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: records for a bus of digital signals

Status
Not open for further replies.

xlynx3

Newbie level 3
Joined
Feb 22, 2008
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,305
vhdl: records for a bus

i'm trying to use records. But i need a bus of DIGITAL type where all bits of the bus should have the properties of DIGITAL type. How can I write it?

Thanks in advance..

Code:
type DIGITAL  is
record

            LEVEL      : REAL range -0.6 to 1.8;
            LOGIC     : STD_ULOGIC;
            STATUS   : MYSTATUS;
	      
end record;
 

vhdl: records for a bus

Real isn't a synthesizable data type, only provided for simulation testbench and compile time calculations. I don't see, what you try to achieve. If level represents a quantized analog signal, you have to define a suitable data format first. MYSTATUS would need to be typed defined before.
 

Re: vhdl: records for a bus

I'm writing this code for verfication purposes. I'm trying to standartize the errors messages etc. My aim is to writing the code with real values to represent analog blocks in digital simulations.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top