Sign in

username:

password:



Not a member?

Search Comp.Arch.FPGA



Search tips

fpga by Keywords

Altera | ASIC | CPLD | Cyclone | DCM | DDR | DSP | Ethernet | ISE | JTAG | Linux | LVDS | Microblaze | ML310 | Modelsim | NIOS | OPB | PCI | Quartus | RocketIO | SDRAM | Spartan | Spartan3 | SRAM | Stratix | Verilog | VHDL | Virtex | Virtex-4 | Virtex-II | Xilinx | XST


Ads

See Also

DSPEmbedded SystemsElectronics

Comp.Arch.FPGA | Connecting Bram LMB Controller to Microblaze

There are 9 messages in this thread.

You are currently looking at messages 0 to 9.

Connecting Bram LMB Controller to Microblaze - mfgunes - 2007-07-24 02:52:00

Hello,

I have a block ram in my edk design.It is connected to lmb bramcontroller.I want to connect this controller to microblaze.Do i need ananother lmb bus to connect microblaze or can i connect lmb controller tomicroblaze with auto-generated "dlmb " lmb bus of microblaze.If i connectwith data bus ,what should i do about instruction lmb bus.

Best wishes,

Fatih Gunes



Re: Connecting Bram LMB Controller to Microblaze - PFC - 2007-07-24 03:42:00

> I have a block ram in my edk design.It is connected to lmb bram
> controller.I want to connect this controller to microblaze.Do i need an
> another lmb bus to connect microblaze or can i connect lmb controller to
> microblaze with auto-generated "dlmb " lmb bus of microblaze.If i connect
> with data bus ,what should i do about instruction lmb bus.


	Like that :
	http://home.peufeu.com/nik/fpga/XPS_1.png

Re: Connecting Bram LMB Controller to Microblaze - mfgunes - 2007-07-24 06:31:00

>
>> I have a block ram in my edk design.It is connected to lmb bram
>> controller.I want to connect this controller to microblaze.Do i needan
>> another lmb bus to connect microblaze or can i connect lmb controllerto
>> microblaze with auto-generated "dlmb " lmb bus of microblaze.If iconnect
>> with data bus ,what should i do about instruction lmb bus.
>
>
>	Like that :
>	http://home.peufeu.com/nik/fpga/XPS_1.png
>

Thank you for your help.But i want to connect a second bram tomicroblaze.How can i do that?
______________________________
Join the blogging team on FPGARelated.com and earn rewards! Details Here.

Re: Connecting Bram LMB Controller to Microblaze - PFC - 2007-07-24 06:39:00

On Tue, 24 Jul 2007 12:31:20 +0200, mfgunes
<m...@yahoo.com> wrote:

>>
>>> I have a block ram in my edk design.It is connected to lmb bram
>>> controller.I want to connect this controller to microblaze.Do i need
> an
>>> another lmb bus to connect microblaze or can i connect lmb controller
> to
>>> microblaze with auto-generated "dlmb " lmb bus of microblaze.If i
> connect
>>> with data bus ,what should i do about instruction lmb bus.
>>
>>
>> 	Like that :
>> 	http://home.peufeu.com/nik/fpga/XPS_1.png
>>
>
> Thank you for your help.But i want to connect a second bram to
> microblaze.How can i do that?

	Ah, OK
	You can change the size of the BRAM (if you just need more space) instead  
of adding another one...

	Microblaze has 2 LMBs (data and instruction). You cannot add more LMBs,  
but you can connect several cores to each since it's a bus, not a P2P link.
	If you want to add another block of BRAM, instantiate 2 new  
lmb_bram_controllers, connect them to your LMBs (data & instruction) and  
to the new BRAM block.
	
______________________________
Join the blogging team on FPGARelated.com and earn rewards! Details Here.

Re: Connecting Bram LMB Controller to Microblaze - mfgunes - 2007-07-24 09:07:00

Thank you for your fast reply.But i need a empty
port on bram.If i connect all of the ports (2 of them )to lmb controllers.I cant get a empty port onbram to connect my user implemented logic.I want a empty port(makedexternal) on bram.Can i connect bram to microblaze (with 1 lmb controller) using only one port?


Re: Connecting Bram LMB Controller to Microblaze - Andreas Hofmann - 2007-07-24 09:21:00

mfgunes schrieb:
> Thank you for your fast reply.But i need a empty port on bram.If i connect 
> all of the ports (2 of them )to lmb controllers.I cant get a empty port on
> bram to connect my user implemented logic.I want a empty port(maked
> external) on bram.Can i connect bram to microblaze (with 1 lmb 
> controller) using only one port?

You can connect one port of BRAM with one lmb_bram controller which in
turn is attached to one of the LMB buses of your MicroBlaze. If you
choose the DLMB the MicroBlaze will see additional data memory. Do not
forget to assign an appropriate address range to the BRAM.

The other port of the BRAM can be connected to your custon IP.

I have an design with two MicroBlazes which communicate over such an
shared BRAM. Each MicroBlaze is connected to one BRAM port over its
dlmb. EDK 8.1 complains about "unusual number of BRAMs", and the Block
Diagram report gets screwed up but otherwise the system works fine.

Best regards,
Andreas

______________________________
Join the blogging team on FPGARelated.com and earn rewards! Details Here.

Re: Connecting Bram LMB Controller to Microblaze - PFC - 2007-07-24 12:00:00

> You can connect one port of BRAM with one lmb_bram controller which in
> turn is attached to one of the LMB buses of your MicroBlaze. If you
> choose the DLMB the MicroBlaze will see additional data memory. Do not
> forget to assign an appropriate address range to the BRAM.
>
> The other port of the BRAM can be connected to your custon IP.

	Yes, I also did exactly this, and it works very well. The CPU can  
read/write data in the BRAM block via one port, and your custom core can  
do the same via the other port. It's very useful.

	In another case, I needed DMA accesses via OPB and opb_central_dma to my  
BRAM block ; I also needed the CPU to access it, and a custom core needed  
access to it too.
	So I used opb_bram controller on the OPB bus connected to BRAM port A ;  
custom core to BRAM port B ; DMA and CPU access BRAM via OPB.

	Have a nice day,
	Pierre
______________________________
Join the blogging team on FPGARelated.com and earn rewards! Details Here.

Re: Connecting Bram LMB Controller to Microblaze - mfgunes - 2007-07-25 03:28:00

These are very precious information:)Thank you
very much

Fatih Gunes

Re: Connecting Bram LMB Controller to Microblaze - Göran Bilski - 2007-07-25 04:25:00

Hi,

You can actually add more lmb_bram_if_cntlr to the same lmb bus.
This allows you to create more BRAMs on the same LMB bus.
But it might have an impact on the maximum clock frequency since the BRAM 
outputs will be muxed in the LMB bus before reaching MicroBlaze.

Göran Bilski

"mfgunes" <m...@yahoo.com> wrote in message 
news:A...@giganews.com...
> These are very precious information:)Thank you very much
>
> Fatih Gunes