[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cse141] Lab#3: creating ROM/RAM in Xilinx, expanded
CS141L students,
Q: How to build ROM and RAM in Xilinx?
A: To build ROM and RAM, you should do the following:
(1) Go to Schematic Editor->Tools->LogiBLOX Module Generator.
(2) From box "Module Type", choose "memories". Choose "ROM" or "SYNC_RAM".
(2.1) If there is only a "ROM" component on the screen, and it is grayed
out, you will need to change the component library that you are using:
(a) click on "Setup" button
(b) click on the Library tab, (third from the left)
(c) select xc4000e library
(d) if there is a warning saying that your design might not work
correctly, and it asks you if you want to continue, choose "yes". (This
warning doesn't apply to simulation, and doesn't affect it)
(3) input 256 for memory depth.
(4) Edit "Mem File", and input your programs/data into "mem file"
manually. Don't change any parameters in the file, unless you have a good
reason to.
(5) When creating ROM/RAM, leave those boxes that you don't use at default
values.
(6) To input your programs into ROM, when you edit the "mem file", you
will need to convert your assembly program into machine code. You will
then need to convert the 8-bit machine code into hexadecimal input. And
then type this hexadecimal input into "mem file" to generate your ROM.
Tim
141L lab tutor.