Home
last modified time | relevance | path

Searched refs:newVal (Results 1 – 12 of 12) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Timers/
DCadence_WDT.cs54 .WithFlag(0, out watchdogEnable, writeCallback: (oldVal, newVal) => in DefineRegisters()
61 watchdogTimer.Enabled = newVal; in DefineRegisters()
63 .WithFlag(1, out resetEnable, writeCallback: (oldVal, newVal) => in DefineRegisters()
71 .WithFlag(2, out interruptRequestEnable, writeCallback: (oldVal, newVal) => in DefineRegisters()
94 .WithValueField(0, 2, out counterClockPrescale, writeCallback: (oldVal, newVal) => in DefineRegisters()
101 watchdogTimer.Divider = 1 << (int)(3 * (newVal + 1)); in DefineRegisters()
103 .WithValueField(2, 12, out counterRestartValue, writeCallback: (oldVal, newVal) => in DefineRegisters()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Storage/VirtIO/
DVirtIO.cs43 var newVal = hasUsedBuffer.Value || configHasChanged.Value; in UpdateInterrupts()
44 this.Log(LogLevel.Debug, "Updating IRQ to {0}", newVal); in UpdateInterrupts()
45 IRQ.Set(newVal); in UpdateInterrupts()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Storage/
DUFSHostController.cs202 .WithFlag(16, FieldMode.Write, writeCallback: (_, newVal) => in DefineRegisters()
204 if(!newVal) in DefineRegisters()
227 … .WithFlags(0, 32, out transferRequestListClearFlags, writeCallback: (idx, _, newVal) => in DefineRegisters()
229 if(newVal) in DefineRegisters()
236 .WithFlag(0, out transferRequestListRunStop, changeCallback: (_, newVal) => in DefineRegisters()
238 if(!newVal) in DefineRegisters()
263 … .WithFlags(0, 8, out taskManagementRequestListClearFlags, writeCallback: (idx, _, newVal) => in DefineRegisters()
265 if(newVal) in DefineRegisters()
273 .WithFlag(0, out taskManagementRequestListRunStop, changeCallback: (_, newVal) => in DefineRegisters()
275 if(!newVal) in DefineRegisters()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CAN/
DMCAN.cs90 .WithFlag(4, out rv.TestRegister.LoopBackMode, writeCallback: (oldVal, newVal) => in BuildRegisterMap()
92 if(!IsProtectedWrite && newVal != oldVal) in BuildRegisterMap()
114 … .WithFlags(0, 16, out rv.CCControlRegister.ControlFields, writeCallback: (idx, oldVal, newVal) => in BuildRegisterMap()
121 if(!newVal) in BuildRegisterMap()
135 if(newVal) in BuildRegisterMap()
151 if(newVal) in BuildRegisterMap()
153 if(!IsProtectedWrite && newVal != oldVal) in BuildRegisterMap()
171 if(!IsProtectedWrite && newVal != oldVal) in BuildRegisterMap()
245 …InterruptFlags, FieldMode.Read | FieldMode.WriteOneToClear, writeCallback: (idx, oldVal, newVal) => in BuildRegisterMap()
247 if(!newVal) in BuildRegisterMap()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SPI/
DMPFS_SPI.cs312 …writeCallback: (_, newVal) => controlRegister.Write(0, (uint)BitHelper.SetMaskedValue(controlRegis… in MPFS_SPI()
318 …writeCallback: (_, newVal) => controlRegister.Write(0, (uint)BitHelper.SetMaskedValue(controlRegis… in MPFS_SPI()
324 …writeCallback: (_, newVal) => controlRegister.Write(0, (uint)BitHelper.SetMaskedValue(controlRegis… in MPFS_SPI()
330 …writeCallback: (_, newVal) => controlRegister.Write(0, (uint)BitHelper.SetMaskedValue(controlRegis… in MPFS_SPI()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/IRQControllers/
DRenesasRZG_IRQController.cs247 private void InterruptStatusControlWriteCallback(int interruptIdx, bool oldVal, bool newVal) in InterruptStatusControlWriteCallback() argument
250 if(trigger == PinFunctionInterruptType.LowLevel || newVal) in InterruptStatusControlWriteCallback()
256 … private void GpioInterruptStatusControlWriteCallback(int interruptIdx, bool oldVal, bool newVal) in GpioInterruptStatusControlWriteCallback() argument
263 if(newVal) in GpioInterruptStatusControlWriteCallback()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/
DRenesasRZG_CPG_SYSC.cs881 return (oldVal, newVal) => in CreateClockControlWriteCallback()
883 var invalidClocks = GetInvalidBits(oldVal, newVal, ClockEnableBitsOffset, in CreateClockControlWriteCallback()
903 return (oldVal, newVal) => in CreateResetControlWriteCallback()
905 var invalidResets = GetInvalidBits(oldVal, newVal, ResetEnableBitsOffset, in CreateResetControlWriteCallback()
956 …private uint GetInvalidBits(uint oldVal, uint newVal, int valueOffset, int valueSize, int maskOffs… in GetInvalidBits() argument
958 var mask = BitHelper.GetValue(newVal, maskOffset, maskSize); in GetInvalidBits()
960 newVal = BitHelper.GetValue(newVal, valueOffset, valueSize); in GetInvalidBits()
963 var changed = oldVal ^ newVal; in GetInvalidBits()
DOpenTitan_BigNumberAccelerator.cs203 writeCallback: (prevVal, newVal) => in DefineRegisters()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SCI/
DRenesasRZG_SCIFA.cs173 …writeCallback: (oldVal, newVal) => bitRate.Value = (!transmitEnabled.Value && !receiveEnabled.Valu… in DefineRegisters()
DRenesasRA6M5_SCI.cs343 …writeCallback: (oldVal, newVal) => bitRate.Value = (!transmitEnabled.Value && !receiveEnabled.Valu… in DefineRegisters()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/UART/
DCadence_UART.cs395 .WithValueField(0, 16, out baudGenerator, writeCallback: (oldVal, newVal) => in BuildRegisterMap()
397 if(newVal == 0) in BuildRegisterMap()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/I2C/
DSTM32F7_I2C.cs154 .WithWriteCallback((oldVal, newVal) => in CreateRegisters()