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

Problem using DPRAM

Altera_Forum
Honored Contributor II
1,007 Views

Hello, 

I have problem using DPRAM.. 

 

I am connecting NIOS II with portB of altsyncram, 

portA of altsyncram with external pin for my DPRAM. 

 

I can connect NIOS with portB of altsyscram using SOPC Builder, 

but I have problem connecting portA of altsyncram to external pin. 

 

What I need to know is how to connect: 

 

data_a[] 

address_a[] 

wren_a 

q_a[] 

 

and 

 

addr[] (input) 

data[] (bidir) 

cs_n (input) 

rw_n (input) 

 

I tried connecting as follows: 

 

addr[] <-> address_a[] 

(cs_n nor rw_n)<->(wren_a) 

 

and tried connecting 

data[] <-> (data_a[], q_a[]) 

using lpm_bustri or tri, but cannot read & write well. 

What actually happens is, it writes unexpected data 

to unexpected places when I try read/write.. 

 

I think my problem is the way I am connecting 

data[] <-> (data_a[],q_a[]) 

 

I also tried connecting the expernal pin to dff, 

but would not work. 

 

Any advice would be great.
0 Kudos
0 Replies
Reply