IFU.scala (8891a219bbc84f568e1d134854d8d5ed86d6d560) IFU.scala (51e45dbbf87325e45ff2af6ca86ed6c7eed04464)
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

--- 752 unchanged lines hidden (view full) ---

761 when(f3_req_is_mmio){
762 val inst = Cat(f3_mmio_data(1), f3_mmio_data(0))
763 val currentIsRVC = isRVC(inst)
764
765 val brType::isCall::isRet::Nil = brInfo(inst)
766 val jalOffset = jal_offset(inst, currentIsRVC)
767 val brOffset = br_offset(inst, currentIsRVC)
768
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

--- 752 unchanged lines hidden (view full) ---

761 when(f3_req_is_mmio){
762 val inst = Cat(f3_mmio_data(1), f3_mmio_data(0))
763 val currentIsRVC = isRVC(inst)
764
765 val brType::isCall::isRet::Nil = brInfo(inst)
766 val jalOffset = jal_offset(inst, currentIsRVC)
767 val brOffset = br_offset(inst, currentIsRVC)
768
769 io.toIbuffer.bits.instrs (0) := new RVCDecoder(inst, XLEN).decode.bits
769 io.toIbuffer.bits.instrs (0) := new RVCDecoder(inst, XLEN, true).decode.bits
770
771
772 io.toIbuffer.bits.pd(0).valid := true.B
773 io.toIbuffer.bits.pd(0).isRVC := currentIsRVC
774 io.toIbuffer.bits.pd(0).brType := brType
775 io.toIbuffer.bits.pd(0).isCall := isCall
776 io.toIbuffer.bits.pd(0).isRet := isRet
777

--- 190 unchanged lines hidden ---
770
771
772 io.toIbuffer.bits.pd(0).valid := true.B
773 io.toIbuffer.bits.pd(0).isRVC := currentIsRVC
774 io.toIbuffer.bits.pd(0).brType := brType
775 io.toIbuffer.bits.pd(0).isCall := isCall
776 io.toIbuffer.bits.pd(0).isRet := isRet
777

--- 190 unchanged lines hidden ---