mirror of https://github.com/YosysHQ/yosys.git
Fix static initialization, fixes mingw build
This commit is contained in:
parent
da0682b99a
commit
4db820e9d4
|
@ -34,7 +34,17 @@ struct LUTType {
|
|||
IdString output_param;
|
||||
};
|
||||
|
||||
static const dict<IdString, LUTType> lut_types = {
|
||||
struct FoldInvWorker {
|
||||
FoldInvWorker(Module *module) : module(module), sigmap(module) {};
|
||||
Module *module;
|
||||
SigMap sigmap;
|
||||
|
||||
// Mapping from inverter output to inverter input
|
||||
dict<SigBit, SigBit> inverted_bits;
|
||||
// Mapping from inverter input to inverter
|
||||
dict<SigBit, Cell*> inverter_input;
|
||||
|
||||
const dict<IdString, LUTType> lut_types = {
|
||||
{ID(CC_LUT2), {{
|
||||
{ID(I0), {0, ID(INIT)}},
|
||||
{ID(I1), {1, ID(INIT)}},
|
||||
|
@ -52,17 +62,8 @@ static const dict<IdString, LUTType> lut_types = {
|
|||
{ID(I3), {1, ID(INIT_L03)}},
|
||||
{ID(I4), {0, ID(INIT_L20)}},
|
||||
}, ID(INIT_L20)}},
|
||||
};
|
||||
};
|
||||
|
||||
struct FoldInvWorker {
|
||||
FoldInvWorker(Module *module) : module(module), sigmap(module) {};
|
||||
Module *module;
|
||||
SigMap sigmap;
|
||||
|
||||
// Mapping from inverter output to inverter input
|
||||
dict<SigBit, SigBit> inverted_bits;
|
||||
// Mapping from inverter input to inverter
|
||||
dict<SigBit, Cell*> inverter_input;
|
||||
|
||||
void find_inverted_bits()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue