Trigger.scala (84e47f35db7c435223b222af2342463b2f92e059) | Trigger.scala (8891a219bbc84f568e1d134854d8d5ed86d6d560) |
---|---|
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 Mu lan PSL v2. 7 * You may obtain a copy of Mulan PSL v2 at: 8 * http://license.coscl.org.cn/MulanPSL2 --- 5 unchanged lines hidden (view full) --- 14 * See the Mulan PSL v2 for more details. 15 ***************************************************************************************/ 16 17package utils 18 19import chisel3._ 20import chisel3.util._ 21import xiangshan.MatchTriggerIO | 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 Mu lan PSL v2. 7 * You may obtain a copy of Mulan PSL v2 at: 8 * http://license.coscl.org.cn/MulanPSL2 --- 5 unchanged lines hidden (view full) --- 14 * See the Mulan PSL v2 for more details. 15 ***************************************************************************************/ 16 17package utils 18 19import chisel3._ 20import chisel3.util._ 21import xiangshan.MatchTriggerIO |
22import chipsalliance.rocketchip.config.Parameters | 22import org.chipsalliance.cde.config.Parameters |
23 24 25object TriggerCmp { 26 def apply(actual: UInt, tdata: UInt, matchType: UInt, enable: Bool) = { 27 val equal = actual === tdata 28 val greater = actual >= tdata 29 val less = actual <= tdata 30 val res = MuxLookup(matchType, false.B, --- 19 unchanged lines hidden --- | 23 24 25object TriggerCmp { 26 def apply(actual: UInt, tdata: UInt, matchType: UInt, enable: Bool) = { 27 val equal = actual === tdata 28 val greater = actual >= tdata 29 val less = actual <= tdata 30 val res = MuxLookup(matchType, false.B, --- 19 unchanged lines hidden --- |