Altera_Forum
Honored Contributor
16 years agoUsing M4K mem for large shift registers
Hi
I am trying to define a Large SR and want it to be implemented with memory and not Logical elements (otherwise it will not fit the device) what should I add to my verilog code and what settings in the Quartus should I change in order to do that? all my atteps so far had failed :confused: +++++++ +++++++++++++++++++++++++++++++++++++++++++++ (* ramstyle = "M4K" *) reg [15:0] InLine[2677:0]; //################ InData to Shift Reg# ######################### always@(negedge Rx_clk_A) // Shift Reg for the incoming data begin // S.R. starts only when "write_port_A" is high if ( write_port_A ) // i.e. valid recording condition for HDR + Image begin for (I=0 ; I<2677 ; I=I+1) begin InLine[I+1] <= InLine[I]; InLine[0] <= l[15:0]; //InLine[0] <= Danny_LinkA_Data; end end end