aboutsummaryrefslogtreecommitdiffstats
path: root/README.tb_test
diff options
context:
space:
mode:
authorbryan newbold <bnewbold@leaflabs.com>2013-10-08 23:33:18 -0400
committerbryan newbold <bnewbold@leaflabs.com>2013-10-08 23:48:05 -0400
commit3b13cb7d690ba1891f008d2905fcfb36049c71ff (patch)
tree12ddf94a955c2f8611c43c269d4620629fa3d31c /README.tb_test
parentb31c07157b7b8ca7e8823749e140fcab24b787d2 (diff)
downloadbasic-hdl-template-3b13cb7d690ba1891f008d2905fcfb36049c71ff.tar.gz
basic-hdl-template-3b13cb7d690ba1891f008d2905fcfb36049c71ff.zip
clean up test stuff
Diffstat (limited to 'README.tb_test')
-rw-r--r--README.tb_test12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.tb_test b/README.tb_test
new file mode 100644
index 0000000..3be00d6
--- /dev/null
+++ b/README.tb_test
@@ -0,0 +1,12 @@
+
+"testbenches" are helpful wrappers which exersize a piece of code. they should
+live in ./tb/, end in "_tb.v" or "_tb.vhd", and have a signal file (ending in
+"_tb.wcfg") associated with the same name. update the 'tbfiles' list in
+Makefile. invoke the isim GUI with "make isim/name_tb" (for tb/name_tb.v). if
+you make a source code change and don't want to reload the whole GUI, you can
+do "make resim/name_tb" and then click the "Re-load" button.
+
+testbenches which can act as headless unit tests (reporting pass/fail by
+printing to stdout) should be added to the 'alltests' list in Makefile. run the
+test with 'make test/name_tb'; run all tests with 'make tests'.
+