I was looking through the list a couple of months ago and found this post:
How do I connect & access a Dual Port SRAM to MOD5270
But now it is gone. What happened to it? I am about to start using the external bus and remember it as a practical example beyond the freescale docs.
Does anybody have any readily available code to setting up the external bus for reading and writing?
missing post on external bus usage.
-
- Posts: 513
- Joined: Sat Apr 26, 2008 7:14 am
Re: missing post on external bus usage.
I remember the post too... I also could no longer find it here, but had another copy, originally rec'd via email. I've had difficulty searching this forum and so get most of the posts emailed to allow easier searching. Here's what you were looking for I think. Turns out there were two related posts, both copied below. Second, there used to be a yahoo forum that had a files section. I have atached posts to that old forum that includes zipped code to exercise the external bus on most of the platforms. Third, and finally, there are NB appnotes on adding external hardware for most of the platforms:
http://www.netburner.com/downloads/mod5 ... nNotes.pdf
http://www.netburner.com/downloads/mod5 ... nNotes.pdf
http://www.netburner.com/downloads/mod5 ... otes-1.pdf
The first post, and a (correction to it) regarding interface to SRAM were from bill bracken. Both are copied below. Th
User : bbracken (billb@isfpinc.com)
Subject : Re: Newbie:How do I connect & access a Dual Port SRAM to MOD5270
Thread : Newbie:How do I connect & access a Dual Port SRAM to MOD5270
Forum : General NetBurner Forums « NetBurner Hardware
Mode : reply
Actions : [reply] [quote] [edit] [delete] [info] [pm] [email]
The following sets up the Chip Select Interface...
#define FPGA_BASE_ADDRESS (0x20010000)
#define CSCR_INIT 0x4981 // 16 bit transfers, AA, 2 IW, 1 SW, 1 SR
// setup CS1 for FPGA access
sim.cs[1].csar = (FPGA_BASE_ADDRESS >> 16);
sim.cs[1].cscr = CSCR_INIT;
sim.cs[1].csmr = 0x00000001;
This setus up the chip select interface for 16 bit transfers with the interface beginning at 0x2001000. The wait states were appropriate for the FPGA being used. Now you just read/write to an address within your chip select range.
bb
//------The correction:
Sorry... couple of typos....
Address is 0x20010000.
bb
//================================
FINALLY Don't forget the zipped examples from the Yahoo site. I think the 5270 - 72 -82 examples are from the NB guys. The 34 example is based on those examples, but was writtten by "k5005"
http://www.netburner.com/downloads/mod5 ... nNotes.pdf
http://www.netburner.com/downloads/mod5 ... nNotes.pdf
http://www.netburner.com/downloads/mod5 ... otes-1.pdf
The first post, and a (correction to it) regarding interface to SRAM were from bill bracken. Both are copied below. Th
User : bbracken (billb@isfpinc.com)
Subject : Re: Newbie:How do I connect & access a Dual Port SRAM to MOD5270
Thread : Newbie:How do I connect & access a Dual Port SRAM to MOD5270
Forum : General NetBurner Forums « NetBurner Hardware
Mode : reply
Actions : [reply] [quote] [edit] [delete] [info] [pm] [email]
The following sets up the Chip Select Interface...
#define FPGA_BASE_ADDRESS (0x20010000)
#define CSCR_INIT 0x4981 // 16 bit transfers, AA, 2 IW, 1 SW, 1 SR
// setup CS1 for FPGA access
sim.cs[1].csar = (FPGA_BASE_ADDRESS >> 16);
sim.cs[1].cscr = CSCR_INIT;
sim.cs[1].csmr = 0x00000001;
This setus up the chip select interface for 16 bit transfers with the interface beginning at 0x2001000. The wait states were appropriate for the FPGA being used. Now you just read/write to an address within your chip select range.
bb
//------The correction:
Sorry... couple of typos....
Address is 0x20010000.
bb
//================================
FINALLY Don't forget the zipped examples from the Yahoo site. I think the 5270 - 72 -82 examples are from the NB guys. The 34 example is based on those examples, but was writtten by "k5005"