L2TLB.scala (8891a219bbc84f568e1d134854d8d5ed86d6d560) | L2TLB.scala (45f43e6e5f88874a7573ff096d1e5c2855bd16c7) |
---|---|
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 --- 444 unchanged lines hidden (view full) --- 453 ptw_sector_resp.valididx(i) := (ppn_equal && perm_equal && v_equal && af_equal && pf_equal) || !pte.not_super 454 ptw_sector_resp.ppn_low(i) := pte.entry(i).ppn_low 455 } 456 ptw_sector_resp.valididx(OHToUInt(pte.pteidx)) := true.B 457 ptw_sector_resp 458 } 459 460 def outReady(source: UInt, port: Int): Bool = { | 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 --- 444 unchanged lines hidden (view full) --- 453 ptw_sector_resp.valididx(i) := (ppn_equal && perm_equal && v_equal && af_equal && pf_equal) || !pte.not_super 454 ptw_sector_resp.ppn_low(i) := pte.entry(i).ppn_low 455 } 456 ptw_sector_resp.valididx(OHToUInt(pte.pteidx)) := true.B 457 ptw_sector_resp 458 } 459 460 def outReady(source: UInt, port: Int): Bool = { |
461 MuxLookup(source, true.B, 462 (0 until PtwWidth).map(i => i.U -> mergeArb(i).in(port).ready)) | 461 MuxLookup(source, true.B)((0 until PtwWidth).map(i => i.U -> mergeArb(i).in(port).ready)) |
463 } 464 465 // debug info 466 for (i <- 0 until PtwWidth) { 467 XSDebug(p"[io.tlb(${i.U})] ${io.tlb(i)}\n") 468 } 469 XSDebug(p"[sfence] ${io.sfence}\n") 470 XSDebug(p"[io.csr.tlb] ${io.csr.tlb}\n") --- 224 unchanged lines hidden --- | 462 } 463 464 // debug info 465 for (i <- 0 until PtwWidth) { 466 XSDebug(p"[io.tlb(${i.U})] ${io.tlb(i)}\n") 467 } 468 XSDebug(p"[sfence] ${io.sfence}\n") 469 XSDebug(p"[io.csr.tlb] ${io.csr.tlb}\n") --- 224 unchanged lines hidden --- |