1
0

some renaming

This commit is contained in:
Howard Mao 2016-07-14 13:41:59 -07:00
parent 1c2bf6e938
commit c906e6edde

View File

@ -8,7 +8,7 @@ import uncore.converters._
import uncore.constants._ import uncore.constants._
import cde.Parameters import cde.Parameters
class TileLinkToSmiConverterTestDriver(implicit p: Parameters) extends Module { class SmiConverterTestDriver(implicit p: Parameters) extends Module {
val io = new Bundle { val io = new Bundle {
val mem = new ClientUncachedTileLinkIO val mem = new ClientUncachedTileLinkIO
val start = Bool(INPUT) val start = Bool(INPUT)
@ -74,12 +74,12 @@ class TileLinkToSmiConverterTestDriver(implicit p: Parameters) extends Module {
io.finished := (state === s_finished) io.finished := (state === s_finished)
} }
class TileLinkToSmiConverterTest(implicit p: Parameters) extends UnitTest { class SmiConverterTest(implicit p: Parameters) extends UnitTest {
val outermostParams = p.alterPartial({ case TLId => "Outermost" }) val outermostParams = p.alterPartial({ case TLId => "Outermost" })
val smimem = Module(new SmiMem(32, 64)) val smimem = Module(new SmiMem(32, 64))
val conv = Module(new SmiIOTileLinkIOConverter(32, 6)(outermostParams)) val conv = Module(new SmiIOTileLinkIOConverter(32, 6)(outermostParams))
val driver = Module(new TileLinkToSmiConverterTestDriver()(outermostParams)) val driver = Module(new SmiConverterTestDriver()(outermostParams))
conv.io.tl <> driver.io.mem conv.io.tl <> driver.io.mem
smimem.io <> conv.io.smi smimem.io <> conv.io.smi