summaryrefslogtreecommitdiff
path: root/rtl/wb2axip/axilfetch.v
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-05-16 01:08:04 -0600
committerAlejandro Soto <alejandro@34project.org>2024-05-24 05:58:19 -0600
commitb21c321a059e11edeece1c90d97776bb0716d7a0 (patch)
treecb7c3e6c2a5f6fd153c3b01d61040a2c901e0ba8 /rtl/wb2axip/axilfetch.v
parenta6c23ba92d0c2cad9862de1cb11c19b4e06fc0e6 (diff)
rtl: fix quartus errors: parser, synthesis, fitter
Diffstat (limited to 'rtl/wb2axip/axilfetch.v')
-rw-r--r--rtl/wb2axip/axilfetch.v8
1 files changed, 6 insertions, 2 deletions
diff --git a/rtl/wb2axip/axilfetch.v b/rtl/wb2axip/axilfetch.v
index 7089b20..0b612ed 100644
--- a/rtl/wb2axip/axilfetch.v
+++ b/rtl/wb2axip/axilfetch.v
@@ -31,7 +31,7 @@
//
////////////////////////////////////////////////////////////////////////////////
//
-`default_nettype none
+//`default_nettype none
// }}}
module axilfetch #(
// {{{
@@ -40,7 +40,7 @@ module axilfetch #(
parameter INSN_WIDTH=32,
parameter FETCH_LIMIT=16,
parameter [0:0] SWAP_ENDIANNESS = 1'b1,
- localparam AW=C_AXI_ADDR_WIDTH
+ /*local*/parameter AW=C_AXI_ADDR_WIDTH
// }}}
) (
// {{{
@@ -293,11 +293,15 @@ module axilfetch #(
genvar gw, gb; // Word count, byte count
for(gw=0; gw<C_AXI_DATA_WIDTH/INSN_WIDTH; gw=gw+1) // For each bus word
+ begin: gwblock
for(gb=0; gb<(INSN_WIDTH/8); gb=gb+1) // For each bus byte
+ begin: gbblock
always @(*)
endian_swapped_rdata[gw*INSN_WIDTH
+ ((INSN_WIDTH/8)-1-gb)*8 +: 8]
= M_AXI_RDATA[gw*INSN_WIDTH+gb*8 +: 8];
+ end
+ end
// }}}
end else begin : NO_ENDIAN_SWAP
// {{{