1
0

factor out more global constants

This commit is contained in:
Andrew Waterman
2012-11-05 23:52:32 -08:00
parent ee081d1671
commit c5b93798fb
10 changed files with 268 additions and 327 deletions

View File

@ -5,14 +5,14 @@ import Node._
import Constants._
import scala.math._
class ioPTW(n: Int) extends Bundle
class ioPTW(n: Int)(implicit conf: RocketConfiguration) extends Bundle
{
val requestor = Vec(n) { new IOTLBPTW }.flip
val mem = new ioHellaCache
val mem = new ioHellaCache()(conf.dcache)
val ptbr = UFix(INPUT, PADDR_BITS)
}
class rocketPTW(n: Int) extends Component
class rocketPTW(n: Int)(implicit conf: RocketConfiguration) extends Component
{
val io = new ioPTW(n)