From ffcdc53a18197e40571b9c604fff07408cc12346 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 15 May 2016 00:05:30 +0200 Subject: [PATCH] Don't sign-extend memory bram initialization data --- passes/memory/memory_bram.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2