Fixed typo in comment. Fixed bug where extract_counter would create up counters when...
authorAndrew Zonenberg <azonenberg@drawersteak.com>
Tue, 5 Sep 2017 04:49:56 +0000 (21:49 -0700)
committerAndrew Zonenberg <azonenberg@drawersteak.com>
Thu, 14 Sep 2017 17:25:51 +0000 (10:25 -0700)
passes/techmap/extract_counter.cc

index 540b1593d177fb91d28d4195b734814f5dce5997..de374ab2b2b0d81298cd9add6fdc7b9d75e4fe11 100644 (file)
@@ -424,12 +424,12 @@ void counter_worker(
        cell->setPort("\\CLK", extract.clk);
        cell->setPort("\\OUT", extract.outsig);
 
-       //Hook up hard-wired ports (for now CE and up/=down are not supported), default to no parallel output
+       //Hook up hard-wired ports (for now CE and up/down are not supported), default to no parallel output
        cell->setParam("\\HAS_POUT", RTLIL::Const(0));
        cell->setParam("\\HAS_CE", RTLIL::Const(0));
        cell->setParam("\\DIRECTION", RTLIL::Const("DOWN"));
        cell->setPort("\\CE", RTLIL::Const(1));
-       cell->setPort("\\UP", RTLIL::Const(1));
+       cell->setPort("\\UP", RTLIL::Const(0));
 
        //Hook up any parallel outputs
        for(auto load : extract.pouts)