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++
12622 Discussions

IDE New Project needs writable memory

Altera_Forum
Honored Contributor II
1,364 Views

Hello: 

 

I'm attempting to create a second project in the Eclipse IDE 

The design uses a cyclone and I've got a simple NIOS-II with real general FPGA logic function. 

 

For memory I have a FLASH and RAM attached to the bus. I used the 'Idterface to user logic' as the module to interface to both. 

When I attempy to create a project I get the message 'The SOPC does not have a writable memory device mastered by the CPUs data master.' 

 

So my question is how best to fix this............. 

 

THanks 

George
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
654 Views

Perhaps I didn't make this clear enough. 

 

I've created a NIOS II project and plan to use a simple FLASH and STATIC RAM to hold the program and stack. 

 

I connect the FLASH and RAM using the 'interface to user logic' module in SOPC builder. 

 

When I try to create a new project in the ecipse IDE I get an error that there is no writable memory. 

 

So How do I convince the IDE that the RAM at the end of the interface to user logic is OK to use?? 

 

Thanks 

George
0 Kudos
Altera_Forum
Honored Contributor II
654 Views

It sounds as though you need to mark the memory as writable. Try setting Is_Writable = "1"; in the appropriate SYSTEM_BUILDER_INFO section of your PTF file.

0 Kudos
Altera_Forum
Honored Contributor II
654 Views

In addition to what wombat states: 

 

Have you specified an explicit pin of avalon type "write" or "write_n" to the external SRAM? This would tell the wizard that your memory is writable (basically achieving what wombat suggests with a manual edit of the file). 

 

My concern is that you get your control sigaling correct so that the RAM can be physically written to in hardware. If the SRAM chip you're using has a *common* pin (rather than separate read and write inputs), write/read_n for example, I'd reccomend that you specify the 'write' pin and leave read_n out; Avalon should infer reads automatically if your master asks for an address and does not assert write.
0 Kudos
Altera_Forum
Honored Contributor II
654 Views

Both good (ie. correct) answers. 

 

I made the write control line shared but then I also needed to select the 'Bus Interface Type' as Memory. And now I can build a new Eclipse project. 

 

 

THanks 

George
0 Kudos
Altera_Forum
Honored Contributor II
654 Views

Hi  

i want to create a project with nios II IDE but i have the same error like gmm can't create 

because The SOPC Builder System does not have a writable memory device mastered by the specified CPU's data master 

can any body help me thks a lots
0 Kudos
Reply