Remove the LiteX timer peripheral

The LiteX timer peripheral wastes resources and is not required
for operation of the BIOS on POWER SoCs.
parent a6255d53
...@@ -32,7 +32,7 @@ Building the Kestrel BMC for the ECP-5 FPGA on the Versa board is quite straight ...@@ -32,7 +32,7 @@ Building the Kestrel BMC for the ECP-5 FPGA on the Versa board is quite straight
Please see the [Quick Start Guide](https://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/litex/-/wikis/Quick-Start) for setup instructions applicable to the standard Raptor development environment on POWER9. After the subrepositories are set up, simply run: Please see the [Quick Start Guide](https://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/litex/-/wikis/Quick-Start) for setup instructions applicable to the standard Raptor development environment on POWER9. After the subrepositories are set up, simply run:
cd kestrel/litex/litex-boards/litex_boards/targets cd kestrel/litex/litex-boards/litex_boards/targets
./versa_ecp5.py --device=LFE5UM --cpu-type=microwatt --cpu-variant=standard+ghdl+irq --with-ethernet --build --nextpnr-seed 1 ./versa_ecp5.py --device=LFE5UM --cpu-type=microwatt --cpu-variant=standard+ghdl+irq --with-ethernet --build --nextpnr-seed 4
# Updating the bitstream with new firmware # Updating the bitstream with new firmware
......
...@@ -129,12 +129,11 @@ class BaseSoC(SoCCore): ...@@ -129,12 +129,11 @@ class BaseSoC(SoCCore):
kwargs["csr_data_width"] = 8 kwargs["csr_data_width"] = 8
kwargs["csr_paging"] = 0x800 kwargs["csr_paging"] = 0x800
# Disable timer uptime counter # Disable timer peripheral
# Microwatt already provides an architecturally-defined timer with interrupt (decrementer), # Microwatt, or any other POWER-compliant CPU, already provides an
# architecturally-defined timer with interrupt (decrementer),
# so the LiteX one just wastes resources in Kestrel. # so the LiteX one just wastes resources in Kestrel.
# FIXME: The entire timer could be removed if the LiteX BIOS could make use of the POWER decrementer, kwargs["with_timer"] = False
# freeing resources for something else.
kwargs["with_timer"] = True
kwargs["timer_uptime"] = False kwargs["timer_uptime"] = False
# FIXME: adapt integrated rom size for Microwatt # FIXME: adapt integrated rom size for Microwatt
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment