Skip to content

Commit

Permalink
Fix display of active RAM tiles for 5k device
Browse files Browse the repository at this point in the history
Signed-off-by: Kristian Nielsen <[email protected]>
  • Loading branch information
knielsen committed Oct 10, 2023
1 parent f785794 commit 6348c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ice40.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ function asc_postprocess(chipdb, ts, asc) {
// Set active flag.
var active_bitidx = chipdb.ramb_tile_bits.function['RamConfig.PowerUp'][0];
// RAMB powerup flag is active-low in 1k device.
var active_value = (chipdb.device.device == "8k" ? 1 : 0);
var active_value = (chipdb.device.device == "1k" ? 0 : 1);
for (var y = 0; y < chipdb.device.height; ++y) {
if (!(y in ts))
continue;
Expand Down

0 comments on commit 6348c2c

Please sign in to comment.