Innovative Integration
 
Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Write dual-port RAM contents via Wishbone I/F

 
Post new topic   Reply to topic    II Support Forum Index -> MatLab/SimuLink Development Corner
View previous topic :: View next topic  
Author Message
kberndsen



Joined: 20 Jan 2012
Posts: 57

PostPosted: Wed Mar 14, 2012 1:15 pm    Post subject: Write dual-port RAM contents via Wishbone I/F Reply with quote

Do you have any examples of writing the contents of a block RAM from a Wishbone write sequence. I'm using this block RAM for a LUT, but it could also be for a pattern generator or dynamic filter coefficients.

I'm creating my FPGA image for the X6-1000 by modifying one of the Matlab BSP examples with Simulink/System Generator.

So I'd like to know if anyone has implemented this process and could share the model.

SYSTEM: 64-bit Windows 7, ISE 13.2, Matlab 2011b
Back to top
View user's profile Send private message
smoses
Distributor


Joined: 08 Jan 2009
Posts: 121

PostPosted: Fri Apr 06, 2012 9:37 am    Post subject: Reply with quote

To write to a block RAM, you need 3 signals:
1- write strobe
2- write address
3- write data

These signals can be driven from a wishbone slave. A similar code can be found in ii_afe_intf_regs.vhd (pll_spi_*) signals.
Back to top
View user's profile Send private message Send e-mail
kberndsen



Joined: 20 Jan 2012
Posts: 57

PostPosted: Tue Apr 17, 2012 11:10 am    Post subject: Reply with quote

Is it possible to do this in the user space in System Generator? Has anyone ever tried anything like that?
Back to top
View user's profile Send private message
smoses
Distributor


Joined: 08 Jan 2009
Posts: 121

PostPosted: Tue Apr 17, 2012 12:35 pm    Post subject: Reply with quote

The registers can be placed in any address space. I don't know if anyone has ever tried it though.
Back to top
View user's profile Send private message Send e-mail
nicolasroch



Joined: 23 Jan 2012
Posts: 26
Location: France

PostPosted: Tue Jul 17, 2012 11:31 pm    Post subject: Reply with quote

Hi kberndsen,
I would also be interested in having such a tunable LUT (for a tunable IQ demod). Did you finally implement this with System Generator or did you use VHDL as recommended by smoses?
It would be nice to have feedback on your experience. I will try to implement this with SysGen anyway....
Nico
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    II Support Forum Index -> MatLab/SimuLink Development Corner (GMT - 8 Hours)
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

© Copyright 2006-2012 Innovative Integration
Powered by phpBB © 2001, 2002 phpBB Group
Based on iCGstation v1.0 Template By Ray © 2003, 2004 iOptional