Application version tag
For the Application info, it would be nice to add a version tag (Gitlab tag) in addition of the release date (like the system version tag). Or at least replace the date by a custom tag.
But this would break the memory mapping as there is no spare word. We could reduce the length of AppIdent of 4 char – 32 msb.
Here is a suggestion of modification:
Memory Mapping:
AppRelease, r, 0x10, 32, 0x1, , , Application release ID date (YYMMDDxx)
AppIdent, r, 0x14, 32, 0xA, , , Application ident string (40 chars)
AppIdent, r, 0x3C, 32, 0x1, , , Application release ID
IntSource, r, 0x40, 32, 0x1, , , Interrupt source
In the verilog code:
string input [ 7:0] AppVersion_ib8,
AppReleaseDay_ib8,
AppReleaseMonth_ib8,
AppReleaseYear_ib8,
input [345:0] AppInfo_ib346,
input AppReleaseMajor_b8 = 8'd02,
AppReleaseMinor_b8 = 8'd03,
AppReleaseTiny_b8 = 8'd00
SysAppIdRegs i_SysAppIdReg (
…
.SysRelease_ib32 ({8'b0, g_SystemReleaseMajor_b8, g_SystemReleaseMinor_b8, g_SystemReleaseTiny_b8}),
.SysInfo_ib96 (SysInfo_b96),
.AppRelease_ib32 ({AppReleaseYear_ib8, AppReleaseMonth_ib8, AppReleaseDay_ib8, AppVersion_ib8}),
.AppRelease_ib32 ({8'b0, AppReleaseMajor_b8, AppReleaseMinor_b8, AppReleaseTiny_b8}),
.AppInfo_ib346 (AppInfo_ib346)
);