Use Const::from_string() not its constructor...
authorEddie Hung <eddie@fpgeh.com>
Fri, 12 Jul 2019 08:32:10 +0000 (01:32 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 12 Jul 2019 08:32:10 +0000 (01:32 -0700)
techlibs/ice40/ice40_opt.cc

index 4e50b250e510a49880e061813c97f2bb0509df32..67e8771b433c9b7855fe38cc3c0b2dcd47ea4bf4 100644 (file)
@@ -125,7 +125,7 @@ static void run_ice40_opts(Module *module)
                                cell->unsetPort("\\B");
                                cell->unsetPort("\\CI");
                                cell->unsetPort("\\CO");
-                               cell->setParam("\\LUT_INIT", std::string("0110100110010110"));
+                               cell->setParam("\\LUT_INIT", RTLIL::Const::from_string("0110100110010110"));
                                sb_lut_cells.push_back(cell);
                        }
                        continue;