impossible opb_emc hack?

I got my self stuck in that I have a V4 design with a 16-bit flash and a

32-bit peripheral device on the same external bus. I am using a opb_emc with two memory banks and datawidth matching to talk to them. The problem is I connected the wrong 16 data lines to the 16-bit flash. If I swap the halves in my .ucf the flash works fine but the peripheral regs are word swapped. If I swap them back the peripheral device is fine but obviously flash no longer works.

The question: looks like the opb_emc VHDL is somewhere in the bowels of EDK. Dare I try to hack that code to use the other 16 data lines when performing a datawidth match for the 16-bit bank? Is there a cleaner solution?

Thanks, Clark

Reply to
Anonymous
Loading thread data ...

Write a wrapper that muxes your data bus by looking at the chip enable lines from the EMC. You'll need to connect to the Mem_DQ_I/O/T (at least in Verilog, maybe VHDL can mux an inout?) rather than the Mem_DQ_IO.

--
Ben Jackson AD7GD

http://www.ben.com/
Reply to
Ben Jackson

with

halves

If

longer

EDK.

performing

Turns out the hack was pretty easy. Just two lines changed in mem_steer.vhd. But obviously I don't want to have to hack the EDK code to compile my design. Does anyone know if there is an easy way to Import the opb_emc peripheral into my project to create a "myopb_emc" that I can hack without messing up EDK? I guess I can manually copy all the files but then I'm not sure how I get EDK to recognize my version from the Xilinx version?

Thanks, Clark

Reply to
Anonymous

"Anonymous" schrieb im Newsbeitrag news:hAXeh.13390$ snipped-for-privacy@tornado.southeast.rr.com...

just copy into local \pcores and use that it will override the orginal one

Antti

Reply to
Antti Lukats

yep, that worked fine. much better than making an extra mux or relaying out my board. -Thanks

without

not

Reply to
Anonymous

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.