From 4183c648b719eac9da26e2d9d34fa852ebdbfd20 Mon Sep 17 00:00:00 2001 From: azidar Date: Wed, 7 Oct 2015 14:48:04 -0700 Subject: Added Printf and Stop to firrtl. #23 #24. --- test/features/Stop.fir | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/features/Stop.fir (limited to 'test/features/Stop.fir') diff --git a/test/features/Stop.fir b/test/features/Stop.fir new file mode 100644 index 00000000..fc8869fa --- /dev/null +++ b/test/features/Stop.fir @@ -0,0 +1,20 @@ +; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s + +;CHECK: Lower To Ground + +circuit Top : + module Top : + input p : UInt<1> + input q : UInt<1> + when p : + stop(0) + when q : + stop(1) + stop(3) + +;CHECK: when p : stop(0) +;CHECK: when q : stop(1) +;CHECK: stop(3) + +;CHECK: Done! + -- cgit v1.2.3