move srcs into src dir, factoring out uncore consts into consts
This commit is contained in:
parent
aa7fd1f40b
commit
fa8075570a
@ -1,4 +1,4 @@
|
||||
package rocket
|
||||
package uncore
|
||||
|
||||
import Chisel._
|
||||
import Constants._
|
28
uncore/src/consts.scala
Normal file
28
uncore/src/consts.scala
Normal file
@ -0,0 +1,28 @@
|
||||
package uncore
|
||||
|
||||
import Chisel._
|
||||
|
||||
object Constants
|
||||
{
|
||||
|
||||
val X_INIT_TYPE_MAX_BITS = 2
|
||||
val X_REP_TYPE_MAX_BITS = 3
|
||||
val P_REQ_TYPE_MAX_BITS = 2
|
||||
val P_REP_TYPE_MAX_BITS = 3
|
||||
|
||||
val PADDR_BITS = 40;
|
||||
val VADDR_BITS = 43;
|
||||
val PGIDX_BITS = 13;
|
||||
val PPN_BITS = PADDR_BITS-PGIDX_BITS;
|
||||
val VPN_BITS = VADDR_BITS-PGIDX_BITS;
|
||||
val ASID_BITS = 7;
|
||||
val PERM_BITS = 6;
|
||||
|
||||
|
||||
val COHERENCE_DATA_BITS = (1 << OFFSET_BITS)*8
|
||||
val TILE_ID_BITS = log2Up(NTILES)+1
|
||||
val TILE_XACT_ID_BITS = log2Up(NMSHR)+3
|
||||
val NGLOBAL_XACTS = 8
|
||||
val GLOBAL_XACT_ID_BITS = log2Up(NGLOBAL_XACTS)
|
||||
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package rocket
|
||||
package uncore
|
||||
|
||||
import Chisel._
|
||||
import Node._
|
@ -1,4 +1,4 @@
|
||||
package rocket
|
||||
package uncore
|
||||
|
||||
import Chisel._
|
||||
import Constants._
|
Loading…
Reference in New Issue
Block a user