summaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2016-05-04Multiple assign testerducky
Closes #90
2016-05-04Rewrite BlackBox IO contract, replace _clock|_resetStephen Twigg
The old blackbox behavior still emitted extmodules that have a clk, reset pin and prepended all io's with io_ (ultimately). Most verilog modules do not follow this distinction (or use a slightly different name for clock and so on). Thus, instead BlackBox has been rewritten to not assume a clk or reset pin. Instead, the io Bundle specified is flattened directly into the Module.ports declaration. The tests have been rewritten to compensate for this. Also, added a test that uses the clock pin. As a secondary change, the _clock and _reset module parameters were bad for two reasons. One, they used null as a default, which is a scala best practices violation. Two, they were just not good names. Instead the primary constructor has been rewritten to take an Option[Clock] called override_clock and an Option[Bool] called override_reset, which default to None. (Note how the getOrElse call down below is much more natural now.) However, users may not want to specify the Some(their_clock) so I also added secondary constructors that take parameters named clock and reset and wrap them into Some calls into the primary constructor. This is a better UX because now you can just stipulate clock=blah in instantiation of that module in symmetry with using the clock in the definition of the module by invoking clock. PS: We could also back out of allowing any overrides via the Module constructor and just require the instantiating Module to do submodule.clock := newclock, etc.
2016-04-26Replace deprecated usage in tests. Issue #149Jim Lawson
2016-04-18Add whenever method to TblSpec forall to weed out invalid test values.Jim Lawson
2016-04-15Test FIRRTL string literals more aggressivelyAndrew Waterman
2016-04-14Disallow Counters with negative nAndrew Waterman
One could make an argument for disallowing n=0, too, but HW generators will benefit from our leniency. Closes #107. Thanks @jackkoenig
2016-03-18Add test for assertions in modules with pipedlined resetjackkoenig
2016-03-18Only randomize directory names during testingjackkoenig
2016-02-25Fixed comment punctuation and made it clearer that using an init() method ↵chick
for DeqIO and EnqIO initialization is likely to change.
2016-02-24Remove the assignment statements in EnqIO and DeqIO Bundle constructors.chick
Make the corresponding test run faster by giving it a Counter.
2016-02-24Create a test that breaks because of assignment statements in DeqIO and ↵chick
EnqIO bundles
2016-02-22Fixed improper apostrophe in it's in TesterDriverSpec commentschick
2016-02-10TesterDriverSpec is simpler and cleaner, extraneous circuit has been removed.chick
Cleanup comment for finish method in BasicTester, and finishWrapper in TesterDriver.
2016-02-10The TesterDriverSpec has been made stronger by altering circuit in finish methodchick
2016-02-10Added some comments describing potential use of the finish method hookchick
clean up the test example
2016-02-09fixed test for finish method being put in the wrong placechick
2016-02-09Added support for finish method of BasicTester to be overridden in a ↵chick
subclass which allows tester to have clean up and other construction code executed after a user code executed during constructor of that subclass
2016-02-08Added a simple tests that DeqIO and EnqIO get their directions right and are ↵chick
clonable
2016-01-30Add BlackBox support and test, refactor execute => assertTesterPassesducky
2016-01-28Fixed NoneOptionBundleTester to actually instantiate a module without an ↵azidar
input port
2016-01-28Merge branch 'master' into modrefactorAndrew Waterman
2016-01-28Merge branch 'master' into scalastyleAndrew Waterman
2016-01-27Add unit test for module deduplicationducky
2016-01-16Add When test and fix when / elsewhen / otherwise behaviorducky
2016-01-06Don't silence legitimate warnings - these println()s should be controlled by ↵Jim Lawson
a diagnostic/debugging infrastructure.
2016-01-05Scalastyle fixes - whitespace or comments only.Jim Lawson
2015-12-11Refactor tests to use stop() and assert() instead of io.error/io.doneducky
Gate assert, printf, stop by reset Fix testbenches that never worked Change simulation prints to display cycle at which test was signaled to end, not when simulator stops Better documentation for Counter
2015-12-11Add stop() in BasicTester as a replacement for io.doneducky
2015-12-11Add support for printf and asserts, add testbench for asserts and printfducky
2015-12-11Merge pull request #64 from ucb-bar/optionablebundleAdam Izraelevitz
Add Option support in Bundle
2015-12-10Add Option support in Bundleducky
2015-12-09Refactor testharness generation to create directories and have minimal APIducky
2015-12-09Extend TesterDriver to optionally take in additional Verilog sourcesducky
2015-12-06Split internal and FIRRTL packagesducky
2015-11-06Merge pull request #59 from ucb-bar/testing-improvementsJim Lawson
Further testing improvements
2015-11-06added elaboration tests for remaining old Chisel3 examplesHenry Cook
2015-11-06Fixed bug that created Vec(Reg(...)) instead of Reg(Vec(...))azidar
2015-11-06Fix counter testsHenry Cook
2015-11-04Merge pull request #56 from ucb-bar/stylefixJim Lawson
Style fixes for test code
2015-11-04Style fixes for test code, so we can go back down to zero style errors for testsducky
2015-11-04Fix Tbl.ioHenry Cook
2015-11-04Use elaborate for elaboration tests, not executeHenry Cook
2015-11-04Supply smaller values for generatorDrivenConfig to reduce test time.Henry Cook
2015-11-04Remove Parameters library and refactor Driver.Henry Cook
In addition to removing all the extraneous Driver invocations that created various top-level Parameters instances, this commit also lays the groundwork for stanza-firrtl/verilator based testing of Modules that extend BasicTester. The execution-based tests have been updated accordingly. They will only succeed if firrtl and verilator binaries have been installed. Further work is needed on individual tests to use assertions instead of .io.error.
2015-10-23Fix stylistic issues and document standard Chisel generatorsducky
2015-10-23Add Scalaland unit tests for Regducky
2015-10-23Whitespace scalastyle fixes for testsducky
2015-08-14more testsHenry Cook
2015-08-14VecShiftReg testHenry Cook
2015-08-14todoHenry Cook