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.

[SOLVED] RAM modeling in VHDL using buffer types

Status
Not open for further replies.

aravi.ab

Newbie level 3
Joined
Aug 24, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
India
Activity points
1,303
Hi,

Can we use buffer types instead of array types to model memory and a tri sate buffer to enable and disable the read and write pointers in VHDL.

for eg : TYPE mem ARRAY IS (0 to 32) OF STD_LOGIC_VECTOR(7 downto 0)
or can we write like this

TYPE mem BUFFER IS (0 to 32) OF STD_LOGIC_VECTOR(7 downto 0)
 

Re: RAM modeling in VHDL

Buffer is just a variant of the output type that can be read-back internally. The interface of a RAM model will necessarily use an inout type for the data port. Building a RAM model involves multplexing a memory array to the data port for read and write.

I guess, you should start with learning VHDL syntax. Both examples in your post show incorrect syntax. Or study existing RAM models from a text book or a vendor tool tutorial.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top