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

new module problem on SOPC

Altera_Forum
Honored Contributor II
1,113 Views

Hi, 

I have a problem with a module (with datain, dataout, rd,wr,cs,clk,....etc.) that I made and I want to use it in SOPC as a new device. 

The problem is in the interface with the software C, 

 

When I try to write data to the module , I can't see it on the memory map. 

 

 

 

As anyone know what I need to do to fix it? 

 

Thanks 

Tal
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
433 Views

Place in the component a register with a constant value and read it first. Try some simple RW registers first, before testing the final component. Simulate (for example ModelSim or Quartus integrated simulator) the component before using it. 

 

You may try adding signal tap to check signals inside your component. 

 

You may have common problems with accessing the cache instead of the actual component, but this is not expected for components that are not memory. 

 

IzI
0 Kudos
Altera_Forum
Honored Contributor II
433 Views

Hi, 

I tried to write constant values first and read them, but I didn't see them on the memory map too. I simulated the component and it worked OK on the simulation. 

The component isn’t a memory but it has 4 registers inside it. 

 

 

Tal
0 Kudos
Reply