1
0

Merge pull request #42 from ucb-bar/chisel3

Chisel 3 support
This commit is contained in:
Andrew Waterman 2016-02-05 16:01:35 -08:00
commit 70945953a8
2 changed files with 4 additions and 4 deletions

View File

@ -136,8 +136,8 @@ object TestGenerator extends App with FileSystemUtilities {
Class.forName(s"$projectName.$configClassName").newInstance.asInstanceOf[Config]
} catch {
case e: java.lang.ClassNotFoundException =>
throwException(s"Could not find the cde.Config subclass you asked for " +
"(i.e. \"$configClassName\"), did you misspell it?", e)
throwException("Unable to find configClassName \"" + configClassName +
"\", did you misspell it?", e)
}
val world = config.toInstance
val paramsFromConfig: Parameters = Parameters.root(world)
@ -165,7 +165,7 @@ object TestGenerator extends App with FileSystemUtilities {
val v = createOutputFile(configClassName + ".knb")
v.write(world.getKnobs)
v.close
val d = new java.io.FileOutputStream(Driver.targetDir + configClassName + ".dtb")
val d = new java.io.FileOutputStream(Driver.targetDir + "/" + configClassName + ".dtb")
d.write(paramsFromConfig(DeviceTree))
d.close
val w = createOutputFile(configClassName + ".cst")

View File

@ -11,7 +11,7 @@ class MemDessert(topParams: Parameters) extends Module {
implicit val p = topParams
val io = new MemDesserIO(p(HtifKey).width)
val x = Module(new MemDesser(p(HtifKey).width))
io.narrow <> x.io.narrow
x.io.narrow <> io.narrow
io.wide <> x.io.wide
}