blob: b7e8956d437317ad99fff2297d507dd4796bcb1b [file] [log] [blame]
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// ------------------- W A R N I N G: A U T O - G E N E R A T E D C O D E !! -------------------//
// PLEASE DO NOT HAND-EDIT THIS FILE. IT HAS BEEN AUTO-GENERATED WITH THE FOLLOWING COMMAND:
//
// util/topgen.py -t hw/top_earlgrey/data/top_earlgrey.hjson \
// --tpl hw/top_earlgrey/data/ \
// -o hw/top_earlgrey/ \
// --rnd_cnst_seed 4881560218908238235
package top_earlgrey_pkg;
/**
* Peripheral base address for uart0 in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_UART0_BASE_ADDR = 32'h40000000;
/**
* Peripheral size in bytes for uart0 in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_UART0_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for uart1 in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_UART1_BASE_ADDR = 32'h40010000;
/**
* Peripheral size in bytes for uart1 in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_UART1_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for uart2 in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_UART2_BASE_ADDR = 32'h40020000;
/**
* Peripheral size in bytes for uart2 in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_UART2_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for uart3 in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_UART3_BASE_ADDR = 32'h40030000;
/**
* Peripheral size in bytes for uart3 in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_UART3_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for gpio in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_GPIO_BASE_ADDR = 32'h40040000;
/**
* Peripheral size in bytes for gpio in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_GPIO_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for spi_device in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_SPI_DEVICE_BASE_ADDR = 32'h40050000;
/**
* Peripheral size in bytes for spi_device in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_SPI_DEVICE_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for rv_timer in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_RV_TIMER_BASE_ADDR = 32'h40100000;
/**
* Peripheral size in bytes for rv_timer in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_RV_TIMER_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for sensor_ctrl in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_SENSOR_CTRL_BASE_ADDR = 32'h40110000;
/**
* Peripheral size in bytes for sensor_ctrl in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_SENSOR_CTRL_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for otp_ctrl in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_OTP_CTRL_BASE_ADDR = 32'h40130000;
/**
* Peripheral size in bytes for otp_ctrl in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_OTP_CTRL_SIZE_BYTES = 32'h4000;
/**
* Peripheral base address for lc_ctrl in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_LC_CTRL_BASE_ADDR = 32'h40140000;
/**
* Peripheral size in bytes for lc_ctrl in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_LC_CTRL_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for alert_handler in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_ALERT_HANDLER_BASE_ADDR = 32'h40150000;
/**
* Peripheral size in bytes for alert_handler in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_ALERT_HANDLER_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for nmi_gen in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_NMI_GEN_BASE_ADDR = 32'h40160000;
/**
* Peripheral size in bytes for nmi_gen in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_NMI_GEN_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for pwrmgr in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_PWRMGR_BASE_ADDR = 32'h40400000;
/**
* Peripheral size in bytes for pwrmgr in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_PWRMGR_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for rstmgr in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_RSTMGR_BASE_ADDR = 32'h40410000;
/**
* Peripheral size in bytes for rstmgr in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_RSTMGR_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for clkmgr in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_CLKMGR_BASE_ADDR = 32'h40420000;
/**
* Peripheral size in bytes for clkmgr in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_CLKMGR_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for pinmux in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_PINMUX_BASE_ADDR = 32'h40460000;
/**
* Peripheral size in bytes for pinmux in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_PINMUX_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for padctrl in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_PADCTRL_BASE_ADDR = 32'h40470000;
/**
* Peripheral size in bytes for padctrl in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_PADCTRL_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for usbdev in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_USBDEV_BASE_ADDR = 32'h40500000;
/**
* Peripheral size in bytes for usbdev in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_USBDEV_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for sram_ctrl_ret in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_SRAM_CTRL_RET_BASE_ADDR = 32'h40510000;
/**
* Peripheral size in bytes for sram_ctrl_ret in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_SRAM_CTRL_RET_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for flash_ctrl in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_FLASH_CTRL_BASE_ADDR = 32'h41000000;
/**
* Peripheral size in bytes for flash_ctrl in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_FLASH_CTRL_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for rv_plic in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_RV_PLIC_BASE_ADDR = 32'h41010000;
/**
* Peripheral size in bytes for rv_plic in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_RV_PLIC_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for aes in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_AES_BASE_ADDR = 32'h41100000;
/**
* Peripheral size in bytes for aes in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_AES_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for hmac in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_HMAC_BASE_ADDR = 32'h41110000;
/**
* Peripheral size in bytes for hmac in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_HMAC_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for kmac in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_KMAC_BASE_ADDR = 32'h41120000;
/**
* Peripheral size in bytes for kmac in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_KMAC_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for keymgr in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_KEYMGR_BASE_ADDR = 32'h41130000;
/**
* Peripheral size in bytes for keymgr in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_KEYMGR_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for csrng in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_CSRNG_BASE_ADDR = 32'h41150000;
/**
* Peripheral size in bytes for csrng in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_CSRNG_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for entropy_src in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_ENTROPY_SRC_BASE_ADDR = 32'h41160000;
/**
* Peripheral size in bytes for entropy_src in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_ENTROPY_SRC_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for edn0 in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_EDN0_BASE_ADDR = 32'h41170000;
/**
* Peripheral size in bytes for edn0 in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_EDN0_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for edn1 in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_EDN1_BASE_ADDR = 32'h41180000;
/**
* Peripheral size in bytes for edn1 in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_EDN1_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for sram_ctrl_main in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_SRAM_CTRL_MAIN_BASE_ADDR = 32'h411C0000;
/**
* Peripheral size in bytes for sram_ctrl_main in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_SRAM_CTRL_MAIN_SIZE_BYTES = 32'h1000;
/**
* Peripheral base address for otbn in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_OTBN_BASE_ADDR = 32'h411D0000;
/**
* Peripheral size in bytes for otbn in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_OTBN_SIZE_BYTES = 32'h10000;
/**
* Memory base address for rom in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_ROM_BASE_ADDR = 32'h00008000;
/**
* Memory size for rom in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_ROM_SIZE_BYTES = 32'h4000;
/**
* Memory base address for ram_main in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_RAM_MAIN_BASE_ADDR = 32'h10000000;
/**
* Memory size for ram_main in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_RAM_MAIN_SIZE_BYTES = 32'h20000;
/**
* Memory base address for ram_ret in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_RAM_RET_BASE_ADDR = 32'h40520000;
/**
* Memory size for ram_ret in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_RAM_RET_SIZE_BYTES = 32'h1000;
/**
* Memory base address for eflash in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_EFLASH_BASE_ADDR = 32'h20000000;
/**
* Memory size for eflash in top earlgrey.
*/
parameter int unsigned TOP_EARLGREY_EFLASH_SIZE_BYTES = 32'h100000;
// Enumeration for DIO pins.
typedef enum {
TopEarlgreyDioPinUsbdevDn = 0,
TopEarlgreyDioPinUsbdevDp = 1,
TopEarlgreyDioPinUsbdevD = 2,
TopEarlgreyDioPinUsbdevSuspend = 3,
TopEarlgreyDioPinUsbdevTxModeSe = 4,
TopEarlgreyDioPinUsbdevDnPullup = 5,
TopEarlgreyDioPinUsbdevDpPullup = 6,
TopEarlgreyDioPinUsbdevSe0 = 7,
TopEarlgreyDioPinUsbdevSense = 8,
TopEarlgreyDioPinUart0Tx = 9,
TopEarlgreyDioPinUart0Rx = 10,
TopEarlgreyDioPinSpiDeviceSdo = 11,
TopEarlgreyDioPinSpiDeviceSdi = 12,
TopEarlgreyDioPinSpiDeviceCsb = 13,
TopEarlgreyDioPinSpiDeviceSck = 14,
TopEarlgreyDioPinCount = 15
} top_earlgrey_dio_pin_e;
// TODO: Enumeration for PLIC Interrupt source peripheral.
// TODO: Enumeration for PLIC Interrupt Ids.
endpackage