fpga: lib: Modify for loop to Verilog 2001 syntax

This changes the for loop to use the generate keyword, making it
compatible with Verilog 2001. This allows tools that only support
Verilog 2001 to use this file (e.g., Intel Quartus).


Original-commit: b92597e1c9b6f09d5e62e55a60e33c04d437a50a
This commit is contained in:
Max Köhler
2020-03-09 13:40:17 -05:00
committed by Wade Fife
parent ec9eb36fb9
commit 6bea1f8222
+2 -1
View File
@@ -94,6 +94,7 @@ module ctrlport_decoder_param #(
wire [NUM_SLAVES-1:0] dec_mask; // Address decoder mask wire [NUM_SLAVES-1:0] dec_mask; // Address decoder mask
generate
genvar i; genvar i;
for (i = 0; i < NUM_SLAVES; i = i+1) begin : gen_dec_mask for (i = 0; i < NUM_SLAVES; i = i+1) begin : gen_dec_mask
@@ -132,7 +133,7 @@ module ctrlport_decoder_param #(
end end
end end
end end
endgenerate
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// Decode the responses // Decode the responses