diff options
| author | azidar | 2016-01-23 15:36:09 -0800 |
|---|---|---|
| committer | azidar | 2016-01-23 15:36:09 -0800 |
| commit | d98526e50f9dee6edd4d885c707972cfa9666e34 (patch) | |
| tree | db879c88982cf5a16a224bdadc8d95a1bd1d3580 /test | |
| parent | 854b5d1b1e8929f74294dcce1bfb18dfbf7c874e (diff) | |
Added inference to mports
Diffstat (limited to 'test')
| -rw-r--r-- | test/chirrtl/infer-mport-dir.fir | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/chirrtl/infer-mport-dir.fir b/test/chirrtl/infer-mport-dir.fir new file mode 100644 index 00000000..50baeff2 --- /dev/null +++ b/test/chirrtl/infer-mport-dir.fir @@ -0,0 +1,22 @@ +; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s +; CHECK: Done! +circuit top : + module top : + input clk : Clock + wire p : UInt + wire q : UInt + cmem m : {a:UInt<4>,b:UInt<4>}[10] + p <= UInt(1) + q <= UInt(1) + wire x : {a:UInt<4>,b:UInt<4>} + x.a <= UInt(1) + x.b <= UInt(1) + when p : + infer mport a = m[UInt(3)],clk + infer mport b = m[UInt(3)],clk + infer mport c = m[UInt(3)],clk + when q : + a <= x + x <= b + c <= x + x <= c |
