Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12597 Discussions

Using IDT71V416 as 16-bit RAM

Altera_Forum
Honored Contributor II
1,284 Views

At some point I removed the Nios I dev kit and I went to recompile my design yesterday and it couldn't find the IDT71V016 RAM device. I looked at out board and noticed that we use the 71V416, not the 71V016. I asked our hardware guy and he said that SPOC Builder assumes you are using two 71V416s if you add them to your design so we kind if kludge it into working by using the 71V016. Is there a way to use the 71V416 as a 16-bit device? Do I simply need to go into the .ptf and change all occurences of 32 to 16? Why isn't this an option in SOPC Builder? Is it un heard of to use less than 1M of memory?

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
218 Views

I added the ram as user logic  

(remark one userlogic for both ram chips,  

this is necessary to get one block of memory for system library properties) 

 

 

PORTNAME WIDTH DIRECTION SHARED TYPE 

address 19 input yes address  

write_n 1 input yes write_n 

read_n 1 input yes read_n 

data 16 inout yes data 

chipselect_n 1 input --- chipselect_n 

be_n 2 input yes byteenable_n 

 

 

I added external logic (one not and two ors's) to generate the 

two different CS signals 

 

SRAM_CS0_N = SRAM_CS or A19 

SRAM_CS1_N = SRAM_CS or (not A19) 

 

if you want to use only one ram chip, then reduce address to 18 and remove 

external logic.
0 Kudos
Altera_Forum
Honored Contributor II
218 Views

Dave, 

 

The reasoning is that we cannot possibly test every permutation of RAM available. Instead the we provided pre-fabbed support for the devices on our development boards, and then the I/F to user logic (now Component Editor) to add a custom interface that has the exact width/depth/timing settings that you need.
0 Kudos
Altera_Forum
Honored Contributor II
218 Views

Fischer & Jesse, 

 

 

Thank you both for your help. I'll try out the user logic route.
0 Kudos
Reply