diff --git a/svd2repl/src/generate.rs b/svd2repl/src/generate.rs index 9a661ba15..941af64f7 100644 --- a/svd2repl/src/generate.rs +++ b/svd2repl/src/generate.rs @@ -489,7 +489,7 @@ fn parse_vendor_extensions( fn print_header(out: &mut U) -> std::io::Result<()> { let s = r####"// Renode Platform file generated by svd2repl // This file is automatically generated -cpu: CPU.AesVexRiscv @ sysbus +cpu: CPU.Betrusted.AesVexRiscv @ sysbus cpuType: "rv32imac" privilegeArchitecture: PrivilegeArchitecture.Priv1_10 PerformanceInMips: 120 @@ -499,11 +499,11 @@ cpu: CPU.AesVexRiscv @ sysbus fn print_footer(out: &mut U) -> std::io::Result<()> { let s = r####" -abracom_rtc: Sensors.ABRTCMC @ i2c 0x68 +abracom_rtc: Timers.Betrusted.ABRTCMC @ i2c 0x68 -audio_codec: Sensors.TLV320AIC3100 @ i2c 0x18 +audio_codec: Sensors.Betrusted.TLV320AIC3100 @ i2c 0x18 -flash: SPI.MXIC_MX66UM1G45G @ spinor +flash: SPI.Betrusted.MXIC_MX66UM1G45G @ spinor underlyingMemory: spiflash sysbus: @@ -653,25 +653,25 @@ pub fn generate(src: T, dest: &mut U) -> Result<(), ParseErro let mut cs_peripherals = HashMap::new(); cs_peripherals.insert("app_uart", "UART.LiteX_UART"); cs_peripherals.insert("console", "UART.LiteX_UART"); - cs_peripherals.insert("btevents", "GPIOPort.BtEvents"); - cs_peripherals.insert("engine", "Miscellaneous.Engine"); - cs_peripherals.insert("com", "SPI.BetrustedSocCom"); - cs_peripherals.insert("i2c", "I2C.BetrustedSocI2C"); - cs_peripherals.insert("jtag", "Miscellaneous.BetrustedJtag"); - cs_peripherals.insert("keyboard", "Input.BetrustedKbd"); - cs_peripherals.insert("keyrom", "Miscellaneous.Keyrom"); - cs_peripherals.insert("memlcd", "Video.BetrustedLCD"); - cs_peripherals.insert("sha512", "Miscellaneous.Sha512"); - cs_peripherals.insert("spinor_soft_int", "Miscellaneous.SpinorSoftInt"); - cs_peripherals.insert("spinor", "SPI.BetrustedSpinor"); - cs_peripherals.insert("susres", "Timers.SusRes"); - cs_peripherals.insert("timer0", "Timers.LiteX_Timer_32"); - cs_peripherals.insert("trng_kernel", "Miscellaneous.BetrustedRNGKernel"); - cs_peripherals.insert("trng_server", "Miscellaneous.BetrustedRNGServer"); - cs_peripherals.insert("ticktimer", "Timers.TickTimer"); + cs_peripherals.insert("btevents", "GPIOPort.Betrusted.BtEvents"); + cs_peripherals.insert("engine", "Miscellaneous.Betrusted.Engine"); + cs_peripherals.insert("com", "SPI.Betrusted.BetrustedSocCom"); + cs_peripherals.insert("i2c", "I2C.Betrusted.BetrustedSocI2C"); + cs_peripherals.insert("jtag", "Miscellaneous.Betrusted.BetrustedJtag"); + cs_peripherals.insert("keyboard", "Input.Betrusted.BetrustedKbd"); + cs_peripherals.insert("keyrom", "Miscellaneous.Betrusted.Keyrom"); + cs_peripherals.insert("memlcd", "Video.Betrusted.BetrustedLCD"); + cs_peripherals.insert("sha512", "Miscellaneous.Betrusted.Sha512"); + cs_peripherals.insert("spinor_soft_int", "Miscellaneous.Betrusted.SpinorSoftInt"); + cs_peripherals.insert("spinor", "SPI.Betrusted.BetrustedSpinor"); + cs_peripherals.insert("susres", "Timers.Betrusted.SusRes"); + cs_peripherals.insert("timer0", "Timers.Betrusted.LiteX_Timer_32"); + cs_peripherals.insert("trng_kernel", "Miscellaneous.Betrusted.BetrustedRNGKernel"); + cs_peripherals.insert("trng_server", "Miscellaneous.Betrusted.BetrustedRNGServer"); + cs_peripherals.insert("ticktimer", "Timers.Betrusted.TickTimer"); cs_peripherals.insert("uart", "UART.LiteX_UART"); - cs_peripherals.insert("wfi", "Miscellaneous.BetrustedWfi"); - cs_peripherals.insert("wdt", "Timers.BetrustedWatchdog"); + cs_peripherals.insert("wfi", "Miscellaneous.Betrusted.BetrustedWfi"); + cs_peripherals.insert("wdt", "Timers.Betrusted.BetrustedWatchdog"); print_header(dest).or(Err(ParseError::WriteError))?; print_peripherals(