summaryrefslogtreecommitdiff
path: root/src/main/scala/Chisel
diff options
context:
space:
mode:
authorAndrew Waterman2016-02-04 00:00:19 -0800
committerAndrew Waterman2016-02-04 00:00:19 -0800
commit62fa95acc5d3d301fe461c5844c29d0c75ca6a5d (patch)
tree89893f19fba9aacc7e18ba8013b428e9f1e03482 /src/main/scala/Chisel
parent7fc2ea6a14da441db9c47d094361fea07436f6d3 (diff)
parentc5240a3bfe1c05a206c7c34c3c7c5007bbcc3680 (diff)
Merge branch 'blackbox't push origin master
Diffstat (limited to 'src/main/scala/Chisel')
-rw-r--r--src/main/scala/Chisel/BlackBox.scala14
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
}