FDP.scala (b133b458c6613564f0a6a4fe81d1262db387530a) FDP.scala (6810d1e8e7c0789e9f50ee6bdd52010b8ce506ef)
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

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

116 }
117 }
118
119 deqPtrExt.foreach{case x => x := x + last3CycleAlloc}
120
121 // query
122 val querys_l = io.query.map(_.req.bits)
123 val querys_vl = io.query.map(_.req.valid)
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

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

116 }
117 }
118
119 deqPtrExt.foreach{case x => x := x + last3CycleAlloc}
120
121 // query
122 val querys_l = io.query.map(_.req.bits)
123 val querys_vl = io.query.map(_.req.valid)
124 for(i <- (0 until LduCnt)) {
124 for(i <- (0 until LduCnt + HyuCnt)) {
125 val q = querys_l(i)
126 val q_v = querys_vl(i)
127
128 val entry_match = Cat(entries.zip(valids).map {
129 case(e, v) => v && (q.idx === e.idx) && (q.way === e.way)
130 }).orR
131
132 io.query(i).resp := q_v && entry_match

--- 158 unchanged lines hidden ---
125 val q = querys_l(i)
126 val q_v = querys_vl(i)
127
128 val entry_match = Cat(entries.zip(valids).map {
129 case(e, v) => v && (q.idx === e.idx) && (q.way === e.way)
130 }).orR
131
132 io.query(i).resp := q_v && entry_match

--- 158 unchanged lines hidden ---