aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-05-15 00:05:30 +0200
committerClifford Wolf <clifford@clifford.at>2016-05-15 00:05:30 +0200
commitffcdc53a18197e40571b9c604fff07408cc12346 (patch)
tree44ee8cd17c5376472c2e1cb940a8a762056cb492
parent864eeadcd9244505c7c026e2044799ff5bcf4782 (diff)
downloadyosys-ffcdc53a18197e40571b9c604fff07408cc12346.tar.gz
yosys-ffcdc53a18197e40571b9c604fff07408cc12346.tar.bz2
yosys-ffcdc53a18197e40571b9c604fff07408cc12346.zip
Don't sign-extend memory bram initialization data
-rw-r--r--passes/memory/memory_bram.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/memory/memory_bram.cc b/passes/memory/memory_bram.cc
index cd424fd68..7b5dd08ab 100644
--- a/passes/memory/memory_bram.cc
+++ b/passes/memory/memory_bram.cc
@@ -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;
}