diff options
| author | jackbackrack | 2015-05-20 03:52:53 -0700 |
|---|---|---|
| committer | jackbackrack | 2015-05-20 03:52:53 -0700 |
| commit | 994fc58aa9a65eb4a5e287e121ee2e77d91db403 (patch) | |
| tree | 5a75bfd8f4bd0040e577e20c928d2ee5bc56924b /test/passes/jacktest/Rom.fir | |
| parent | f98ef93a1562357412fd1fce4b1f453f8a33572a (diff) | |
| parent | 92e7da031a14df41ee0cab13a4a63b472fbdb5e1 (diff) | |
merge
Diffstat (limited to 'test/passes/jacktest/Rom.fir')
| -rw-r--r-- | test/passes/jacktest/Rom.fir | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/passes/jacktest/Rom.fir b/test/passes/jacktest/Rom.fir new file mode 100644 index 00000000..ee417771 --- /dev/null +++ b/test/passes/jacktest/Rom.fir @@ -0,0 +1,26 @@ +; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s +;CHECK: Done! +circuit Rom : + module Rom : + output out : UInt<5> + input addr : UInt<4> + + wire r : UInt<5>[16] + r[0] := UInt<5>(0) + r[1] := UInt<5>(2) + r[2] := UInt<5>(4) + r[3] := UInt<5>(6) + r[4] := UInt<5>(8) + r[5] := UInt<5>(10) + r[6] := UInt<5>(12) + r[7] := UInt<5>(14) + r[8] := UInt<5>(16) + r[9] := UInt<5>(18) + r[10] := UInt<5>(20) + r[11] := UInt<5>(22) + r[12] := UInt<5>(24) + r[13] := UInt<5>(26) + r[14] := UInt<5>(28) + r[15] := UInt<5>(30) + accessor T_39 = r[addr] + out := T_39 |
