| // Copyright lowRISC contributors. | |
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| #include "sw/device/lib/arch/device.h" | |
| /** | |
| * @file | |
| * @brief Device-specific symbol definitions for the Verilator device. | |
| */ | |
| const device_type_t kDeviceType = kDeviceSimVerilator; | |
| const uint64_t kClockFreqCpuHz = 500 * 1000; // 500kHz | |
| const uint64_t kClockFreqPeripheralHz = 125 * 1000; // 125kHz | |
| const uint64_t kClockFreqUsbHz = 500 * 1000; // 500kHz | |
| const uint64_t kUartBaudrate = 7200; | |
| // Defined in `hw/top_earlgrey/top_earlgrey_verilator.core` | |
| const uintptr_t kDeviceTestStatusAddress = 0x30000000; | |
| const uintptr_t kDeviceLogBypassUartAddress = 0; |