diff options
| author | ducky | 2015-12-10 16:22:59 -0800 |
|---|---|---|
| committer | ducky | 2016-01-30 14:45:55 -0800 |
| commit | 898efea92e9e13775b39dd7fb92cac420334b9c9 (patch) | |
| tree | bb7cdb52fbfe90c44de5846f5175b27d894e3b27 /src/main/scala/Chisel | |
| parent | 8d8c407c0c1693160d6f0972165e376e09aa99c9 (diff) | |
Add BlackBox support and test, refactor execute => assertTesterPasses
Diffstat (limited to 'src/main/scala/Chisel')
| -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 } |
