Revert "bitstream: use 32-bit csrs"

While 32-bit CSRs increase performance by 4x, they cause older software
to break.

Consider making this breaking change in 3.0.

This reverts commit bb0b1ff761.
This commit is contained in:
Sean Cross 2021-11-25 09:41:07 +08:00
parent 882ce04da8
commit 1f4401fc51
2 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ class BaseSoC(SoCCore, AutoDoc):
clk_freq = int(12e6)
self.submodules.crg = _CRG(platform)
SoCCore.__init__(self, platform, clk_freq, integrated_sram_size=0, with_uart=False, csr_data_width=32, **kwargs)
SoCCore.__init__(self, platform, clk_freq, integrated_sram_size=0, with_uart=False, **kwargs)
usb_debug = False
if debug is not None:

View File

@ -62,7 +62,7 @@ __attribute__((noreturn)) void reboot(void);
// Forward-define this function, because it's defined inside `csr.h`,
// which includes this file near the top.
static inline void reboot_ctrl_write(uint32_t v);
static inline void reboot_ctrl_write(uint8_t v);
__attribute__((noreturn)) static inline void warmboot_to_image(uint8_t image_index) {
reboot_ctrl_write(0xac | (image_index & 3) << 0);