Skip to content

Instantly share code, notes, and snippets.

@nyuichi
Last active December 11, 2016 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nyuichi/be6a7ec6f978a632c840 to your computer and use it in GitHub Desktop.
Save nyuichi/be6a7ec6f978a632c840 to your computer and use it in GitHub Desktop.
import Chisel._
class SdramController extends Module {
val io = new Bundle {
val a = Bits(OUTPUT, 13)
}
io.a := UInt(0)
io.a(10) := Bool(true)
}
object SdramController {
def main(args: Array[String]) {
chiselMainTest (args, () => Module(new SdramController())) { c => new Tester(c){} }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment