diff --git a/emulation/example.svd b/emulation/example.svd new file mode 100644 index 000000000..84655cb20 --- /dev/null +++ b/emulation/example.svd @@ -0,0 +1,4742 @@ + + + + litex + JTAG + + 8 + 32 + 32 + read-write + 0x00000000 + 0xFFFFFFFF + + + + CTRL + 0xF0000000 + CTRL + + + RESET + + 0x0000 + 0x00 + 32 + read-write + + + reset + 0 + [0:0] + 0 + + + + + SCRATCH + + 0x0004 + 0x12345678 + 32 + read-write + + + scratch + 31 + [31:0] + 0 + + + + + BUS_ERRORS + + 0x0008 + 0x00 + 32 + read-only + + + bus_errors + 31 + [31:0] + 0 + + + + + + 0 + 0xc + registers + + + + IDENTIFIER_MEM + 0xF0002000 + IDENTIFIER_MEM + + + IDENTIFIER_MEM + + 0x0000 + 0x00 + 32 + read-write + + + identifier_mem + 7 + [7:0] + 0 + + + + + + 0 + 0x4 + registers + + + + UART_PHY + 0xF0003000 + UART_PHY + + + TUNING_WORD + 0x0000 + 0x4b7f5a + 32 + read-write + + + tuning_word + 31 + [31:0] + 0 + + + + + + 0 + 0x4 + registers + + + + UART + 0xF0004000 + UART + + + RXTX + 0x0000 + 0x00 + 32 + read-write + + + rxtx + 7 + [7:0] + 0 + + + + + TXFULL + 0x0004 + 0x00 + 32 + read-only + + + txfull + 0 + [0:0] + 0 + + + + + RXEMPTY + 0x0008 + 0x00 + 32 + read-only + + + rxempty + 0 + [0:0] + 0 + + + + + EV_STATUS + 0x000c + 0x00 + 32 + read-write + + + status + 1 + [1:0] + 0 + + + + + EV_PENDING + 0x0010 + 0x00 + 32 + read-write + + + pending + 1 + [1:0] + 0 + + + + + EV_ENABLE + 0x0014 + 0x00 + 32 + read-write + + + enable + 1 + [1:0] + 0 + + + + + TXEMPTY + 0x0018 + 0x00 + 32 + read-only + + + txempty + 0 + [0:0] + 0 + + + + + RXFULL + 0x001c + 0x00 + 32 + read-only + + + rxfull + 0 + [0:0] + 0 + + + + + + 0 + 0x20 + registers + + + uart + 0 + + + + TIMER0 + 0xF0005000 + TIMER0 + + + LOAD + + 0x0000 + 0x00 + 32 + read-write + + + load + 31 + [31:0] + 0 + + + + + RELOAD + + 0x0004 + 0x00 + 32 + read-write + + + reload + 31 + [31:0] + 0 + + + + + EN + + 0x0008 + 0x00 + 32 + read-write + + + en + 0 + [0:0] + 0 + + + + + UPDATE_VALUE + + 0x000c + 0x00 + 32 + read-write + + + update_value + 0 + [0:0] + 0 + + + + + VALUE + + 0x0010 + 0x00 + 32 + read-only + + + value + 31 + [31:0] + 0 + + + + + EV_STATUS + 0x0014 + 0x00 + 32 + read-write + + + status + 0 + [0:0] + 0 + + + + + EV_PENDING + 0x0018 + 0x00 + 32 + read-write + + + pending + 0 + [0:0] + 0 + + + + + EV_ENABLE + 0x001c + 0x00 + 32 + read-write + + + enable + 0 + [0:0] + 0 + + + + + + 0 + 0x20 + registers + + + timer0 + 1 + + + + REBOOT + 0xF0006000 + REBOOT + + + CTRL + 0x0000 + 0x00 + 32 + read-write + + + ctrl + 7 + [7:0] + 0 + + + + + ADDR + 0x0004 + 0x00 + 32 + read-write + + + addr + 31 + [31:0] + 0 + + + + + + 0 + 0x8 + registers + + + + CRG + 0xF0007000 + CRG + + + MMCM_DRP_RESET + 0x0000 + 0x00 + 32 + read-write + + + mmcm_drp_reset + 0 + [0:0] + 0 + + + + + MMCM_DRP_LOCKED + 0x0004 + 0x00 + 32 + read-only + + + mmcm_drp_locked + 0 + [0:0] + 0 + + + + + MMCM_DRP_READ + 0x0008 + 0x00 + 32 + read-write + + + mmcm_drp_read + 0 + [0:0] + 0 + + + + + MMCM_DRP_WRITE + 0x000c + 0x00 + 32 + read-write + + + mmcm_drp_write + 0 + [0:0] + 0 + + + + + MMCM_DRP_DRDY + 0x0010 + 0x00 + 32 + read-only + + + mmcm_drp_drdy + 0 + [0:0] + 0 + + + + + MMCM_DRP_ADR + 0x0014 + 0x00 + 32 + read-write + + + mmcm_drp_adr + 6 + [6:0] + 0 + + + + + MMCM_DRP_DAT_W + 0x0018 + 0x00 + 32 + read-write + + + mmcm_drp_dat_w + 15 + [15:0] + 0 + + + + + MMCM_DRP_DAT_R + 0x001c + 0x00 + 32 + read-only + + + mmcm_drp_dat_r + 15 + [15:0] + 0 + + + + + + 0 + 0x20 + registers + + + + INFO + 0xF0008000 + INFO + + + DNA_ID1 + + 0x0000 + 0x00 + 32 + read-only + + + dna_id + 31 + [31:0] + 0 + + + + + DNA_ID0 + + 0x0004 + 0x00 + 32 + read-only + + + dna_id + 31 + [31:0] + 0 + + + + + GIT_MAJOR + + 0x0008 + 0x00 + 32 + read-only + + + git_major + 7 + [7:0] + 0 + + + + + GIT_MINOR + + 0x000c + 0x00 + 32 + read-only + + + git_minor + 7 + [7:0] + 0 + + + + + GIT_REVISION + + 0x0010 + 0x00 + 32 + read-only + + + git_revision + 7 + [7:0] + 0 + + + + + GIT_GITREV + + 0x0014 + 0x00 + 32 + read-only + + + git_gitrev + 31 + [31:0] + 0 + + + + + GIT_GITEXTRA + + 0x0018 + 0x00 + 32 + read-only + + + git_gitextra + 9 + [9:0] + 0 + + + + + GIT_DIRTY + 0x001c + 0x00 + 32 + read-only + + + dirty + 0 + [0:0] + 0 + + + + + + PLATFORM_PLATFORM1 + + 0x0020 + 0x00 + 32 + read-only + + + platform_platform + 31 + [31:0] + 0 + + + + + PLATFORM_PLATFORM0 + + 0x0024 + 0x00 + 32 + read-only + + + platform_platform + 31 + [31:0] + 0 + + + + + PLATFORM_TARGET1 + + 0x0028 + 0x00 + 32 + read-only + + + platform_target + 31 + [31:0] + 0 + + + + + PLATFORM_TARGET0 + + 0x002c + 0x00 + 32 + read-only + + + platform_target + 31 + [31:0] + 0 + + + + + XADC_TEMPERATURE + + 0x0030 + 0x00 + 32 + read-only + + + xadc_temperature + 11 + [11:0] + 0 + + + + + XADC_VCCINT + + 0x0034 + 0x00 + 32 + read-only + + + xadc_vccint + 11 + [11:0] + 0 + + + + + XADC_VCCAUX + + 0x0038 + 0x00 + 32 + read-only + + + xadc_vccaux + 11 + [11:0] + 0 + + + + + XADC_VCCBRAM + + 0x003c + 0x00 + 32 + read-only + + + xadc_vccbram + 11 + [11:0] + 0 + + + + + XADC_EOC + + 0x0040 + 0x00 + 32 + read-only + + + xadc_eoc + 0 + [0:0] + 0 + + + + + XADC_EOS + + 0x0044 + 0x00 + 32 + read-only + + + xadc_eos + 0 + [0:0] + 0 + + + + + XADC_DRP_ENABLE + 0x0048 + 0x00 + 32 + read-write + + + xadc_drp_enable + 0 + [0:0] + 0 + + + + + XADC_DRP_READ + 0x004c + 0x00 + 32 + read-write + + + xadc_drp_read + 0 + [0:0] + 0 + + + + + XADC_DRP_WRITE + 0x0050 + 0x00 + 32 + read-write + + + xadc_drp_write + 0 + [0:0] + 0 + + + + + XADC_DRP_DRDY + 0x0054 + 0x00 + 32 + read-only + + + xadc_drp_drdy + 0 + [0:0] + 0 + + + + + XADC_DRP_ADR + 0x0058 + 0x00 + 32 + read-write + + + xadc_drp_adr + 6 + [6:0] + 0 + + + + + XADC_DRP_DAT_W + 0x005c + 0x00 + 32 + read-write + + + xadc_drp_dat_w + 15 + [15:0] + 0 + + + + + XADC_DRP_DAT_R + 0x0060 + 0x00 + 32 + read-only + + + xadc_drp_dat_r + 15 + [15:0] + 0 + + + + + + 0 + 0x64 + registers + + + + SRAM_EXT + 0xF0009000 + SRAM_EXT + + + CONFIG_STATUS + 0x0000 + 0x00 + 32 + read-only + + + mode + 31 + [31:0] + 0 + + + + + + READ_CONFIG + 0x0004 + 0x00 + 32 + read-write + + + trigger + 0 + [0:0] + 0 + + + + + + + 0 + 0x8 + registers + + + + MEMLCD + 0xF000A000 + MEMLCD + + + COMMAND + 0x0000 + 0x00 + 32 + read-write + + + UpdateDirty + 0 + [0:0] + 0 + + + + UpdateAll + 1 + [1:1] + 1 + + + + + + BUSY + + 0x0004 + 0x00 + 32 + read-only + + + busy + 0 + [0:0] + 0 + + + + + PRESCALER + + 0x0008 + 0x63 + 32 + read-write + + + prescaler + 7 + [7:0] + 0 + + + + + EV_STATUS + 0x000c + 0x00 + 32 + read-write + + + status + 0 + [0:0] + 0 + + + + + EV_PENDING + 0x0010 + 0x00 + 32 + read-write + + + pending + 0 + [0:0] + 0 + + + + + EV_ENABLE + 0x0014 + 0x00 + 32 + read-write + + + enable + 0 + [0:0] + 0 + + + + + + 0 + 0x18 + registers + + + + COM + 0xF000B000 + COM + + + TX + + 0x0000 + 0x00 + 32 + read-write + + + tx + 15 + [15:0] + 0 + + + + + RX + + 0x0004 + 0x00 + 32 + read-only + + + rx + 15 + [15:0] + 0 + + + + + CONTROL + 0x0008 + 0x00 + 32 + read-write + + + intena + 0 + [0:0] + 0 + + + + + + STATUS + 0x000c + 0x00 + 32 + read-only + + + tip + 0 + [0:0] + 0 + + + + + + EV_STATUS + 0x0010 + 0x00 + 32 + read-write + + + status + 0 + [0:0] + 0 + + + + + EV_PENDING + 0x0014 + 0x00 + 32 + read-write + + + pending + 0 + [0:0] + 0 + + + + + EV_ENABLE + 0x0018 + 0x00 + 32 + read-write + + + enable + 0 + [0:0] + 0 + + + + + + 0 + 0x1c + registers + + + + I2C + 0xF000C000 + I2C + + + PRESCALE + + 0x0000 + 0xffff + 32 + read-write + + + prescale + 15 + [15:0] + 0 + + + + + CONTROL + 0x0004 + 0x00 + 32 + read-write + + + Resvd + 5 + [5:0] + 0 + + + + IEN + 6 + [6:6] + 6 + + + + EN + 7 + [7:7] + 7 + + + + + + TXR + + 0x0008 + 0x00 + 32 + read-write + + + txr + 7 + [7:0] + 0 + + + + + RXR + + 0x000c + 0x00 + 32 + read-only + + + rxr + 7 + [7:0] + 0 + + + + + COMMAND + 0x0010 + 0x00 + 32 + read-write + + + IACK + 0 + [0:0] + 0 + + + + Resvd + 2 + [2:1] + 1 + + + + ACK + 3 + [3:3] + 3 + + + + WR + 4 + [4:4] + 4 + + + + RD + 5 + [5:5] + 5 + + + + STO + 6 + [6:6] + 6 + + + + STA + 7 + [7:7] + 7 + + + + + + STATUS + 0x0014 + 0x00 + 32 + read-only + + + IF + 0 + [0:0] + 0 + + + + TIP + 1 + [1:1] + 1 + + + + Resvd + 4 + [4:2] + 2 + + + + ArbLost + 5 + [5:5] + 5 + + + + Busy + 6 + [6:6] + 6 + + + + RxACK + 7 + [7:7] + 7 + + + + + + EV_STATUS + 0x0018 + 0x00 + 32 + read-write + + + status + 0 + [0:0] + 0 + + + + + EV_PENDING + 0x001c + 0x00 + 32 + read-write + + + pending + 0 + [0:0] + 0 + + + + + EV_ENABLE + 0x0020 + 0x00 + 32 + read-write + + + enable + 0 + [0:0] + 0 + + + + + + 0 + 0x24 + registers + + + i2c + 2 + + + + BTEVENTS + 0xF000D000 + BTEVENTS + + + EV_STATUS + 0x0000 + 0x00 + 32 + read-write + + + status + 1 + [1:0] + 0 + + + + + EV_PENDING + 0x0004 + 0x00 + 32 + read-write + + + pending + 1 + [1:0] + 0 + + + + + EV_ENABLE + 0x0008 + 0x00 + 32 + read-write + + + enable + 1 + [1:0] + 0 + + + + + + 0 + 0xc + registers + + + btevents + 3 + + + + MESSIBLE + 0xF000E000 + MESSIBLE + + + IN + + 0x0000 + 0x00 + 32 + read-write + + + in + 7 + [7:0] + 0 + + + + + OUT + + 0x0004 + 0x00 + 32 + read-only + + + out + 7 + [7:0] + 0 + + + + + STATUS + 0x0008 + 0x00 + 32 + read-only + + + full + 0 + [0:0] + 0 + + + + have + 1 + [1:1] + 1 + + + + + + + 0 + 0xc + registers + + + + TICKTIMER + 0xF000F000 + TICKTIMER + + + CONTROL + 0x0000 + 0x00 + 32 + read-write + + + reset + 0 + [0:0] + 0 + + + + pause + 1 + [1:1] + 1 + + + + + + TIME1 + + 0x0004 + 0x00 + 32 + read-only + + + time + 31 + [31:0] + 0 + + + + + TIME0 + + 0x0008 + 0x00 + 32 + read-only + + + time + 31 + [31:0] + 0 + + + + + + 0 + 0xc + registers + + + + POWER + 0xF0010000 + POWER + + + POWER + 0x0000 + 0x0a + 32 + read-write + + + audio + 0 + [0:0] + 0 + + + + self + 1 + [1:1] + 1 + + + + ec_snoop + 2 + [2:2] + 2 + + + + state + 4 + [4:3] + 3 + + + + noisebias + 5 + [5:5] + 5 + + + + noise + 7 + [7:6] + 6 + + + + reset_ec + 8 + [8:8] + 8 + + + + up5k_on + 9 + [9:9] + 9 + + + + boostmode + 10 + [10:10] + 10 + + + + selfdestruct + 11 + [11:11] + 11 + + + + + + VIBE + + 0x0004 + 0x00 + 32 + read-write + + + vibe + 0 + [0:0] + 0 + + + + + + EV_STATUS + 0x0008 + 0x00 + 32 + read-write + + + status + 0 + [0:0] + 0 + + + + + EV_PENDING + 0x000c + 0x00 + 32 + read-write + + + pending + 0 + [0:0] + 0 + + + + + EV_ENABLE + 0x0010 + 0x00 + 32 + read-write + + + enable + 0 + [0:0] + 0 + + + + + + 0 + 0x14 + registers + + + + SPINOR + 0xF0011000 + SPINOR + + + CONFIG + 0x0000 + 0x0a + 32 + read-write + + + dummy + 4 + [4:0] + 0 + + + + + + DELAY_CONFIG + 0x0004 + 0x1f + 32 + read-write + + + d + 4 + [4:0] + 0 + + + + load + 5 + [5:5] + 5 + + + + + + DELAY_STATUS + 0x0008 + 0x00 + 32 + read-only + + + q + 4 + [4:0] + 0 + + + + + + COMMAND + + 0x000c + 0x00 + 32 + read-write + + + wakeup + 0 + [0:0] + 0 + + + + sector_erase + 1 + [1:1] + 1 + + + + + + SECTOR + + 0x0010 + 0x00 + 32 + read-write + + + sector + 31 + [31:0] + 0 + + + + + + STATUS + + 0x0014 + 0x00 + 32 + read-only + + + wip + 0 + [0:0] + 0 + + + + + + EV_STATUS + 0x0018 + 0x00 + 32 + read-write + + + status + 0 + [0:0] + 0 + + + + + EV_PENDING + 0x001c + 0x00 + 32 + read-write + + + pending + 0 + [0:0] + 0 + + + + + EV_ENABLE + 0x0020 + 0x00 + 32 + read-write + + + enable + 0 + [0:0] + 0 + + + + + ECC_ADDRESS + 0x0024 + 0x00 + 32 + read-only + + + ecc_address + 31 + [31:0] + 0 + + + + + + ECC_STATUS + 0x0028 + 0x00 + 32 + read-only + + + ecc_error + 0 + [0:0] + 0 + + + + ecc_overflow + 1 + [1:1] + 1 + + + + + + + 0 + 0x2c + registers + + + + KEYBOARD + 0xF0012000 + KEYBOARD + + + ROW0DAT + + 0x0000 + 0x00 + 32 + read-only + + + row0dat + 9 + [9:0] + 0 + + + + + ROW1DAT + + 0x0004 + 0x00 + 32 + read-only + + + row1dat + 9 + [9:0] + 0 + + + + + ROW2DAT + + 0x0008 + 0x00 + 32 + read-only + + + row2dat + 9 + [9:0] + 0 + + + + + ROW3DAT + + 0x000c + 0x00 + 32 + read-only + + + row3dat + 9 + [9:0] + 0 + + + + + ROW4DAT + + 0x0010 + 0x00 + 32 + read-only + + + row4dat + 9 + [9:0] + 0 + + + + + ROW5DAT + + 0x0014 + 0x00 + 32 + read-only + + + row5dat + 9 + [9:0] + 0 + + + + + ROW6DAT + + 0x0018 + 0x00 + 32 + read-only + + + row6dat + 9 + [9:0] + 0 + + + + + ROW7DAT + + 0x001c + 0x00 + 32 + read-only + + + row7dat + 9 + [9:0] + 0 + + + + + ROW8DAT + + 0x0020 + 0x00 + 32 + read-only + + + row8dat + 9 + [9:0] + 0 + + + + + EV_STATUS + 0x0024 + 0x00 + 32 + read-write + + + status + 0 + [0:0] + 0 + + + + + EV_PENDING + 0x0028 + 0x00 + 32 + read-write + + + pending + 0 + [0:0] + 0 + + + + + EV_ENABLE + 0x002c + 0x00 + 32 + read-write + + + enable + 0 + [0:0] + 0 + + + + + ROWCHANGE + + 0x0030 + 0x00 + 32 + read-only + + + rowchange + 8 + [8:0] + 0 + + + + + + 0 + 0x34 + registers + + + keyboard + 4 + + + + GPIO + 0xF0013000 + GPIO + + + OUTPUT + + 0x0000 + 0x00 + 32 + read-write + + + output + 5 + [5:0] + 0 + + + + + INPUT + + 0x0004 + 0x00 + 32 + read-only + + + input + 5 + [5:0] + 0 + + + + + DRIVE + + 0x0008 + 0x00 + 32 + read-write + + + drive + 5 + [5:0] + 0 + + + + + INTENA + + 0x000c + 0x00 + 32 + read-only + + + intena + 5 + [5:0] + 0 + + + + + INTPOL + + 0x0010 + 0x00 + 32 + read-only + + + intpol + 5 + [5:0] + 0 + + + + + EV_STATUS + 0x0014 + 0x00 + 32 + read-write + + + status + 5 + [5:0] + 0 + + + + + EV_PENDING + 0x0018 + 0x00 + 32 + read-write + + + pending + 5 + [5:0] + 0 + + + + + EV_ENABLE + 0x001c + 0x00 + 32 + read-write + + + enable + 5 + [5:0] + 0 + + + + + + 0 + 0x20 + registers + + + gpio + 5 + + + + SEED + 0xF0014000 + SEED + + + SEED1 + + 0x0000 + 0x64f83336 + 32 + read-only + + + seed + 31 + [31:0] + 0 + + + + + SEED0 + + 0x0004 + 0x60e6ef3 + 32 + read-only + + + seed + 31 + [31:0] + 0 + + + + + + 0 + 0x8 + registers + + + + ROMTEST + 0xF0015000 + ROMTEST + + + ADDRESS + + 0x0000 + 0x00 + 32 + read-write + + + address + 7 + [7:0] + 0 + + + + + DATA + + 0x0004 + 0x00 + 32 + read-only + + + data + 31 + [31:0] + 0 + + + + + + 0 + 0x8 + registers + + + + AUDIO + 0xF0016000 + AUDIO + + + EV_STATUS + 0x0000 + 0x00 + 32 + read-write + + + status + 3 + [3:0] + 0 + + + + + EV_PENDING + 0x0004 + 0x00 + 32 + read-write + + + pending + 3 + [3:0] + 0 + + + + + EV_ENABLE + 0x0008 + 0x00 + 32 + read-write + + + enable + 3 + [3:0] + 0 + + + + + RX_CTL + + 0x000c + 0x00 + 32 + read-write + + + enable + 0 + [0:0] + 0 + + + + reset + 1 + [1:1] + 1 + + + + + + RX_STAT + + 0x0010 + 0x80000000 + 32 + read-only + + + overflow + 0 + [0:0] + 0 + + + + underflow + 1 + [1:1] + 1 + + + + dataready + 2 + [2:2] + 2 + + + + empty + 3 + [3:3] + 3 + + + + wrcount + 12 + [12:4] + 4 + + + + rdcount + 21 + [21:13] + 13 + + + + fifo_depth + 30 + [30:22] + 22 + + + + concatenate_channels + 31 + [31:31] + 31 + + + + + + RX_CONF + + 0x0014 + 0xac4442 + 32 + read-only + + + format + 1 + [1:0] + 0 + + + + sample_width + 7 + [7:2] + 2 + + + + lrck_freq + 31 + [31:8] + 8 + + + + + + TX_CTL + + 0x0018 + 0x00 + 32 + read-write + + + enable + 0 + [0:0] + 0 + + + + reset + 1 + [1:1] + 1 + + + + + + TX_STAT + + 0x001c + 0x1000000 + 32 + read-only + + + overflow + 0 + [0:0] + 0 + + + + underflow + 1 + [1:1] + 1 + + + + free + 2 + [2:2] + 2 + + + + almostfull + 3 + [3:3] + 3 + + + + full + 4 + [4:4] + 4 + + + + empty + 5 + [5:5] + 5 + + + + wrcount + 14 + [14:6] + 6 + + + + rdcount + 23 + [23:15] + 15 + + + + concatenate_channels + 24 + [24:24] + 24 + + + + + + TX_CONF + + 0x0020 + 0xac4442 + 32 + read-only + + + format + 1 + [1:0] + 0 + + + + sample_width + 7 + [7:2] + 2 + + + + lrck_freq + 31 + [31:8] + 8 + + + + + + + 0 + 0x24 + registers + + + audio + 6 + + + + TRNG_OSC + 0xF0017000 + TRNG_OSC + + + CTL + 0x0000 + 0x2000192 + 32 + read-write + + + ena + 0 + [0:0] + 0 + + + + gang + 1 + [1:1] + 1 + + + + dwell + 21 + [21:2] + 2 + + + + delay + 31 + [31:22] + 22 + + + + + + RAND + 0x0004 + 0xdeadbeef + 32 + read-only + + + rand + 31 + [31:0] + 0 + + + + + + STATUS + 0x0008 + 0x00 + 32 + read-only + + + fresh + 0 + [0:0] + 0 + + + + + + + 0 + 0xc + registers + + + + AES + 0xF0018000 + AES + + + KEY_0_Q + 0x0000 + 0x00 + 32 + read-write + + + key_0 + 31 + [31:0] + 0 + + + + + + KEY_1_Q + 0x0004 + 0x00 + 32 + read-write + + + key_1 + 31 + [31:0] + 0 + + + + + + KEY_2_Q + 0x0008 + 0x00 + 32 + read-write + + + key_2 + 31 + [31:0] + 0 + + + + + + KEY_3_Q + 0x000c + 0x00 + 32 + read-write + + + key_3 + 31 + [31:0] + 0 + + + + + + KEY_4_Q + 0x0010 + 0x00 + 32 + read-write + + + key_4 + 31 + [31:0] + 0 + + + + + + KEY_5_Q + 0x0014 + 0x00 + 32 + read-write + + + key_5 + 31 + [31:0] + 0 + + + + + + KEY_6_Q + 0x0018 + 0x00 + 32 + read-write + + + key_6 + 31 + [31:0] + 0 + + + + + + KEY_7_Q + 0x001c + 0x00 + 32 + read-write + + + key_7 + 31 + [31:0] + 0 + + + + + + DATAOUT_0 + 0x0020 + 0x00 + 32 + read-only + + + data_0 + 31 + [31:0] + 0 + + + + + + DATAOUT_1 + 0x0024 + 0x00 + 32 + read-only + + + data_1 + 31 + [31:0] + 0 + + + + + + DATAOUT_2 + 0x0028 + 0x00 + 32 + read-only + + + data_2 + 31 + [31:0] + 0 + + + + + + DATAOUT_3 + 0x002c + 0x00 + 32 + read-only + + + data_3 + 31 + [31:0] + 0 + + + + + + DATAIN_0 + 0x0030 + 0x00 + 32 + read-write + + + data_0 + 31 + [31:0] + 0 + + + + + + DATAIN_1 + 0x0034 + 0x00 + 32 + read-write + + + data_1 + 31 + [31:0] + 0 + + + + + + DATAIN_2 + 0x0038 + 0x00 + 32 + read-write + + + data_2 + 31 + [31:0] + 0 + + + + + + DATAIN_3 + 0x003c + 0x00 + 32 + read-write + + + data_3 + 31 + [31:0] + 0 + + + + + + IV_0 + 0x0040 + 0x00 + 32 + read-write + + + iv_0 + 31 + [31:0] + 0 + + + + + + IV_1 + 0x0044 + 0x00 + 32 + read-write + + + iv_1 + 31 + [31:0] + 0 + + + + + + IV_2 + 0x0048 + 0x00 + 32 + read-write + + + iv_2 + 31 + [31:0] + 0 + + + + + + IV_3 + 0x004c + 0x00 + 32 + read-write + + + iv_3 + 31 + [31:0] + 0 + + + + + + CTRL + 0x0050 + 0x00 + 32 + read-write + + + mode + 2 + [2:0] + 0 + + + + key_len + 5 + [5:3] + 3 + + + + manual_operation + 6 + [6:6] + 6 + + + + operation + 7 + [7:7] + 7 + + + + + + STATUS + 0x0054 + 0x09 + 32 + read-only + + + idle + 0 + [0:0] + 0 + + + + stall + 1 + [1:1] + 1 + + + + output_valid + 2 + [2:2] + 2 + + + + input_ready + 3 + [3:3] + 3 + + + + operation_rbk + 4 + [4:4] + 4 + + + + mode_rbk + 7 + [7:5] + 5 + + + + key_len_rbk + 10 + [10:8] + 8 + + + + manual_operation_rbk + 11 + [11:11] + 11 + + + + + + TRIGGER + 0x0058 + 0x00 + 32 + read-write + + + start + 0 + [0:0] + 0 + + + + key_clear + 1 + [1:1] + 1 + + + + iv_clear + 2 + [2:2] + 2 + + + + data_in_clear + 3 + [3:3] + 3 + + + + data_out_clear + 4 + [4:4] + 4 + + + + prng_reseed + 5 + [5:5] + 5 + + + + + + + 0 + 0x5c + registers + + + + SHA2 + 0xF0019000 + SHA2 + + + KEY0 + + 0x0000 + 0x00 + 32 + read-write + + + key0 + 31 + [31:0] + 0 + + + + + KEY1 + + 0x0004 + 0x00 + 32 + read-write + + + key1 + 31 + [31:0] + 0 + + + + + KEY2 + + 0x0008 + 0x00 + 32 + read-write + + + key2 + 31 + [31:0] + 0 + + + + + KEY3 + + 0x000c + 0x00 + 32 + read-write + + + key3 + 31 + [31:0] + 0 + + + + + KEY4 + + 0x0010 + 0x00 + 32 + read-write + + + key4 + 31 + [31:0] + 0 + + + + + KEY5 + + 0x0014 + 0x00 + 32 + read-write + + + key5 + 31 + [31:0] + 0 + + + + + KEY6 + + 0x0018 + 0x00 + 32 + read-write + + + key6 + 31 + [31:0] + 0 + + + + + KEY7 + + 0x001c + 0x00 + 32 + read-write + + + key7 + 31 + [31:0] + 0 + + + + + CONFIG + + 0x0020 + 0x00 + 32 + read-write + + + sha_en + 0 + [0:0] + 0 + + + + endian_swap + 1 + [1:1] + 1 + + + + digest_swap + 2 + [2:2] + 2 + + + + hmac_en + 3 + [3:3] + 3 + + + + + + COMMAND + + 0x0024 + 0x00 + 32 + read-write + + + hash_start + 0 + [0:0] + 0 + + + + hash_process + 1 + [1:1] + 1 + + + + + + WIPE + + 0x0028 + 0x00 + 32 + read-write + + + wipe + 31 + [31:0] + 0 + + + + + DIGEST0 + + 0x002c + 0x00 + 32 + read-only + + + digest0 + 31 + [31:0] + 0 + + + + + DIGEST1 + + 0x0030 + 0x00 + 32 + read-only + + + digest1 + 31 + [31:0] + 0 + + + + + DIGEST2 + + 0x0034 + 0x00 + 32 + read-only + + + digest2 + 31 + [31:0] + 0 + + + + + DIGEST3 + + 0x0038 + 0x00 + 32 + read-only + + + digest3 + 31 + [31:0] + 0 + + + + + DIGEST4 + + 0x003c + 0x00 + 32 + read-only + + + digest4 + 31 + [31:0] + 0 + + + + + DIGEST5 + + 0x0040 + 0x00 + 32 + read-only + + + digest5 + 31 + [31:0] + 0 + + + + + DIGEST6 + + 0x0044 + 0x00 + 32 + read-only + + + digest6 + 31 + [31:0] + 0 + + + + + DIGEST7 + + 0x0048 + 0x00 + 32 + read-only + + + digest7 + 31 + [31:0] + 0 + + + + + MSG_LENGTH1 + + 0x004c + 0x00 + 32 + read-only + + + msg_length + 31 + [31:0] + 0 + + + + + MSG_LENGTH0 + + 0x0050 + 0x00 + 32 + read-only + + + msg_length + 31 + [31:0] + 0 + + + + + ERROR_CODE + + 0x0054 + 0x00 + 32 + read-only + + + error_code + 31 + [31:0] + 0 + + + + + EV_STATUS + 0x0058 + 0x00 + 32 + read-write + + + status + 3 + [3:0] + 0 + + + + + EV_PENDING + 0x005c + 0x00 + 32 + read-write + + + pending + 3 + [3:0] + 0 + + + + + EV_ENABLE + 0x0060 + 0x00 + 32 + read-write + + + enable + 3 + [3:0] + 0 + + + + + FIFO + + 0x0064 + 0x00 + 32 + read-only + + + read_count + 9 + [9:0] + 0 + + + + write_count + 19 + [19:10] + 10 + + + + read_error + 20 + [20:20] + 20 + + + + write_error + 21 + [21:21] + 21 + + + + almost_full + 22 + [22:22] + 22 + + + + almost_empty + 23 + [23:23] + 23 + + + + + + + 0 + 0x68 + registers + + + sha2 + 7 + + + + SHA512 + 0xF001A000 + SHA512 + + + CONFIG + + 0x0000 + 0x00 + 32 + read-write + + + sha_en + 0 + [0:0] + 0 + + + + endian_swap + 1 + [1:1] + 1 + + + + digest_swap + 2 + [2:2] + 2 + + + + select_256 + 3 + [3:3] + 3 + + + + + + COMMAND + + 0x0004 + 0x00 + 32 + read-write + + + hash_start + 0 + [0:0] + 0 + + + + hash_process + 1 + [1:1] + 1 + + + + + + DIGEST01 + + 0x0008 + 0x00 + 32 + read-only + + + digest0 + 31 + [31:0] + 0 + + + + + DIGEST00 + + 0x000c + 0x00 + 32 + read-only + + + digest0 + 31 + [31:0] + 0 + + + + + DIGEST11 + + 0x0010 + 0x00 + 32 + read-only + + + digest1 + 31 + [31:0] + 0 + + + + + DIGEST10 + + 0x0014 + 0x00 + 32 + read-only + + + digest1 + 31 + [31:0] + 0 + + + + + DIGEST21 + + 0x0018 + 0x00 + 32 + read-only + + + digest2 + 31 + [31:0] + 0 + + + + + DIGEST20 + + 0x001c + 0x00 + 32 + read-only + + + digest2 + 31 + [31:0] + 0 + + + + + DIGEST31 + + 0x0020 + 0x00 + 32 + read-only + + + digest3 + 31 + [31:0] + 0 + + + + + DIGEST30 + + 0x0024 + 0x00 + 32 + read-only + + + digest3 + 31 + [31:0] + 0 + + + + + DIGEST41 + + 0x0028 + 0x00 + 32 + read-only + + + digest4 + 31 + [31:0] + 0 + + + + + DIGEST40 + + 0x002c + 0x00 + 32 + read-only + + + digest4 + 31 + [31:0] + 0 + + + + + DIGEST51 + + 0x0030 + 0x00 + 32 + read-only + + + digest5 + 31 + [31:0] + 0 + + + + + DIGEST50 + + 0x0034 + 0x00 + 32 + read-only + + + digest5 + 31 + [31:0] + 0 + + + + + DIGEST61 + + 0x0038 + 0x00 + 32 + read-only + + + digest6 + 31 + [31:0] + 0 + + + + + DIGEST60 + + 0x003c + 0x00 + 32 + read-only + + + digest6 + 31 + [31:0] + 0 + + + + + DIGEST71 + + 0x0040 + 0x00 + 32 + read-only + + + digest7 + 31 + [31:0] + 0 + + + + + DIGEST70 + + 0x0044 + 0x00 + 32 + read-only + + + digest7 + 31 + [31:0] + 0 + + + + + MSG_LENGTH1 + + 0x0048 + 0x00 + 32 + read-only + + + msg_length + 31 + [31:0] + 0 + + + + + MSG_LENGTH0 + + 0x004c + 0x00 + 32 + read-only + + + msg_length + 31 + [31:0] + 0 + + + + + EV_STATUS + 0x0050 + 0x00 + 32 + read-write + + + status + 2 + [2:0] + 0 + + + + + EV_PENDING + 0x0054 + 0x00 + 32 + read-write + + + pending + 2 + [2:0] + 0 + + + + + EV_ENABLE + 0x0058 + 0x00 + 32 + read-write + + + enable + 2 + [2:0] + 0 + + + + + FIFO + + 0x005c + 0x00 + 32 + read-only + + + read_count + 8 + [8:0] + 0 + + + + write_count + 17 + [17:9] + 9 + + + + read_error + 18 + [18:18] + 18 + + + + write_error + 19 + [19:19] + 19 + + + + almost_full + 20 + [20:20] + 20 + + + + almost_empty + 21 + [21:21] + 21 + + + + running + 22 + [22:22] + 22 + + + + + + + 0 + 0x60 + registers + + + sha512 + 8 + + + + ENGINE + 0xF001B000 + ENGINE + + + WINDOW + 0x0000 + 0x00 + 32 + read-write + + + window + 3 + [3:0] + 0 + + + + + + MPSTART + 0x0004 + 0x00 + 32 + read-write + + + mpstart + 9 + [9:0] + 0 + + + + + + MPLEN + 0x0008 + 0x00 + 32 + read-write + + + mplen + 9 + [9:0] + 0 + + + + + + CONTROL + 0x000c + 0x00 + 32 + read-write + + + go + 0 + [0:0] + 0 + + + + + + STATUS + 0x0010 + 0x00 + 32 + read-write + + + running + 0 + [0:0] + 0 + + + + mpc + 10 + [10:1] + 1 + + + + + + EV_STATUS + 0x0014 + 0x00 + 32 + read-write + + + status + 1 + [1:0] + 0 + + + + + EV_PENDING + 0x0018 + 0x00 + 32 + read-write + + + pending + 1 + [1:0] + 0 + + + + + EV_ENABLE + 0x001c + 0x00 + 32 + read-write + + + enable + 1 + [1:0] + 0 + + + + + INSTRUCTION + + 0x0020 + 0x00 + 32 + read-only + + + opcode + 5 + [5:0] + 0 + + + + ra + 10 + [10:6] + 6 + + + + ca + 11 + [11:11] + 11 + + + + rb + 16 + [16:12] + 12 + + + + cb + 17 + [17:17] + 17 + + + + wd + 22 + [22:18] + 18 + + + + immediate + 31 + [31:23] + 23 + + + + + + + 0 + 0x24 + registers + + + engine + 9 + + + + JTAG + 0xF001C000 + JTAG + + + NEXT + + 0x0000 + 0x00 + 32 + read-write + + + tdi + 0 + [0:0] + 0 + + + + tms + 1 + [1:1] + 1 + + + + + + TDO + + 0x0004 + 0x00 + 32 + read-only + + + tdo + 0 + [0:0] + 0 + + + + ready + 1 + [1:1] + 1 + + + + + + + 0 + 0x8 + registers + + + + + + + ROM + 0x00000000 + 0x00008000 + + + SRAM + 0x10000000 + 0x00020000 + + + VEXRISCV_DEBUG + 0xEFFF0000 + 0x00000100 + + + SRAM_EXT + 0x40000000 + 0x01000000 + + + MEMLCD + 0xB0000000 + 0x00005C20 + + + SPIFLASH + 0x20000000 + 0x08000000 + + + AUDIO + 0xE0000000 + 0x00000004 + + + SHA2 + 0xE0001000 + 0x00000004 + + + SHA512 + 0xE0002000 + 0x00000008 + + + ENGINE + 0xE0020000 + 0x00020000 + + + CSR + 0xF0000000 + 0x00040000 + + + + \ No newline at end of file diff --git a/utra/build.rs b/utra/build.rs index 960ec1c45..571140144 100644 --- a/utra/build.rs +++ b/utra/build.rs @@ -1,7 +1,7 @@ use std::env; fn main() { - let svd_file = env::var("XOUS_SVD_FILE").unwrap_or("../example.svd".to_owned()); + let svd_file = env::var("XOUS_SVD_FILE").unwrap_or("../emulation/example.svd".to_owned()); println!("cargo:rerun-if-env-changed=XOUS_SVD_FILE"); println!("cargo:rerun-if-env-changed={}", svd_file);