Skip to content

Commit d1a5ab2

Browse files
committed
style: format the code by new align rule
1 parent dde8551 commit d1a5ab2

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Crossbar extends Module with InstConfig {
5252
io.dxchg.ren := ((stateReg === eumInst) || (stateReg === eumMem && maEn))
5353
io.dxchg.raddr := Mux(stateReg === eumInst, instAddr, ldAddr)
5454
io.dxchg.rsize := Mux(stateReg === eumMem && io.core.ld.en, io.core.ld.size, instSize)
55-
io.dxchg.wen := stateReg === eumMem && io.core.sd.en
55+
io.dxchg.wen := stateReg === eumMem && io.core.sd.en
5656
io.dxchg.waddr := sdAddr
5757
io.dxchg.wdata := io.core.sd.data
5858
io.dxchg.wmask := io.core.sd.mask

rtl/tc_l2/src/main/scala/core/exec/CSRReg.scala

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ class CSRReg extends Module with InstConfig {
4545
protected val addr = io.inst(31, 20)
4646
protected val mretVis = io.inst === instMRET
4747
protected val ecallVis = io.inst === instECALL
48-
protected val mhartidVis = addr === mhartidAddr
49-
protected val mstatusVis = addr === mstatusAddr
50-
protected val mieVis = addr === mieAddr
51-
protected val mtvecVis = addr === mtvecAddr
52-
protected val mscratchVis = addr === mscratchAddr
53-
protected val mepcVis = addr === mepcAddr
54-
protected val mcauseVis = addr === mcauseAddr
55-
protected val mipVis = addr === mipAddr
56-
protected val mcycleVis = addr === mcycleAddr
57-
protected val medelegVis = addr === medelegAddr
48+
protected val mhartidVis = addr === mhartidAddr
49+
protected val mstatusVis = addr === mstatusAddr
50+
protected val mieVis = addr === mieAddr
51+
protected val mtvecVis = addr === mtvecAddr
52+
protected val mscratchVis = addr === mscratchAddr
53+
protected val mepcVis = addr === mepcAddr
54+
protected val mcauseVis = addr === mcauseAddr
55+
protected val mipVis = addr === mipAddr
56+
protected val mcycleVis = addr === mcycleAddr
57+
protected val medelegVis = addr === medelegAddr
5858

5959
protected val rdVal = MuxLookup(
6060
addr,

rtl/tc_l2/src/main/scala/core/exec/EXU.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class EXU extends Module with InstConfig {
3232
// handle bypass signal
3333
protected val bypassMemSrc1En = io.bypassMem.wen && (rs1 === io.bypassMem.wdest) && (rs1 =/= 0.U)
3434
protected val bypassMemSrc2En = io.bypassMem.wen && (rs2 === io.bypassMem.wdest) && (rs2 =/= 0.U)
35-
protected val bypassWbSrc1En = io.bypassWb.wen && (rs1 === io.bypassWb.wdest) && (rs1 =/= 0.U)
36-
protected val bypassWbSrc2En = io.bypassWb.wen && (rs2 === io.bypassWb.wdest) && (rs2 =/= 0.U)
35+
protected val bypassWbSrc1En = io.bypassWb.wen && (rs1 === io.bypassWb.wdest) && (rs1 =/= 0.U)
36+
protected val bypassWbSrc2En = io.bypassWb.wen && (rs2 === io.bypassWb.wdest) && (rs2 =/= 0.U)
3737
protected val src1 = Mux(bypassMemSrc1En, io.bypassMem.data, Mux(bypassWbSrc1En, io.bypassWb.data, exReg.src1))
3838
protected val src2 = Mux(bypassMemSrc2En, io.bypassMem.data, Mux(bypassWbSrc2En, io.bypassWb.data, exReg.src2))
3939

@@ -82,12 +82,12 @@ class EXU extends Module with InstConfig {
8282

8383
io.nxtPC.trap := valid && (timeIntrEn || ecallEn)
8484
io.nxtPC.mtvec := csrReg.io.csrState.mtvec
85-
io.nxtPC.mret := valid && (isa === instMRET)
85+
io.nxtPC.mret := valid && (isa === instMRET)
8686
io.nxtPC.mepc := csrReg.io.csrState.mepc
8787
// (pred, fact)--->(NT, T) or (T, NT)
88-
protected val predNTfactT = branch && !predTaken
88+
protected val predNTfactT = branch && !predTaken
8989
protected val predTfactNT = !branch && predTaken
90-
io.nxtPC.branch := valid && (predNTfactT || predTfactNT)
90+
io.nxtPC.branch := valid && (predNTfactT || predTfactNT)
9191
io.nxtPC.tgt := Mux(valid && predNTfactT, tgt, Mux(valid && predTfactNT, pc + 4.U, 0.U(XLen.W)))
9292
io.stall := valid && (io.nxtPC.branch || timeIntrEn || ecallEn || (isa === instMRET))
9393

rtl/tc_l2/src/main/scala/core/ma/CLINT.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CLINT extends Module with InstConfig {
2323
// check if a mmio access
2424
protected val cren = io.cld.en && (mtimecmpVis || mtimeVis) && io.valid
2525
protected val cwen = io.csd.en && (mtimecmpVis || mtimeVis) && io.valid
26-
protected val cvalid = cren || cwen
26+
protected val cvalid = cren || cwen
2727

2828
// generate low speed clock
2929
protected val (tickCnt, cntWrap) = Counter(true.B, 5)

0 commit comments

Comments
 (0)