From ffa090c10d6210395e3f304e56008e2183a85698 Mon Sep 17 00:00:00 2001 From: azidar Date: Fri, 6 Nov 2015 09:51:59 -0800 Subject: WIP --- notes/memory_v2.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'notes') diff --git a/notes/memory_v2.txt b/notes/memory_v2.txt index e6d752eb..dabbadb8 100644 --- a/notes/memory_v2.txt +++ b/notes/memory_v2.txt @@ -57,3 +57,16 @@ circuit top : rdwr : {flip rdata : UInt<32>[4], ren : UInt<1>, wdata : UInt<32>[4], wen : UInt<1>, index : UInt<7>, clk : Clock, mask : UInt<1>[4]}[1] } + +Changes to compiler: +Resolve genders: is much easier because (1) don't need to infer ports, and (2) is no longer fixed-point algorithm +Expand accessors: now makes an expression indexer +Lowering: Need to special case memories +Need to do cse early on, definitely before inline indexers +Expand whens: need to special case memories and their subfields.. ugh. + + + + + + -- cgit v1.2.3