diff options
| author | Andrew Waterman | 2016-02-04 00:00:19 -0800 |
|---|---|---|
| committer | Andrew Waterman | 2016-02-04 00:00:19 -0800 |
| commit | 62fa95acc5d3d301fe461c5844c29d0c75ca6a5d (patch) | |
| tree | 89893f19fba9aacc7e18ba8013b428e9f1e03482 /src/main | |
| parent | 7fc2ea6a14da441db9c47d094361fea07436f6d3 (diff) | |
| parent | c5240a3bfe1c05a206c7c34c3c7c5007bbcc3680 (diff) | |
Merge branch 'blackbox't push origin master
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/scala/Chisel/BlackBox.scala | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/main/scala/Chisel/BlackBox.scala b/src/main/scala/Chisel/BlackBox.scala index dc223a17..ae0c59ba 100644 --- a/src/main/scala/Chisel/BlackBox.scala +++ b/src/main/scala/Chisel/BlackBox.scala @@ -8,16 +8,14 @@ package Chisel * * @example * {{{ - * class DSP48E1 extends BlackBox { - * val io = new Bundle // Create I/O with same as DSP - * val dspParams = new VerilogParameters // Create Parameters to be specified - * setVerilogParams(dspParams) - * // Implement functionality of DSP to allow simulation verification - * } + * ... to be written once a spec is finalized ... * }}} */ -// TODO: actually implement BlackBox (this hack just allows them to compile) // REVIEW TODO: make Verilog parameters part of the constructor interface? -abstract class BlackBox(_clock: Clock = null, _reset: Bool = null) extends Module(_clock = _clock, _reset = _reset) { +abstract class BlackBox(_clock: Clock = null, _reset: Bool = null) + extends Module(_clock = _clock, _reset = _reset) { + // TODO: actually implement this. def setVerilogParameters(s: String): Unit = {} + + // The body of a BlackBox is empty, the real logic happens in firrtl/Emitter.scala } |
