package.scala (248b9a04893bb9d411c7dff38e57b4ef6c6dd3fd) | package.scala (1eae6a3f990c4840bbce3f033cc38efd032a7af6) |
---|---|
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 --- 570 unchanged lines hidden (view full) --- 579 580 // llc op 581 // bit encoding: | prefetch 11 | suboptype(2bit) | 582 def cbo_clean = "b1100".U 583 def cbo_flush = "b1101".U 584 def cbo_inval = "b1110".U 585 586 def isCbo(op: UInt): Bool = op(3, 2) === "b11".U && (op(6, 4) === "b000".U) | 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 --- 570 unchanged lines hidden (view full) --- 579 580 // llc op 581 // bit encoding: | prefetch 11 | suboptype(2bit) | 582 def cbo_clean = "b1100".U 583 def cbo_flush = "b1101".U 584 def cbo_inval = "b1110".U 585 586 def isCbo(op: UInt): Bool = op(3, 2) === "b11".U && (op(6, 4) === "b000".U) |
587 def isCboClean(op: UInt): Bool = isCbo(op) && (op(3, 0) === cbo_clean) 588 def isCboFlush(op: UInt): Bool = isCbo(op) && (op(3, 0) === cbo_flush) 589 def isCboInval(op: UInt): Bool = isCbo(op) && (op(3, 0) === cbo_inval) |
|
587 588 // atomics 589 // bit(1, 0) are size 590 // since atomics use a different fu type 591 // so we can safely reuse other load/store's encodings 592 // bit encoding: | optype(4bit) | size (2bit) | 593 def lr_w = "b000010".U 594 def sc_w = "b000110".U --- 371 unchanged lines hidden --- | 590 591 // atomics 592 // bit(1, 0) are size 593 // since atomics use a different fu type 594 // so we can safely reuse other load/store's encodings 595 // bit encoding: | optype(4bit) | size (2bit) | 596 def lr_w = "b000010".U 597 def sc_w = "b000110".U --- 371 unchanged lines hidden --- |