LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Xilinx Block Ram with VHDL

I am currently trying to interact with the Block RAM in Xilinx Spartan 6 FPGA. In the IP Integration Node, I have a large chunk of VHDL codes that need to access to the Block RAM. I understand there is a Xilinx Core Generator so I can create a BRAM in Block Digram; However, I would like  to access to the BRAM in the VHDL code. Have anyone tried to access to Xilinx BRAM with VHDL before? 

0 Kudos
Message 1 of 8
(5,287 Views)

Are you wanting to access the Block RAM from both the G diagram and within the VHDL? It would be helpful to have a high-level picture of what needs to communicate with the RAM.

0 Kudos
Message 2 of 8
(5,277 Views)

Thank you for yoru reply. 

 

Not Both. I just want to access within the VHDL code. So currently, I have a large chunk of VHDL code which the BRAM acess is not programmed. I would like to finish the VHDL code so that the VHDL code is fully programmed with access to BRAM, and I can call this VHDL code with IP node in LabVIEW.

0 Kudos
Message 3 of 8
(5,272 Views)

In that case using the Block Memory Generator is fine. When you import the VHDL into an IPIN node in LabVIEW FPGA make sure to include those generated files in the IPIN configuration. 

 

As far as using the block memory in VHDL, the Block Memory Generator will generate a template I believe which shows how to hook it up. If not there are numerous resources online with how to instantiate VHDL entities and call them. 

0 Kudos
Message 4 of 8
(5,262 Views)

Ya I have tried these generated files but it didnt work. Do you have any resources that I can refer to?

0 Kudos
Message 5 of 8
(5,246 Views)

Anyone has experiences with this?

0 Kudos
Message 6 of 8
(5,183 Views)

Well, I don't have experience with this specifically, but I do have a recomendation:

 

Get your VHDL working in ISE/whatever IDE you use, build it into an NGC, and call that via the IPIN/CLIP Node. I've found this generally easier than trying to reference a bunch of support files in the nodes. If you're using CLIP, I believe you'll have to create a VHDL wrapper that calls into the NGC, and include the NGC as a support file.

 

Also, in your build settings in ISE, you'll need to uncheck "Add IO Buffers" and set "Pack IO registers into IOBs" to no.

 

IOBuffers.PNG

 

Hopefully that lets you work around any file dependency issues.

Cheers!

TJ G
0 Kudos
Message 7 of 8
(5,175 Views)

You might also try the built in Xilinx blocks that are configurable from within LabVIEW FPGA. There is a palette specifically dedicated to Xilinx core generator blocks. https://www.ni.com/en/shop/electronic-test-instrumentation/add-ons-for-electronic-test-and-instrumen...

0 Kudos
Message 8 of 8
(5,151 Views)