AstNode *block = new AstNode(AST_BLOCK);
AstNode *meminit = nullptr;
- int next_meminit_cursor;
+ int next_meminit_cursor=0;
vector<State> meminit_bits;
- int meminit_size;
+ int meminit_size=0;
std::ifstream f;
f.open(mem_filename.c_str());
Const initval = memory->parameters.at("\\INIT");
RTLIL::Cell *last_init_cell = nullptr;
SigSpec last_init_data;
- int last_init_addr;
+ int last_init_addr=0;
for (int i = 0; i < GetSize(initval) && i/mem->width < (1 << abits); i += mem->width) {
Const val = initval.extract(i, mem->width, State::Sx);