Skip to content

Commit 5648a2f

Browse files
committed
feat: support 4 bytes inst access to soc sim
1 parent 8e9859d commit 5648a2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rtl/tc_l2/src/main/scala/axi4/AXI4Bridge.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ class AXI4Bridge() extends Module with AXI4Config with InstConfig {
317317

318318
instAxiLen := Mux(instTransAligned.asBool(), (TRANS_LEN - 1).U, Cat(Fill(7, "b0".U(1.W)), instOverstep))
319319
protected val instAxiSize = AXI_INST_SIZE
320-
protected val instAxiAddr = Cat(io.inst.addr(AxiAddrWidth - 1, ALIGNED_WIDTH), Fill(ALIGNED_WIDTH, "b0".U(1.W)))
320+
protected val instAxiAddr = if(SoCEna) io.inst.addr else Cat(io.inst.addr(AxiAddrWidth - 1, ALIGNED_WIDTH), Fill(ALIGNED_WIDTH, "b0".U(1.W)))
321321
protected val instAlignedOffsetLow = Wire(UInt(OFFSET_WIDTH.W))
322322
protected val instAlignedOffsetHig = Wire(UInt(OFFSET_WIDTH.W))
323323
protected val instMask = Wire(UInt(MASK_WIDTH.W))

0 commit comments

Comments
 (0)