@@ -62,7 +62,7 @@ void create_ice40_wrapcarry(ice40_wrapcarry_pm &pm)
6262 cell->attributes [stringf (" \\ SB_CARRY.%s" , a.first )] = a.second ;
6363 for (const auto &a : st.lut ->attributes )
6464 cell->attributes [stringf (" \\ SB_LUT4.%s" , a.first )] = a.second ;
65- cell->attributes [ID ( SB_LUT4.name ) ] = Const (st.lut ->name .str ());
65+ cell->attributes [IdString{ " \\ SB_LUT4.name" } ] = Const (st.lut ->name .str ());
6666 if (st.carry ->get_bool_attribute (ID::keep) || st.lut ->get_bool_attribute (ID::keep))
6767 cell->attributes [ID::keep] = true ;
6868
@@ -122,7 +122,7 @@ struct Ice40WrapCarryPass : public Pass {
122122 carry->setPort (ID::CI, cell->getPort (ID::CI));
123123 carry->setPort (ID::CO, cell->getPort (ID::CO));
124124 module ->swap_names (carry, cell);
125- auto lut_name = cell->attributes .at (ID ( SB_LUT4.name ) , Const (NEW_ID.str ())).decode_string ();
125+ auto lut_name = cell->attributes .at (IdString{ " \\ SB_LUT4.name" } , Const (NEW_ID.str ())).decode_string ();
126126 auto lut = module ->addCell (lut_name, ID ($lut));
127127 lut->setParam (ID::WIDTH, 4 );
128128 lut->setParam (ID::LUT, cell->getParam (ID::LUT));
@@ -138,7 +138,7 @@ struct Ice40WrapCarryPass : public Pass {
138138 lut->attributes [a.first .c_str () + strlen (" \\ SB_LUT4." )] = a.second ;
139139 else if (a.first == ID::src)
140140 src = a.second ;
141- else if (a.first .in (ID ( SB_LUT4.name ) , ID::keep, ID::module_not_derived))
141+ else if (a.first .in (IdString{ " \\ SB_LUT4.name" } , ID::keep, ID::module_not_derived))
142142 continue ;
143143 else
144144 log_abort ();
0 commit comments