IFU.scala (6b46af8dadb9bdfdd4d6f4c48e4d88478cfd66b9) | IFU.scala (195ef4a53ab54326d879e884c4e1568f424f2668) |
---|---|
1/*************************************************************************************** 2* Copyright (c) 2020-2021 Institute of Computing Technology, Chinese Academy of Sciences 3* Copyright (c) 2020-2021 Peng Cheng Laboratory 4* 5* XiangShan is licensed under Mulan PSL v2. 6* You can use this software according to the terms and conditions of the Mulan PSL v2. 7* You may obtain a copy of Mulan PSL v2 at: 8* http://license.coscl.org.cn/MulanPSL2 --- 800 unchanged lines hidden (view full) --- 809 when(f3_req_is_mmio){ 810 val inst = Cat(f3_mmio_data(1), f3_mmio_data(0)) 811 val currentIsRVC = isRVC(inst) 812 813 val brType::isCall::isRet::Nil = brInfo(inst) 814 val jalOffset = jal_offset(inst, currentIsRVC) 815 val brOffset = br_offset(inst, currentIsRVC) 816 | 1/*************************************************************************************** 2* Copyright (c) 2020-2021 Institute of Computing Technology, Chinese Academy of Sciences 3* Copyright (c) 2020-2021 Peng Cheng Laboratory 4* 5* XiangShan is licensed under Mulan PSL v2. 6* You can use this software according to the terms and conditions of the Mulan PSL v2. 7* You may obtain a copy of Mulan PSL v2 at: 8* http://license.coscl.org.cn/MulanPSL2 --- 800 unchanged lines hidden (view full) --- 809 when(f3_req_is_mmio){ 810 val inst = Cat(f3_mmio_data(1), f3_mmio_data(0)) 811 val currentIsRVC = isRVC(inst) 812 813 val brType::isCall::isRet::Nil = brInfo(inst) 814 val jalOffset = jal_offset(inst, currentIsRVC) 815 val brOffset = br_offset(inst, currentIsRVC) 816 |
817 io.toIbuffer.bits.instrs(0) := new RVCDecoder(inst, XLEN, useAddiForMv = true).decode.bits | 817 io.toIbuffer.bits.instrs(0) := new RVCDecoder(inst, XLEN, fLen, useAddiForMv = true).decode.bits |
818 819 820 io.toIbuffer.bits.pd(0).valid := true.B 821 io.toIbuffer.bits.pd(0).isRVC := currentIsRVC 822 io.toIbuffer.bits.pd(0).brType := brType 823 io.toIbuffer.bits.pd(0).isCall := isCall 824 io.toIbuffer.bits.pd(0).isRet := isRet 825 --- 194 unchanged lines hidden --- | 818 819 820 io.toIbuffer.bits.pd(0).valid := true.B 821 io.toIbuffer.bits.pd(0).isRVC := currentIsRVC 822 io.toIbuffer.bits.pd(0).brType := brType 823 io.toIbuffer.bits.pd(0).isCall := isCall 824 io.toIbuffer.bits.pd(0).isRet := isRet 825 --- 194 unchanged lines hidden --- |