From 898efea92e9e13775b39dd7fb92cac420334b9c9 Mon Sep 17 00:00:00 2001 From: ducky Date: Thu, 10 Dec 2015 16:22:59 -0800 Subject: Add BlackBox support and test, refactor execute => assertTesterPasses --- src/main/scala/Chisel/BlackBox.scala | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/main') 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 } -- cgit v1.2.3