OpenCores
URL https://opencores.org/ocsvn/neorv32/neorv32/trunk

Subversion Repositories neorv32

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /neorv32/trunk/sw/lib/include
    from Rev 33 to Rev 34
    Reverse comparison

Rev 33 → Rev 34

/neorv32.h
203,7 → 203,8
 
 
/**********************************************************************//**
* Official NEORV32 open-source architecture ID (https://github.com/riscv/riscv-isa-manual/blob/master/marchid.md)
* Official NEORV32 >RISC-V open-source architecture ID<
* https://github.com/riscv/riscv-isa-manual/blob/master/marchid.md
**************************************************************************/
#define NEORV32_ARCHID 19
 
274,7 → 275,6
TRNG_CT_EN = 31 /**< TRNG data/control register(31) (r/w): TRNG enable */
};
/**@}*/
/**@}*/
 
 
/**********************************************************************//**
468,21 → 468,36
 
 
/**********************************************************************//**
* @name IO Device: Custom Functions Unit (CFU)
* @name IO Device: Custom Functions Unit 0 (CFU0)
**************************************************************************/
/**@{*/
/** CFU register 0 ((r)/(w)) */
#define CFU_REG_0 (*(IO_REG32 0xFFFFFFD0UL)) // (r)/(w): CFU register 0, user-defined
/** CFU register 1 ((r)/(w)) */
#define CFU_REG_1 (*(IO_REG32 0xFFFFFFD4UL)) // (r)/(w): CFU register 1, user-defined
/** CFU register 2 ((r)/(w)) */
#define CFU_REG_2 (*(IO_REG32 0xFFFFFFD8UL)) // (r)/(w): CFU register 2, user-defined
/** CFU register 3 ((r)/(w)) */
#define CFU_REG_3 (*(IO_REG32 0xFFFFFFDCUL)) // (r)/(w): CFU register 3, user-defined
/** CFU0 register 0 ((r)/(w)) */
#define CFU0_REG_0 (*(IO_REG32 0xFFFFFFC0UL)) // (r)/(w): CFU0 register 0, user-defined
/** CFU0 register 1 ((r)/(w)) */
#define CFU0_REG_1 (*(IO_REG32 0xFFFFFFC4UL)) // (r)/(w): CFU0 register 1, user-defined
/** CFU0 register 2 ((r)/(w)) */
#define CFU0_REG_2 (*(IO_REG32 0xFFFFFFC8UL)) // (r)/(w): CFU0 register 2, user-defined
/** CFU0 register 3 ((r)/(w)) */
#define CFU0_REG_3 (*(IO_REG32 0xFFFFFFCCUL)) // (r)/(w): CFU0 register 3, user-defined
/**@}*/
 
 
/**********************************************************************//**
* @name IO Device: Custom Functions Unit 1 (CFU1)
**************************************************************************/
/**@{*/
/** CFU1 register 0 ((r)/(w)) */
#define CFU1_REG_0 (*(IO_REG32 0xFFFFFFD0UL)) // (r)/(w): CFU1 register 0, user-defined
/** CFU1 register 1 ((r)/(w)) */
#define CFU1_REG_1 (*(IO_REG32 0xFFFFFFD4UL)) // (r)/(w): CFU1 register 1, user-defined
/** CFU1 register 2 ((r)/(w)) */
#define CFU1_REG_2 (*(IO_REG32 0xFFFFFFD8UL)) // (r)/(w): CFU1 register 2, user-defined
/** CFU1 register 3 ((r)/(w)) */
#define CFU1_REG_3 (*(IO_REG32 0xFFFFFFDCUL)) // (r)/(w): CFU1 register 3, user-defined
/**@}*/
 
 
/**********************************************************************//**
* @name IO Device: System Configuration Info Memory (SYSINFO)
**************************************************************************/
/**@{*/
522,8 → 537,9
SYSINFO_FEATURES_IO_TWI = 20, /**< SYSINFO_FEATURES (20) (r/-): Two-wire interface implemented when 1 (via IO_TWI_USE generic) */
SYSINFO_FEATURES_IO_PWM = 21, /**< SYSINFO_FEATURES (21) (r/-): Pulse-width modulation unit implemented when 1 (via IO_PWM_USE generic) */
SYSINFO_FEATURES_IO_WDT = 22, /**< SYSINFO_FEATURES (22) (r/-): Watchdog timer implemented when 1 (via IO_WDT_USE generic) */
SYSINFO_FEATURES_IO_CFU = 23, /**< SYSINFO_FEATURES (23) (r/-): Custom functions unit implemented when 1 (via IO_CFU_USE generic) */
SYSINFO_FEATURES_IO_TRNG = 24 /**< SYSINFO_FEATURES (24) (r/-): True random number generator implemented when 1 (via IO_TRNG_USE generic) */
SYSINFO_FEATURES_IO_CFU0 = 23, /**< SYSINFO_FEATURES (23) (r/-): Custom functions unit 0 implemented when 1 (via IO_CFU0_USE generic) */
SYSINFO_FEATURES_IO_TRNG = 24, /**< SYSINFO_FEATURES (24) (r/-): True random number generator implemented when 1 (via IO_TRNG_USE generic) */
SYSINFO_FEATURES_IO_CFU1 = 25 /**< SYSINFO_FEATURES (25) (r/-): Custom functions unit 1 implemented when 1 (via IO_CFU1_USE generic) */
};
 
 
/neorv32_cfu.h
1,5 → 1,5
// #################################################################################################
// # << NEORV32: neorv32_cfu.h - Custom Functions Unit (CFU) HW Driver >> #
// # << NEORV32: neorv32_cfu.h - Custom Functions Unit 0/1 (CFU0/CFU1) HW Driver (stub) >> #
// # ********************************************************************************************* #
// # BSD 3-Clause License #
// # #
36,12 → 36,12
/**********************************************************************//**
* @file neorv32_cfu.h
* @author Stephan Nolting
* @brief Custom Functions Unit (CFU) HW driver header file.
* @brief Custom Functions Unit 0/1 (CFU0/CFU1) HW driver header file.
*
* @warning There are no "real" CFU driver functions available here, because these functions are defined by the actual hardware.
* @warning Hence, the CFU designer has to provide the actual driver functions.
*
* @note These functions should only be used if the CFU was synthesized (IO_CFU_USE = true).
* @note These functions should only be used if the CFU0/CFU1 was synthesized (IO_CFU0_USE/IO_CFU1_USE = true).
**************************************************************************/
 
#ifndef neorv32_cfu_h
48,6 → 48,7
#define neorv32_cfu_h
 
// prototypes
int neorv32_cfu_available(void);
int neorv32_cfu0_available(void);
int neorv32_cfu1_available(void);
 
#endif // neorv32_cfu_h

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.