diff options
| author | azidar | 2015-05-19 20:16:53 -0700 |
|---|---|---|
| committer | azidar | 2015-05-19 20:16:53 -0700 |
| commit | 0faab2b1efb266bc8000b11a474438401ff5af83 (patch) | |
| tree | 495f90290e9602535fc8e57f04dc620b0c6864ed /test/passes/jacktest/ComplexAssign.fir | |
| parent | 8feaa0a5ae0479b4063771202d7ad0e93d39c247 (diff) | |
Updated tests
Diffstat (limited to 'test/passes/jacktest/ComplexAssign.fir')
| -rw-r--r-- | test/passes/jacktest/ComplexAssign.fir | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/passes/jacktest/ComplexAssign.fir b/test/passes/jacktest/ComplexAssign.fir new file mode 100644 index 00000000..8e508d7d --- /dev/null +++ b/test/passes/jacktest/ComplexAssign.fir @@ -0,0 +1,15 @@ +; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s +;CHECK: Done! +circuit ComplexAssign : + module ComplexAssign : + input in : {re : UInt<10>, im : UInt<10>} + output out : {re : UInt<10>, im : UInt<10>} + input e : UInt<1> + when e : + wire T_18 : {re : UInt<10>, im : UInt<10>} + T_18 := in + out.re := T_18.re + out.im := T_18.im + else : + out.re := UInt<1>(0) + out.im := UInt<1>(0) |
