LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

memory item as shift registers

Hello, I am new in LabVIEW Programming. Can I use memory item to make a large array of shift register inside a SCTL in LabVIEW FPGA? Large array of shift register consumes a lot of slices when i compile it. Can data be read and written(in different addresses) on a memory item in a single clock cycle? thank you

0 Kudos
Message 1 of 3
(2,639 Views)

I am not sure I understand exactly what you are asking. If you are trying to use a Memory to implement a shift register you can certainly do that but I would recommend using a FIFO instead.

 

If you are trying to use an Array, Loop, and Shift Register to implement a memory that will work as well. Note that only LabVIEW FPGA 2012 and newer can infer block ram from this construct. In older versions the array will always be implemented in the standard FPGA logic using registers and utilizes more resources.

10-9-2013 10-06-03 AM.png

The above diagram will infer a block ram for larger array sizes.

 

Either way, the read and write addresses do not have to be the same in each clock cycle.

0 Kudos
Message 2 of 3
(2,626 Views)

Cool. Thank you! I will try this. 🙂

0 Kudos
Message 3 of 3
(2,591 Views)