aboutsummaryrefslogtreecommitdiff
path: root/test/features/NestedSubAccessTester.fir
diff options
context:
space:
mode:
authorAdam Izraelevitz2016-08-15 10:32:41 -0700
committerGitHub2016-08-15 10:32:41 -0700
commitbebd04c4c68c320b2b72325e348c726dc33beae6 (patch)
tree69f6d4da577977cc7ff428b0545bb4735507aad0 /test/features/NestedSubAccessTester.fir
parentcca37c46fc0848f5dbf5f95ba60755ed6d60712b (diff)
Remove stanza (#231)
* Removed stanza implementation/tests. In the future we can move the stanza tests over, but for now they should be deleted. * Added back integration .fir files * Added Makefile to give Travis hooks * Added firrtl script (was ignored before)
Diffstat (limited to 'test/features/NestedSubAccessTester.fir')
-rw-r--r--test/features/NestedSubAccessTester.fir27
1 files changed, 0 insertions, 27 deletions
diff --git a/test/features/NestedSubAccessTester.fir b/test/features/NestedSubAccessTester.fir
deleted file mode 100644
index 36465012..00000000
--- a/test/features/NestedSubAccessTester.fir
+++ /dev/null
@@ -1,27 +0,0 @@
-circuit NestedSubAccessTester :
- module NestedSubAccess :
- input foo : UInt<1>[4]
- input index : UInt<2>
- output out : UInt<4>
-
- wire vec : UInt<4>[2]
- vec[0] <= UInt(3)
- vec[1] <= UInt(4)
-
- out <= vec[foo[index]]
-
- module NestedSubAccessTester :
- input clk : Clock
- input reset : UInt<1>
-
- inst dut of NestedSubAccess
-
- dut.foo is invalid
- dut.index <= UInt(2)
- dut.foo[2] <= UInt(1)
-
- when neq(dut.out, UInt(4)) :
- printf(clk, not(reset), "Assertion failed\nTest Failed!\n")
- stop(clk, not(reset), 1)
- else :
- stop(clk, not(reset), 0)