URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
[/] [neorv32/] [trunk/] [sw/] [lib/] [source/] [neorv32_trng.c] - Diff between revs 2 and 12
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 12 |
Line 50... |
Line 50... |
*
|
*
|
* @return 0 if TRNG was not synthesized, 1 if TRNG is available.
|
* @return 0 if TRNG was not synthesized, 1 if TRNG is available.
|
**************************************************************************/
|
**************************************************************************/
|
int neorv32_trng_available(void) {
|
int neorv32_trng_available(void) {
|
|
|
if (neorv32_cpu_csr_read(CSR_MFEATURES) & (1 << CPU_MFEATURES_IO_TRNG)) {
|
if (SYSINFO_FEATURES & (1 << SYSINFO_FEATURES_IO_TRNG)) {
|
return 1;
|
return 1;
|
}
|
}
|
else {
|
else {
|
return 0;
|
return 0;
|
}
|
}
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.