diff options
| author | azidar | 2016-01-25 15:34:32 -0800 |
|---|---|---|
| committer | azidar | 2016-01-25 15:34:32 -0800 |
| commit | 25131f76567f92f18a46c41156f3a88b319591de (patch) | |
| tree | eaa8fa27be8daac6649b9554df600cc2f8b1468c /test/features/MuxNodeExamples.fir | |
| parent | 63928c30dbf074deed522fb99099b4d82c07b602 (diff) | |
Added isinvalid and validif
Diffstat (limited to 'test/features/MuxNodeExamples.fir')
| -rw-r--r-- | test/features/MuxNodeExamples.fir | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/features/MuxNodeExamples.fir b/test/features/MuxNodeExamples.fir new file mode 100644 index 00000000..07fa16b4 --- /dev/null +++ b/test/features/MuxNodeExamples.fir @@ -0,0 +1,28 @@ +; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s +;CHECK: Expand Connects +circuit Top : + module Top : + input a : {f:UInt<3>[3], flip g:UInt<3>[3]}[2] + input b : {f:UInt<3>[3], flip g:UInt<3>[3]}[2] + input p : UInt<1> + input i : UInt<1> + b[0].g[0] <= UInt(0) + b[0].g[1] <= UInt(0) + b[0].g[2] <= UInt(0) + b[1].g[0] <= UInt(0) + b[1].g[1] <= UInt(0) + b[1].g[2] <= UInt(0) + a[0].g[0] <= UInt(0) + a[0].g[1] <= UInt(0) + a[0].g[2] <= UInt(0) + a[1].g[0] <= UInt(0) + a[1].g[1] <= UInt(0) + a[1].g[2] <= UInt(0) + node x = mux(p,a[i].f,b[i].f) + + + +;CHECK: Finished Expand Connects +;CHECK: Done! + + |
