Files

50 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2026-03-25 16:01:19 +08:00
# Renode Simulation Script - Auto Generated
# Generated: 2026-01-06 14:19:56
# Architecture: SPARC V8 / Leon3
using sysbus
# Load peripherals
include @LEON_Control_Regs_SIMPLE.cs
#include @Custom_RTC_R17V1_CORRECT_ADDR.cs
#include @Simple_IO_Regs.cs
include @LC3233_Timer_InterruptController.cs
#include @Custom_ADC_R17V1.cs
include @Custom_TLZA_Rwa.cs
include @Custom_TLZA_ADU.cs
include @Custom_TLZA_ADU1.cs
include @Custom_RTC_TLZA.cs
#include @timer_trigger.cs
2026-03-30 17:22:32 +08:00
include @UART_kx12A1.cs
include @UART_kx12A2.cs
include @UART_kx12A3.cs
include @UART_kx12A4.cs
include @UART_kx12A5.cs
include @UART_kx12A6.cs
2026-03-25 16:01:19 +08:00
# ===== 创建机器 =====
mach create "SPARC V8_Leon3"
# ===== 加载硬件平台描述(引用 .repl 文件)=====
machine LoadPlatformDescription @generated.repl
# ===== CPU 性能配置 =====
cpu PerformanceInMips 80
# ===== 固件加载 =====
# Load VxWorks
sysbus LoadBinary @C:/Users/PingCe/Desktop/1_simulation/KX12A_Z/vxworks_smu/default/vxWorks 0x40003000
2026-03-30 17:22:32 +08:00
sysbus WriteDoubleWord 0x80000240 0x90130
2026-03-25 16:01:19 +08:00
# ===== 调试配置 =====
machine StartGdbServer 3333 true
# ===== 仿真参数 =====
emulation SetGlobalQuantum "0.00001"
# ===== 日志配置 =====
logLevel 1
# ===== 启动命令 =====
# start