move FPGA AXI to HTIF converter into Chisel module
This commit is contained in:
parent
926efd0cab
commit
5e4a02038c
@ -1 +1 @@
|
||||
Subproject commit bda22dcd7edaa984eefa2cc76f72b82a370b9c64
|
||||
Subproject commit cfc0a61f3051089f364d9f73f6894734d1e8910b
|
@ -1 +1 @@
|
||||
Subproject commit 88843dbfe6014d8c1df999669ecd8f985e660ec3
|
||||
Subproject commit c5281b2dd2947649cc0e7f642052d703d2d3eeda
|
@ -1 +1 @@
|
||||
Subproject commit 5e9160b48a725294c22f4c84072c1a06f9295a29
|
||||
Subproject commit 5138397ad2167a8f7c755a42d8640584620119b3
|
27
src/main/scala/Fpga.scala
Normal file
27
src/main/scala/Fpga.scala
Normal file
@ -0,0 +1,27 @@
|
||||
package rocketchip
|
||||
|
||||
import Chisel._
|
||||
import uncore._
|
||||
import junctions._
|
||||
import cde.Parameters
|
||||
|
||||
class ZynqAdapter(implicit val p: Parameters) extends Module
|
||||
with HasTopLevelParameters {
|
||||
|
||||
val adapterParams = p.alterPartial({
|
||||
case NastiKey => NastiParameters(
|
||||
dataBits = 32,
|
||||
addrBits = 32,
|
||||
idBits = 12)
|
||||
case TLId => "L1toL2"
|
||||
})
|
||||
|
||||
val io = new Bundle {
|
||||
val nasti = new NastiIO()(adapterParams).flip
|
||||
val host = new HostIO(htifW).flip
|
||||
val reset = Bool(OUTPUT)
|
||||
}
|
||||
|
||||
val conv = Module(new NastiIOHostIOConverter(htifW)(adapterParams))
|
||||
io <> conv.io
|
||||
}
|
@ -104,6 +104,12 @@ class WithNastiConverterTest extends Config(
|
||||
(id: Int, p: Parameters) => Module(new NastiConverterTest()(p))
|
||||
})
|
||||
|
||||
class WithUnitTest extends Config(
|
||||
(pname, site, here) => pname match {
|
||||
case BuildGroundTest =>
|
||||
(id: Int, p: Parameters) => Module(new UnitTestSuite()(p))
|
||||
})
|
||||
|
||||
class GroundTestConfig extends Config(new WithGroundTest ++ new DefaultConfig)
|
||||
class MemtestConfig extends Config(new WithMemtest ++ new GroundTestConfig)
|
||||
class MemtestL2Config extends Config(
|
||||
@ -117,6 +123,7 @@ class CacheRegressionTestConfig extends Config(
|
||||
class DmaTestConfig extends Config(new WithDmaTest ++ new WithL2Cache ++ new GroundTestConfig)
|
||||
class DmaStreamTestConfig extends Config(new WithDmaStreamTest ++ new WithStreamLoopback ++ new WithL2Cache ++ new GroundTestConfig)
|
||||
class NastiConverterTestConfig extends Config(new WithNastiConverterTest ++ new GroundTestConfig)
|
||||
class UnitTestConfig extends Config(new WithUnitTest ++ new GroundTestConfig)
|
||||
|
||||
class FancyMemtestConfig extends Config(
|
||||
new With2Cores ++ new With2MemoryChannels ++ new With2BanksPerMemChannel ++
|
||||
|
2
uncore
2
uncore
@ -1 +1 @@
|
||||
Subproject commit 6e4d5602376404836dab6ec6d806437e6886c049
|
||||
Subproject commit 09b460078a16ea28c88dafb8520eda828a89b992
|
Loading…
Reference in New Issue
Block a user