Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
716 Views

Problem using DPRAM

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