Home
last modified time | relevance | path

Searched refs:clockSource (Results 1 – 20 of 20) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/
DComparingTimerTests.cs30 var clockSource = new BaseClockSource(); in ShouldHandleCompareValueChangeWhenEnabled()
31 …var timer = new ComparingTimer(clockSource, 1000000, null, String.Empty, 65535 + 1, enabled: true,… in ShouldHandleCompareValueChangeWhenEnabled()
34 clockSource.Advance(TimeInterval.FromMicroseconds(65535), true); in ShouldHandleCompareValueChangeWhenEnabled()
39 clockSource.Advance(TimeInterval.FromMicroseconds(1), true); in ShouldHandleCompareValueChangeWhenEnabled()
46 clockSource.Advance(TimeInterval.FromMicroseconds(16304), true); in ShouldHandleCompareValueChangeWhenEnabled()
56 clockSource.Advance(TimeInterval.FromMicroseconds(65535 - 16304), true); in ShouldHandleCompareValueChangeWhenEnabled()
61 clockSource.Advance(TimeInterval.FromMicroseconds(1), true); in ShouldHandleCompareValueChangeWhenEnabled()
66 clockSource.Advance(TimeInterval.FromMicroseconds(65535), true); in ShouldHandleCompareValueChangeWhenEnabled()
71 clockSource.Advance(TimeInterval.FromMicroseconds(1), true); in ShouldHandleCompareValueChangeWhenEnabled()
83 var clockSource = new BaseClockSource(); in ShouldClearWhenValueSetToZero()
[all …]
DTimeTests.cs60 var clockSource = new BaseClockSource(); in ShouldHaveHandlersInSync()
68 clockSource.AddClockEntry(new ClockEntry(10000, 10, firstHandler, null, String.Empty)); in ShouldHaveHandlersInSync()
69clockSource.AddClockEntry(new ClockEntry(10, 1, () => values.Add(clockSource.GetClockEntry(firstHa… in ShouldHaveHandlersInSync()
71 clockSource.Advance(TimeInterval.FromSeconds(9), true); in ShouldHaveHandlersInSync()
72 clockSource.Advance(TimeInterval.FromSeconds(8), true); in ShouldHaveHandlersInSync()
73 clockSource.Advance(TimeInterval.FromSeconds(20), true); in ShouldHaveHandlersInSync()
81 var clockSource = new BaseClockSource(); in ShouldObserveShorterPeriodClockAfterAdd()
89 clockSource.AddClockEntry(entryA); in ShouldObserveShorterPeriodClockAfterAdd()
90 clockSource.Advance(TimeInterval.FromSeconds(500)); in ShouldObserveShorterPeriodClockAfterAdd()
91 clockSource.AddClockEntry(entryB); in ShouldObserveShorterPeriodClockAfterAdd()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Timers/
DLimitTimer.cs19 …public LimitTimer(IClockSource clockSource, long frequency, IPeripheral owner, string localName, u… in LimitTimer() argument
35 this.clockSource = clockSource; in LimitTimer()
50 …protected LimitTimer(IClockSource clockSource, long frequency, ulong limit = ulong.MaxValue, Direc… in LimitTimer() argument
51 …: this(clockSource, frequency, null, null, limit, direction, enabled, workMode, eventEnabled, auto… in LimitTimer()
57 var clockEntry = clockSource.GetClockEntry(OnLimitReached); in GetValueAndLimit()
94clockSource.ExchangeClockEntryWith(OnLimitReached, oldEntry => oldEntry.With(frequency: effectiveF…
104 return clockSource.GetClockEntry(OnLimitReached).Value;
113clockSource.ExchangeClockEntryWith(OnLimitReached, oldEntry => oldEntry.With(value: value));
123 return clockSource.GetClockEntry(OnLimitReached).WorkMode;
127clockSource.ExchangeClockEntryWith(OnLimitReached, oldEntry => oldEntry.With(workMode: value));
[all …]
DComparingTimer.cs19 …public ComparingTimer(IClockSource clockSource, long frequency, IPeripheral owner, string localNam… in ComparingTimer() argument
38 this.clockSource = clockSource; in ComparingTimer()
54 …protected ComparingTimer(IClockSource clockSource, long frequency, ulong limit = ulong.MaxValue, D… in ComparingTimer() argument
55 …: this(clockSource, frequency, null, null, limit, direction, enabled, workMode, eventEnabled, comp… in ComparingTimer()
63 return clockSource.GetClockEntry(CompareReachedInternal).Enabled;
67clockSource.ExchangeClockEntryWith(CompareReachedInternal, oldEntry => oldEntry.With(enabled: valu…
99 clockSource.GetClockEntryInLockContext(CompareReachedInternal, entry =>
112 clockSource.ExchangeClockEntryWith(CompareReachedInternal, entry =>
134 clockSource.ExchangeClockEntryWith(CompareReachedInternal, entry =>
181clockSource.ExchangeClockEntryWith(CompareReachedInternal, oldEntry => oldEntry.With(step: step));
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Timers/
DTegraTimer.cs22 clockSource = machine.ClockSource; in TegraTimer()
32 var clockEntry = clockSource.GetClockEntry(OnLimitReached); in ReadDoubleWord()
64clockSource.ExchangeClockEntryWith(OnLimitReached, oldEntry => oldEntry.With(period: (value & ((1 … in WriteDoubleWord()
91 …this.Log(LogLevel.Noisy, "Alarm on tmr, value 0x{0:X}", clockSource.GetClockEntry(OnLimitReached).… in OnLimitReached()
98 clockSource.ExchangeClockEntryWith(OnLimitReached, x => clockEntry, () => clockEntry); in Reset()
101 private readonly IClockSource clockSource; field in Antmicro.Renode.Peripherals.Timers.TegraTimer
DS32K3XX_RealTimeClock.cs87 switch(clockSource.Value) in GetClockFrequency()
134 .WithEnumField(12, 2, out clockSource, name: "ClockSelect") in DefineRegisters()
194 private IEnumRegisterField<ClockSource> clockSource; field in Antmicro.Renode.Peripherals.Timers.S32K3XX_RealTimeClock
206 public InternalClock(IClockSource clockSource, IPeripheral parent, long frequency) in InternalClock() argument
208 …mainClock = new LimitTimer(clockSource, frequency, parent, "main_clk", limit: uint.MaxValue, direc… in InternalClock()
211 …apiInterruptClock = new LimitTimer(clockSource, frequency, parent, "api_int_clk", limit: uint.MaxV… in InternalClock()
214 …rtcInterruptClock = new LimitTimer(clockSource, frequency, parent, "rtc_int_clk", limit: uint.MaxV… in InternalClock()
DCadence_TTC.cs221 … public TimerUnit(IClockSource clockSource, IPeripheral parent, long frequency, string localName) in TimerUnit() argument
223 …timer = new LimitTimer(clockSource, frequency, parent, localName, limit: OverflowLimit, direction:… in TimerUnit()
229 … Match[i] = new MatchTimerUnit(clockSource, parent, this, frequency, $"{localName}-match{i}"); in TimerUnit()
418 …public MatchTimerUnit(IClockSource clockSource, IPeripheral parent, TimerUnit owner, long frequenc… in MatchTimerUnit() argument
421 …timer = new LimitTimer(clockSource, frequency, parent, localName, limit: OverflowLimit, direction:… in MatchTimerUnit()
DS32K3XX_PeriodicInterruptTimer.cs175 … public ClockChannel(IClockSource clockSource, IPeripheral parent, long frequency, string name) in ClockChannel() argument
177 underlyingTimer = new LimitTimer(clockSource, frequency, parent, name); in ClockChannel()
DGaisler_GPTimer.cs202 … public TimerUnit(IClockSource clockSource, long frequency, Gaisler_GPTimer parent, int index) in TimerUnit() argument
206 …timer = new LimitTimer(clockSource, frequency, parent, $"timer{index}", limit: uint.MaxValue, even… in TimerUnit()
DS32K_LPIT.cs229 …public LPITTimer(IClockSource clockSource, long frequency, S32K_LPIT owner, string name) : base(cl… in LPITTimer() argument
DAmbiqApollo4_Timer.cs355 public InternalTimer(IPeripheral parent, IClockSource clockSource, int index) in InternalTimer() argument
357 …compare0Timer = new ComparingTimer(clockSource, 1, parent, $"timer{index}cmp0", limit: 0xFFFFFFFF,… in InternalTimer()
358 …compare1Timer = new ComparingTimer(clockSource, 1, parent, $"timer{index}cmp1", limit: 0xFFFFFFFF,… in InternalTimer()
DSAM_TC.cs345 …public Channel(IClockSource clockSource, long masterClockFrequency, IPeripheral owner, int channel) in Channel() argument
351 …timer = new LimitTimer(clockSource, masterClockFrequency, owner, $"channel-{channel}", MaxValue, D… in Channel()
352 …cTimer = new LimitTimer(clockSource, masterClockFrequency, owner, $"channel-{channel} C capture", … in Channel()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/Arm/Timers/
DARM_GenericTimer.cs30 clockSource = machine.ClockSource; in ARM_GenericTimer()
33 …el1PhysicalTimer = new TimerUnit(clockSource, this, "EL1PhysicalTimer", EL1PhysicalTimerIRQ, Frequ… in ARM_GenericTimer()
34 …el1VirtualTimer = new TimerUnit(clockSource, this, "EL1VirtualTimer", EL1VirtualTimerIRQ, Frequenc… in ARM_GenericTimer()
35 …el3PhysicalTimer = new TimerUnit(clockSource, this, "EL3PhysicalTimer", EL3PhysicalTimerIRQ, Frequ… in ARM_GenericTimer()
36 …nonSecureEL2PhysicalTimer = new TimerUnit(clockSource, this, "NonSecureEL2PhysicalTimer", NonSecur… in ARM_GenericTimer()
37 …nonSecureEL2VirtualTimer = new TimerUnit(clockSource, this, "NonSecureEL2VirtualTimer", NonSecureE… in ARM_GenericTimer()
371 private readonly IClockSource clockSource; field in Antmicro.Renode.Peripherals.Timers.ARM_GenericTimer
443 …public TimerUnit(IClockSource clockSource, IPeripheral parent, string name, GPIO irq, long frequen… in TimerUnit() argument
445 this.clockSource = clockSource; in TimerUnit()
450 …timer = new ComparingTimer(clockSource, frequency, parent, name, limit: ulong.MaxValue, compare: u… in TimerUnit()
[all …]
DARM_GlobalTimer.cs287 …public PrivateComparator(IClockSource clockSource, LimitTimer coreTimer, IPeripheral owner, string… in PrivateComparator() argument
289 …innerTimer = new ComparingTimer(clockSource, coreTimer.Frequency, owner, $"compareTimer-{coreName}… in PrivateComparator()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/
DK6xF_MCG.cs27 .WithEnumField(6, 2, out clockSource, name: "CLKS") in K6xF_MCG()
61 switch(clockSource.Value) in K6xF_MCG()
109 private readonly IEnumRegisterField<ClockSourceValues> clockSource; field in Antmicro.Renode.Peripherals.Miscellaneous.K6xF_MCG
DOpenTitan_SystemResetControl.cs424 … public DurationTimer(IClockSource clockSource, long frequency, IPeripheral owner, string name) in DurationTimer() argument
425 … : base(clockSource, frequency, owner, name, limit: uint.MaxValue, direction: Direction.Ascending, in DurationTimer()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SCI/
DRenesasRZG_SCIFA.cs122 var n = clockSource.Value == 0 ?
123 0.5 : 1UL << (2 * (ushort)clockSource.Value - 1);
147 .WithValueField(0, 2, out clockSource, name: "CKS") in DefineRegisters()
392 private IValueRegisterField clockSource; field in Antmicro.Renode.Peripherals.SCI.RenesasRZG_SCIFA
DRenesasRA6M5_SCI.cs142 var n = clockSource.Value == 0 ? 1UL : 2UL << (2 * (ushort)clockSource.Value - 1);
319 .WithValueField(0, 2, out clockSource, name: "CKS") in DefineRegisters()
1012 private IValueRegisterField clockSource; field in Antmicro.Renode.Peripherals.SCI.RenesasRA6M5_SCI
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/UART/
DCadence_UART.cs101 …public override uint BaudRate => (uint)(clockFrequency / (clockSource.Value ? 8U : 1U) / baudGener…
222 .WithFlag(0, out clockSource, name: "clockSourceSelect") in BuildRegisterMap()
496 private IFlagRegisterField clockSource; field in Antmicro.Renode.Peripherals.UART.Cadence_UART
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/
DMachine.cs47 clockSource = new BaseClockSource(); in Machine()
708 private BaseClockSource clockSource; field in Antmicro.Renode.Core.Machine
709 public IClockSource ClockSource { get { return clockSource; } }
1697 clockSource.Advance(diff); in HandleTimeProgress()