efabless / caravel_mgmt_soc_gf180mcu

This repository is the GF180MCU port of management core for Caravel. For more information about the Caravel management SoC, see https://github.com/efabless/caravel_mgmt_soc_litex.
Apache License 2.0
0 stars 2 forks source link

can't write to the sram #8

Closed M0stafaRady closed 1 year ago

M0stafaRady commented 2 years ago

New litex generation disables writing to sram. Changing the chip select signal form assign sram_cs_b = core_rstn; to assign cs_b = 1'd0; is why it fails. Assigning it to 0 are wrong because the memory have signal named cen_fell that would be 1 when chip select value flips from 1 to 0.

M0stafaRady commented 1 year ago

@jeffdi this issue this exist because the new RTL change is using assign cs_b = (~core_rstn); instead of assign cs_b = (core_rstn); this need to be inverted somewhere I inverted the signal inside the sram module. Please merge https://github.com/efabless/caravel_mgmt_soc_gf180mcu/pull/12

M0stafaRady commented 1 year ago

fix by commit f8f7717c513faa52dfd0df86eedd0d84f4f20ccb