jesd204: Add names for generate for-blocks
Be more standard compliant and assign names to generate for-blocks. This is required for Altera/Intel support. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>main
parent
cdf005ab83
commit
fa46688be5
|
@ -70,7 +70,7 @@ sync_bits i_sync_ilas_ready (
|
||||||
|
|
||||||
generate
|
generate
|
||||||
genvar i;
|
genvar i;
|
||||||
for (i = 0; i < 32; i = i + 1) begin: ilas_mem
|
for (i = 0; i < 32; i = i + 1) begin: gen_ilas_mem
|
||||||
assign up_rdata[i] = mem[i][~up_raddr];
|
assign up_rdata[i] = mem[i][~up_raddr];
|
||||||
|
|
||||||
always @(posedge core_clk) begin
|
always @(posedge core_clk) begin
|
||||||
|
|
|
@ -143,7 +143,7 @@ always @(posedge up_clk) begin
|
||||||
end
|
end
|
||||||
|
|
||||||
genvar i;
|
genvar i;
|
||||||
generate for (i = 0; i < NUM_LANES; i = i + 1) begin
|
generate for (i = 0; i < NUM_LANES; i = i + 1) begin: gen_lane
|
||||||
jesd204_up_rx_lane i_up_rx_lane (
|
jesd204_up_rx_lane i_up_rx_lane (
|
||||||
.up_clk(up_clk),
|
.up_clk(up_clk),
|
||||||
.up_reset_synchronizer(up_reset_synchronizer),
|
.up_reset_synchronizer(up_reset_synchronizer),
|
||||||
|
|
|
@ -291,7 +291,7 @@ end
|
||||||
|
|
||||||
genvar j;
|
genvar j;
|
||||||
generate
|
generate
|
||||||
for (j = 0; j < NUM_LANES; j = j + 1) begin
|
for (j = 0; j < NUM_LANES; j = j + 1) begin: gen_lane
|
||||||
always @(posedge core_clk) begin
|
always @(posedge core_clk) begin
|
||||||
if (core_ilas_config_rd == 1'b1) begin
|
if (core_ilas_config_rd == 1'b1) begin
|
||||||
core_ilas_config_data[j*32+31:j*32] <= up_cfg_ilas_data[core_ilas_config_addr+4*j];
|
core_ilas_config_data[j*32+31:j*32] <= up_cfg_ilas_data[core_ilas_config_addr+4*j];
|
||||||
|
|
|
@ -63,7 +63,7 @@ wire [WIDTH-1+15:0] full_state;
|
||||||
|
|
||||||
generate
|
generate
|
||||||
genvar i;
|
genvar i;
|
||||||
for (i = 0; i < WIDTH / 8; i = i + 1) begin
|
for (i = 0; i < WIDTH / 8; i = i + 1) begin: gen_swizzle
|
||||||
assign swizzle_in[WIDTH-1-i*8:WIDTH-i*8-8] = data_in[i*8+7:i*8];
|
assign swizzle_in[WIDTH-1-i*8:WIDTH-i*8-8] = data_in[i*8+7:i*8];
|
||||||
assign data_out[WIDTH-1-i*8:WIDTH-i*8-8] = swizzle_out[i*8+7:i*8];
|
assign data_out[WIDTH-1-i*8:WIDTH-i*8-8] = swizzle_out[i*8+7:i*8];
|
||||||
end
|
end
|
||||||
|
|
|
@ -71,7 +71,7 @@ end
|
||||||
generate
|
generate
|
||||||
genvar i;
|
genvar i;
|
||||||
|
|
||||||
for (i = 0; i < NUM_LANES; i = i + 1) begin
|
for (i = 0; i < NUM_LANES; i = i + 1) begin: gen_lane
|
||||||
always @(posedge clk) begin
|
always @(posedge clk) begin
|
||||||
if (reset == 1'b1) begin
|
if (reset == 1'b1) begin
|
||||||
lane_latency_mem[i] <= 'h00;
|
lane_latency_mem[i] <= 'h00;
|
||||||
|
|
|
@ -267,7 +267,7 @@ jesd204_eof_generator #(
|
||||||
|
|
||||||
genvar i;
|
genvar i;
|
||||||
generate
|
generate
|
||||||
for (i = 0; i < NUM_LANES; i = i + 1) begin
|
for (i = 0; i < NUM_LANES; i = i + 1) begin: gen_lane
|
||||||
|
|
||||||
localparam D_START = i * DATA_PATH_WIDTH*8;
|
localparam D_START = i * DATA_PATH_WIDTH*8;
|
||||||
localparam D_STOP = D_START + DATA_PATH_WIDTH*8-1;
|
localparam D_STOP = D_START + DATA_PATH_WIDTH*8-1;
|
||||||
|
|
|
@ -109,7 +109,7 @@ assign status_frame_align = frame_align;
|
||||||
genvar i;
|
genvar i;
|
||||||
generate
|
generate
|
||||||
|
|
||||||
for (i = 0; i < DATA_PATH_WIDTH; i = i + 1) begin
|
for (i = 0; i < DATA_PATH_WIDTH; i = i + 1) begin: gen_char
|
||||||
assign char[i] = phy_data[i*8+7:i*8];
|
assign char[i] = phy_data[i*8+7:i*8];
|
||||||
assign char_is_valid[i] = ~(phy_notintable[i] | phy_disperr[i]);
|
assign char_is_valid[i] = ~(phy_notintable[i] | phy_disperr[i]);
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ assign ilas_mem[3][31:24] = ilas_mem[0][23:16] + ilas_mem[0][31:24] +
|
||||||
generate
|
generate
|
||||||
genvar i;
|
genvar i;
|
||||||
|
|
||||||
for (i = 0; i < NUM_LANES; i = i + 1) begin
|
for (i = 0; i < NUM_LANES; i = i + 1) begin: gen_lane
|
||||||
always @(posedge clk) begin
|
always @(posedge clk) begin
|
||||||
if (ilas_config_rd == 1'b1) begin
|
if (ilas_config_rd == 1'b1) begin
|
||||||
ilas_config_data[i*32+31:i*32] <= ilas_mem[ilas_config_addr];
|
ilas_config_data[i*32+31:i*32] <= ilas_mem[ilas_config_addr];
|
||||||
|
|
|
@ -188,7 +188,7 @@ jesd204_eof_generator #(
|
||||||
|
|
||||||
generate
|
generate
|
||||||
genvar i;
|
genvar i;
|
||||||
for (i = 0; i < NUM_LANES; i = i + 1) begin
|
for (i = 0; i < NUM_LANES; i = i + 1) begin: gen_lane
|
||||||
|
|
||||||
localparam D_START = i * DATA_PATH_WIDTH*8;
|
localparam D_START = i * DATA_PATH_WIDTH*8;
|
||||||
localparam D_STOP = D_START + DATA_PATH_WIDTH*8-1;
|
localparam D_STOP = D_START + DATA_PATH_WIDTH*8-1;
|
||||||
|
|
|
@ -82,7 +82,7 @@ jesd204_scrambler #(
|
||||||
generate
|
generate
|
||||||
genvar i;
|
genvar i;
|
||||||
|
|
||||||
for (i = 0; i < DATA_PATH_WIDTH; i = i + 1) begin
|
for (i = 0; i < DATA_PATH_WIDTH; i = i + 1) begin: gen_char
|
||||||
assign scrambled_char[i] = scrambled_data[i*8+7:i*8];
|
assign scrambled_char[i] = scrambled_data[i*8+7:i*8];
|
||||||
|
|
||||||
always @(*) begin
|
always @(*) begin
|
||||||
|
|
|
@ -105,7 +105,7 @@ assign ilas_mem[3][31:24] = ilas_mem[0][23:16] + ilas_mem[0][31:24] +
|
||||||
generate
|
generate
|
||||||
genvar i;
|
genvar i;
|
||||||
|
|
||||||
for (i = 0; i < NUM_LANES; i = i + 1) begin
|
for (i = 0; i < NUM_LANES; i = i + 1) begin: gen_lane
|
||||||
always @(posedge clk) begin
|
always @(posedge clk) begin
|
||||||
if (ilas_config_rd == 1'b1) begin
|
if (ilas_config_rd == 1'b1) begin
|
||||||
ilas_config_data[i*32+31:i*32] <= ilas_mem[ilas_config_addr];
|
ilas_config_data[i*32+31:i*32] <= ilas_mem[ilas_config_addr];
|
||||||
|
|
Loading…
Reference in New Issue