[bootloader] show CUSTOM_ID

Value assigned to CUSTOM_ID generic is shown as "CID" in bootloader intro.
This commit is contained in:
stnolting 2022-07-22 15:20:34 +02:00
parent bbea81d8c9
commit c897d0f85a
3 changed files with 58 additions and 47 deletions

View file

@ -90,6 +90,7 @@ following intro screen shows up:
BLDV: Jul 11 2022
HWV: 0x01070307
CID: 0x00000000
CLK: 0x05f5e100
ISA: 0x40901104 + 0xc0000783
SOC: 0x7c5f400f
@ -106,6 +107,7 @@ The start-up screen gives some brief information about the bootloader and severa
|=======================
| `BLDV` | Bootloader version (built date).
| `HWV` | Processor hardware version (the <<_mimpid>> CSR); in BCD format; example: `0x01040606` = v1.4.6.6).
| `CID` | Custom user-defined ID (via the `CUSTOM_ID` register from <<_system_configuration_information_memory_sysinfo>>; defined by the <<_custom_id>> generic).
| `CLK` | Processor clock speed in Hz (via the `CLK` register from <<_system_configuration_information_memory_sysinfo>>; defined by the <<_clock_frequency>> generic).
| `ISA` | CPU extensions (<<_misa>> CSR + <<_mxisa>> CSR).
| `SOC` | Processor configuration (via the `SOC` register from the <<_system_configuration_information_memory_sysinfo>>; mainly defined by the `IO_*` and `MEM_*` configuration generics).

View file

@ -1,8 +1,8 @@
-- The NEORV32 RISC-V Processor: https://github.com/stnolting/neorv32
-- Auto-generated memory initialization file (for BOOTLOADER) from source file <bootloader/main.bin>
-- Size: 4036 bytes
-- Size: 4064 bytes
-- MARCH: default
-- Built: 14.07.2022 15:12:45
-- Built: 22.07.2022 15:12:43
-- prototype defined in 'neorv32_package.vhd'
package body neorv32_bootloader_image is
@ -46,7 +46,7 @@ x"00000e93",
x"00000f13",
x"00000f93",
x"00001597",
x"f3058593",
x"f4c58593",
x"80010617",
x"f6460613",
x"80010697",
@ -111,7 +111,7 @@ x"0007a023",
x"800007b7",
x"0007a223",
x"ffff07b7",
x"7a878793",
x"7bc78793",
x"30579073",
x"fe802783",
x"00080737",
@ -167,11 +167,11 @@ x"ffff7637",
x"00000713",
x"5ff78793",
x"a0060613",
x"1ad7ee63",
x"1cd7e863",
x"000016b7",
x"00000793",
x"ffe68693",
x"1ce6e063",
x"1ce6ea63",
x"fff70713",
x"01879793",
x"00e7e7b3",
@ -190,46 +190,51 @@ x"08000793",
x"30479073",
x"30046073",
x"ffff1537",
x"dc850513",
x"41c000ef",
x"ddc50513",
x"430000ef",
x"f1302573",
x"3b4000ef",
x"ffff1537",
x"e1450513",
x"41c000ef",
x"fe402503",
x"3a0000ef",
x"ffff1537",
x"e0050513",
x"e1c50513",
x"408000ef",
x"fe002503",
x"38c000ef",
x"ffff1537",
x"e0850513",
x"e2450513",
x"3f4000ef",
x"30102573",
x"378000ef",
x"ffff1537",
x"e1050513",
x"e2c50513",
x"3e0000ef",
x"fc002573",
x"364000ef",
x"ffff1537",
x"e1450513",
x"e3050513",
x"3cc000ef",
x"fe802503",
x"ffff14b7",
x"34c000ef",
x"ffff1537",
x"e1c50513",
x"e3850513",
x"3b4000ef",
x"ff802503",
x"338000ef",
x"e2448513",
x"e4048513",
x"3a4000ef",
x"ff002503",
x"328000ef",
x"ffff1537",
x"e3050513",
x"e4c50513",
x"390000ef",
x"ffc02503",
x"314000ef",
x"e2448513",
x"e4048513",
x"380000ef",
x"ff402503",
x"304000ef",
@ -238,7 +243,7 @@ x"00020737",
x"00e7f7b3",
x"04078663",
x"ffff1537",
x"e3850513",
x"e5450513",
x"35c000ef",
x"2b8000ef",
x"fe002483",
@ -253,10 +258,10 @@ x"0a078663",
x"fa402783",
x"0a07d263",
x"ffff1537",
x"e6450513",
x"e8050513",
x"320000ef",
x"ffff1937",
x"e7090513",
x"e8c90513",
x"314000ef",
x"ffff1ab7",
x"ffff1b37",
@ -264,7 +269,7 @@ x"ffff1bb7",
x"ffff1c37",
x"ffff1cb7",
x"ffff17b7",
x"ef078513",
x"f0c78513",
x"2f4000ef",
x"fa402483",
x"fe04dee3",
@ -272,7 +277,7 @@ x"0ff4f493",
x"00048513",
x"254000ef",
x"ffff17b7",
x"dc478513",
x"dd878513",
x"2d4000ef",
x"07200793",
x"06f49863",
@ -282,14 +287,14 @@ x"00170713",
x"01071713",
x"00c686b3",
x"01075713",
x"e35ff06f",
x"e21ff06f",
x"ffe78613",
x"0fd67613",
x"00061a63",
x"00375713",
x"00178793",
x"0ff7f793",
x"e29ff06f",
x"e15ff06f",
x"00175713",
x"ff1ff06f",
x"1e8000ef",
@ -299,12 +304,12 @@ x"f52560e3",
x"00100513",
x"680000ef",
x"ffff1537",
x"dc450513",
x"dd850513",
x"268000ef",
x"00000513",
x"079000ef",
x"06800793",
x"e7090513",
x"e8c90513",
x"02f48463",
x"07500793",
x"00000513",
@ -314,18 +319,18 @@ x"14f49663",
x"00042483",
x"00049a63",
x"ffff1537",
x"ef850513",
x"f1450513",
x"22c000ef",
x"f2dff06f",
x"f14b8513",
x"f30b8513",
x"220000ef",
x"00048513",
x"1a4000ef",
x"f1cc0513",
x"f38c0513",
x"210000ef",
x"00400537",
x"194000ef",
x"f34c8513",
x"f50c8513",
x"200000ef",
x"fa402983",
x"fe09dee3",
@ -339,7 +344,7 @@ x"00050663",
x"00300513",
x"22c000ef",
x"ffff1537",
x"f4050513",
x"f5c50513",
x"1c8000ef",
x"0104d793",
x"00178a13",
@ -375,7 +380,7 @@ x"00898513",
x"41b005b3",
x"6b8000ef",
x"ffff1537",
x"dac50513",
x"dc050513",
x"f0dff06f",
x"374000ef",
x"fa802703",
@ -402,17 +407,17 @@ x"06500793",
x"00f49a63",
x"00042783",
x"e60798e3",
x"f50b0513",
x"f6cb0513",
x"ea1ff06f",
x"07800793",
x"00f49663",
x"00100513",
x"e5dff06f",
x"03f00793",
x"f60a8513",
x"f7ca8513",
x"e8f482e3",
x"ffff17b7",
x"f9478513",
x"fb078513",
x"e79ff06f",
x"f9402583",
x"f9002503",
@ -438,7 +443,7 @@ x"07800513",
x"ffff14b7",
x"fbdff0ef",
x"01c00413",
x"fb448493",
x"fd048493",
x"ffc00993",
x"008957b3",
x"00f7f793",
@ -480,13 +485,13 @@ x"ff010113",
x"00812423",
x"00050413",
x"ffff1537",
x"d6450513",
x"d7850513",
x"00112623",
x"f91ff0ef",
x"00241513",
x"00850433",
x"ffff1537",
x"fa050513",
x"fbc50513",
x"00850533",
x"f79ff0ef",
x"30047073",
@ -575,7 +580,7 @@ x"00040737",
x"00e7f7b3",
x"04078263",
x"ffff1537",
x"d6c50513",
x"d8050513",
x"e19ff0ef",
x"00048513",
x"d9dff0ef",
@ -588,7 +593,7 @@ x"d6dff0ef",
x"34302573",
x"d7dff0ef",
x"ffff1537",
x"dc450513",
x"dd850513",
x"de5ff0ef",
x"00440413",
x"34141073",
@ -732,7 +737,7 @@ x"00050413",
x"004a0a13",
x"02051863",
x"ffff1537",
x"d7850513",
x"d8c50513",
x"ba5ff0ef",
x"004005b7",
x"00040513",
@ -743,12 +748,12 @@ x"04f50863",
x"00000513",
x"0380006f",
x"ffff1537",
x"d9850513",
x"dac50513",
x"b79ff0ef",
x"00400537",
x"afdff0ef",
x"ffff1537",
x"da450513",
x"db850513",
x"b65ff0ef",
x"fe802783",
x"00080737",
@ -779,7 +784,7 @@ x"016484b3",
x"00200513",
x"fa0494e3",
x"ffff1537",
x"dac50513",
x"dc050513",
x"ae9ff0ef",
x"02c12083",
x"02812403",
@ -852,12 +857,12 @@ x"ff002403",
x"00050463",
x"40400437",
x"ffff1537",
x"db050513",
x"dc450513",
x"9c5ff0ef",
x"00040513",
x"949ff0ef",
x"ffff1537",
x"dc050513",
x"dd450513",
x"9b1ff0ef",
x"00010737",
x"fa002783",
@ -899,11 +904,13 @@ x"72656461",
x"0a3e3e20",
x"444c420a",
x"4a203a56",
x"31206c75",
x"30322034",
x"32206c75",
x"30322032",
x"480a3232",
x"203a5657",
x"00000020",
x"4449430a",
x"0020203a",
x"4b4c430a",
x"0020203a",
x"4153490a",

View file

@ -318,6 +318,8 @@ int main(void) {
PRINT_TEXT("\n\n\n<< NEORV32 Bootloader >>\n\n"
"BLDV: "__DATE__"\nHWV: ");
PRINT_XNUM(neorv32_cpu_csr_read(CSR_MIMPID));
PRINT_TEXT("\nCID: ");
PRINT_XNUM(NEORV32_SYSINFO.CUSTOM_ID);
PRINT_TEXT("\nCLK: ");
PRINT_XNUM(NEORV32_SYSINFO.CLK);
PRINT_TEXT("\nISA: ");