Bugfix: include assign to write-mask
authorAdam Izraelevitz <azidar@gmail.com>
Fri, 18 Nov 2016 19:49:26 +0000 (11:49 -0800)
committerAdam Izraelevitz <azidar@gmail.com>
Fri, 18 Nov 2016 19:49:26 +0000 (11:49 -0800)
backends/firrtl/firrtl.cc

index 3b61eb9f892156f3c80258b6d13c79fb74153536..0d1c1889d56c97e0b8a78fe95173b2f85976f2d9 100644 (file)
@@ -280,6 +280,7 @@ struct FirrtlWorker
                                        cell_exprs.push_back(stringf("    %s.w%d.addr <= %s\n", mem_id.c_str(), i, addr_expr.c_str()));
                                        cell_exprs.push_back(stringf("    %s.w%d.data <= %s\n", mem_id.c_str(), i, data_expr.c_str()));
                                        cell_exprs.push_back(stringf("    %s.w%d.en <= %s\n", mem_id.c_str(), i, wen_expr.c_str()));
+                                       cell_exprs.push_back(stringf("    %s.w%d.mask <= UInt<1>(1)\n", mem_id.c_str(), i));
                                        cell_exprs.push_back(stringf("    %s.w%d.clk <= asClock(%s)\n", mem_id.c_str(), i, clk_expr.c_str()));
                                }