From dd214d2d2199d625e20804eff16a63f7a5ef9a15 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 30 Mar 2019 11:49:39 +0100 Subject: [PATCH] bios/main: align SoC info, show CPU speed on CPU line, show L2 --- litex/soc/software/bios/main.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/litex/soc/software/bios/main.c b/litex/soc/software/bios/main.c index 6f68be622..18215fef0 100644 --- a/litex/soc/software/bios/main.c +++ b/litex/soc/software/bios/main.c @@ -405,7 +405,7 @@ int main(int i, char **c) printf("\n"); printf("--============ \e[1mSoC info\e[0m ================--\n"); - printf("\e[1mCPU: \e[0m"); + printf("\e[1mCPU\e[0m: "); #ifdef __lm32__ printf("LM32"); #elif __or1k__ @@ -419,11 +419,13 @@ int main(int i, char **c) #else printf("Unknown"); #endif - printf("\n"); - printf("\e[1mFrequency\e[0m: %dMHz\n", SYSTEM_CLOCK_FREQUENCY/1000000); - printf("\e[1mROM\e[0m: %dKB\n", ROM_SIZE/1024); - printf("\e[1mSRAM\e[0m: %dKB\n", SRAM_SIZE/1024); - printf("\e[1mMAIN-RAM\e[0m: %dKB\n", MAIN_RAM_SIZE/1024); + printf(" @ %dMHz\n", SYSTEM_CLOCK_FREQUENCY/1000000); + printf("\e[1mROM\e[0m: %dKB\n", ROM_SIZE/1024); + printf("\e[1mSRAM\e[0m: %dKB\n", SRAM_SIZE/1024); +#ifdef L2_SIZE + printf("\e[1mL2\e[0m: %dKB\n", L2_SIZE/1024); +#endif + printf("\e[1mMAIN-RAM\e[0m: %dKB\n", MAIN_RAM_SIZE/1024); printf("\n"); printf("--========= \e[1mPeripherals init\e[0m ===========--\n"); @@ -443,10 +445,11 @@ int main(int i, char **c) printf("Memory initialization failed\n"); printf("\n"); - if(sdr_ok) + if(sdr_ok) { printf("--========== \e[1mBoot sequence\e[0m =============--\n"); boot_sequence(); printf("\n"); + } printf("--============= \e[1mConsole\e[0m ================--\n"); while(1) {