From 04aeb043e9021d4086e84ce06ecc2d8f7a735ec4 Mon Sep 17 00:00:00 2001 From: Sarmad-paracha <67508400+Sarmad-paracha@users.noreply.github.com> Date: Fri, 25 Sep 2020 21:39:02 +0500 Subject: [PATCH] Update el2_ifu_compress_ctl.scala --- src/main/scala/ifu/el2_ifu_compress_ctl.scala | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/scala/ifu/el2_ifu_compress_ctl.scala b/src/main/scala/ifu/el2_ifu_compress_ctl.scala index 50af8fc0..c99c9148 100644 --- a/src/main/scala/ifu/el2_ifu_compress_ctl.scala +++ b/src/main/scala/ifu/el2_ifu_compress_ctl.scala @@ -179,8 +179,8 @@ class RVCDecoder(x: UInt, xLen: Int) { class el2_ifu_compress_ctl( val XLen: Int, val usingCompressed: Boolean) extends Module { val io = IO(new Bundle { - val in = Input(UInt(16.W)) - val out = Output(UInt(32.W)) + val din = Input(UInt(16.W)) + val dout = Output(UInt(32.W)) //val rvc = Output(Bool()) //val legal = Output(Bool()) //val waleed_out = Output(UInt(32.W)) @@ -189,10 +189,10 @@ class el2_ifu_compress_ctl( val XLen: Int, val usingCompressed: Boolean) extends //val q3_Out = Output(new ExpandedInstruction) }) if (usingCompressed) { - val rvc = io.in(1,0) =/= 3.U - val inst = new RVCDecoder(Cat(Fill(16,0.U),io.in), XLen) + val rvc = io.din(1,0) =/= 3.U + val inst = new RVCDecoder(Cat(Fill(16,0.U),io.din), XLen) val decoded = inst.decode - io.out := Mux(rvc, 0.U, decoded.bits) + io.dout := Mux(rvc, 0.U, decoded.bits) //io.out.rd := 0.U //io.out.rs1 := 0.U //io.out.rs2 := 0.U @@ -221,7 +221,7 @@ class el2_ifu_compress_ctl( val XLen: Int, val usingCompressed: Boolean) extends io.waleed_out := Mux(io.legal,io.out.bits,0.U)*/ } else { //io.rvc := false.B - io.out := new RVCDecoder(io.in, XLen).passthrough + io.dout := new RVCDecoder(io.din, XLen).passthrough } }