add Zscale testing
This commit is contained in:
@ -218,6 +218,8 @@ class WithZscale extends ChiselConfig(
|
||||
(r: Bool) => Module(new Zscale(r), {case TLId => "L1ToL2"})
|
||||
}
|
||||
case UseZscale => true
|
||||
case BootROMCapacity => Dump("BOOT_CAPACITY", 16*1024)
|
||||
case DRAMCapacity => Dump("DRAM_CAPACITY", 64*1024*1024)
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -9,6 +9,8 @@ import zscale._
|
||||
|
||||
case object UseZscale extends Field[Boolean]
|
||||
case object BuildZscale extends Field[(Bool) => Zscale]
|
||||
case object BootROMCapacity extends Field[Int]
|
||||
case object DRAMCapacity extends Field[Int]
|
||||
|
||||
class ZscaleSystem extends Module {
|
||||
val io = new Bundle {
|
||||
@ -63,8 +65,8 @@ class ZscaleTop extends Module {
|
||||
}
|
||||
|
||||
val sys = Module(new ZscaleSystem)
|
||||
val bootmem = Module(new HASTISRAM(4096))
|
||||
val dram = Module(new HASTISRAM(4194304))
|
||||
val bootmem = Module(new HASTISRAM(params(BootROMCapacity)/4))
|
||||
val dram = Module(new HASTISRAM(params(DRAMCapacity)/4))
|
||||
|
||||
sys.io.host <> io.host
|
||||
bootmem.io <> sys.io.bootmem
|
||||
|
Reference in New Issue
Block a user