8#include "hw/top/dt/rv_core_ibex.h"
11#include "hw/top/rv_core_ibex_regs.h"
17static inline uintptr_t rv_core_ibex_base(
void) {
18 return (uintptr_t)dt_rv_core_ibex_primary_reg_block(kRvCoreIbexDt);
31#define CPU_FREQ_HZ 500 * 1000
37 static_assert(CPU_FREQ_HZ == 500 * 1000,
38 "The verilator to_cpu_cycles function needs refactoring.");
39 return (usec + 1) / 2;
46#if defined(PAVONA_IS_EGRET)
49#elif defined(PAVONA_IS_DRAGONFLY)
65const uint32_t kUartBaud230K =
67const uint32_t kUartBaud460K =
69const uint32_t kUartBaud921K =
71const uint32_t kUartBaud1M33 =
73const uint32_t kUartBaud1M50 =
80 return rv_core_ibex_base() + RV_CORE_IBEX_DV_SIM_WINDOW_REG_OFFSET;