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.

writing instructions to RAM of a microcontroller

Status
Not open for further replies.

goodpranoy

Junior Member level 3
Junior Member level 3
Joined
Dec 5, 2013
Messages
29
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
201
hi everyone,

i am presently doing a project "design of a simple functional microcontroller on FPGA".

i have done this with just 2 registers.

to keep the design simple, instead of an I/O port i have designed separate ports for both input and output.

i also used a ROM instead of a RAM.

now i want to convert my ROM into a RAM to which we can write instructions from outside.

how can i do this transition from ROM to RAM?

is the separate input port enough to give both the data and address to the RAM? if so how can i multiplex the signals?
 

one way would be to use the RAM as an instruction storage and load it on power up with the ROM content, which can be altered during operartion or reload also from external.

Enjoy your design work!
 

Let me understand: have you done a VHDL/Verilog model of a microcontroller over a FPGA, right?

You can make bydirectional ports (like in a real microcontroller) simply declaring a port as "inout" and making a double antiparallel tristate for input/output direction.

A RAM, on a FPGA/CPLD, can be either a real external RAM, or simply an empty array of size equal to ram space that you want.

Cheers
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top