mirror of https://github.com/YosysHQ/yosys.git
Don't sign-extend memory bram initialization data
This commit is contained in:
parent
864eeadcd9
commit
ffcdc53a18
|
@ -826,7 +826,7 @@ grow_read_ports:;
|
|||
State padding = State::Sx;
|
||||
for (int j = 0; j < bram.dbits; j++)
|
||||
if (init_offset+i < GetSize(initdata) && init_shift+j < GetSize(initdata[init_offset+i]))
|
||||
padding = initparam[i*bram.dbits+j] = initdata[init_offset+i][init_shift+j];
|
||||
initparam[i*bram.dbits+j] = initdata[init_offset+i][init_shift+j];
|
||||
else
|
||||
initparam[i*bram.dbits+j] = padding;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue