Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

need the VHDL coding for 8051 RAM (128 bytes)

Status
Not open for further replies.

gowry

Newbie level 1
Joined
Oct 16, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
kottayam
Activity points
1,285
hai
I am doing my project in 8051 microcontroller .so i need the coding for 8051 RAM(128 bytes).kindly send me the coding


thanks alot
Gowry[/code]
 

Aser

Member level 5
Joined
Jul 1, 2004
Messages
88
Helped
10
Reputation
20
Reaction score
5
Trophy points
1,288
Activity points
950
It's funny.
A person who designs such a complex project must know how to describe a set of
128 registers.
Another hand, this register memory is rather complex and may afford
some invention efforts because the register content takes part both in
ALU operations and as address index and in bit handling operations.
Anyway, they can be inferred from a clocked process like

Process(clk,rst)
if rst='1' then
reg(18)<=X"00"; -- stack pointer
elsif clk='1' and clk'event then
if rg_ena='1' then
case(addrwr) is
when X"00" => reg(0)<=DI;
...
when X"7f"=>reg(127)<=DI;
...
end case;
end if;
end if;
end process;
DO1<=reg(conv_integer(addrrd1));
DO2<=reg(conv_integer(addrrd2));
...
or something like this.
A BlockRAM can be instantiated, but the registers must be treated in sequence.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top