aboutsummaryrefslogtreecommitdiff
path: root/test/simple.fir
diff options
context:
space:
mode:
Diffstat (limited to 'test/simple.fir')
-rw-r--r--test/simple.fir11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/simple.fir b/test/simple.fir
new file mode 100644
index 00000000..d00f8f7a
--- /dev/null
+++ b/test/simple.fir
@@ -0,0 +1,11 @@
+; RUN: firrtl %s ab | tee %s.out | FileCheck %s
+
+circuit top :
+ module subtracter :
+ input x : UInt
+ input y : UInt
+ output z : UInt
+ z := sub-mod(x, y)
+; CHECK: output z : UInt
+; CHECK: port:z := sub-mod(port:x, port:y)
+