From: Florent Kermarrec Date: Sat, 30 Mar 2019 10:49:39 +0000 (+0100) Subject: bios/main: align SoC info, show CPU speed on CPU line, show L2 X-Git-Tag: 24jan2021_ls180~1351 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd214d2d2199d625e20804eff16a63f7a5ef9a15;p=litex.git bios/main: align SoC info, show CPU speed on CPU line, show L2 --- diff --git a/litex/soc/software/bios/main.c b/litex/soc/software/bios/main.c index 6f68be62..18215fef 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) {