| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Hooks/ |
| D | SystemBusHooksExtensions.cs | 18 …public static void SetHookAfterPeripheralRead(this IBusController sysbus, IBusPeripheral periphera… in SetHookAfterPeripheralRead() argument 20 var runner = new BusPeripheralsHooksPythonEngine(sysbus, peripheral, pythonScript); in SetHookAfterPeripheralRead() 21 sysbus.SetHookAfterPeripheralRead<ulong>(peripheral, runner.ReadHook, subrange); in SetHookAfterPeripheralRead() 22 …sysbus.SetHookAfterPeripheralRead<uint>(peripheral, (readValue, offset) => (uint)runner.ReadHook(r… in SetHookAfterPeripheralRead() 23 …sysbus.SetHookAfterPeripheralRead<ushort>(peripheral, (readValue, offset) => (ushort)runner.ReadHo… in SetHookAfterPeripheralRead() 24 …sysbus.SetHookAfterPeripheralRead<byte>(peripheral, (readValue, offset) => (byte)runner.ReadHook(r… in SetHookAfterPeripheralRead() 27 …public static void SetHookBeforePeripheralWrite(this IBusController sysbus, IBusPeripheral periphe… in SetHookBeforePeripheralWrite() argument 29 … var runner = new BusPeripheralsHooksPythonEngine(sysbus, peripheral, null, pythonScript); in SetHookBeforePeripheralWrite() 30 sysbus.SetHookBeforePeripheralWrite<ulong>(peripheral, runner.WriteHook, subrange); in SetHookBeforePeripheralWrite() 31 …sysbus.SetHookBeforePeripheralWrite<uint>(peripheral, (valueToWrite, offset) => (uint)runner.Write… in SetHookBeforePeripheralWrite() [all …]
|
| D | WatchpointHookPythonEngine.cs | 21 public WatchpointHookPythonEngine(IBusController sysbus, string script) in WatchpointHookPythonEngine() argument 23 this.sysbus = sysbus; in WatchpointHookPythonEngine() 35 this.sysbus.Log(LogLevel.Error, "Python runtime error: {0}", error); in WatchpointHookPythonEngine() 45 Scope.SetVariable("self", sysbus); in InnerInit() 55 private readonly IBusController sysbus; field in Antmicro.Renode.Hooks.WatchpointHookPythonEngine
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/ |
| D | SystemBusTests.cs | 33 sysbus = machine.SystemBus; in SetUp() 40 var read = sysbus.ReadByte(0xABCD1234); in ShouldReturnZeroAtNonExistingDevice() 49 sysbus.Register(peripheral.Object, 1000.By(1000)); in ShouldFindAfterRegistration() 50 Assert.AreEqual(0x666, sysbus.ReadDoubleWord(1000)); in ShouldFindAfterRegistration() 62 sysbus.Register(peri1.Object, 1000.By(100)); in ShouldFindAfterManyRegistrations() 63 sysbus.Register(peri2.Object, 2000.By(100)); in ShouldFindAfterManyRegistrations() 64 sysbus.Register(peri3.Object, 3000.By(100)); in ShouldFindAfterManyRegistrations() 65 Assert.AreEqual(0x666, sysbus.ReadDoubleWord(1000)); in ShouldFindAfterManyRegistrations() 66 Assert.AreEqual(0x667, sysbus.ReadDoubleWord(2000)); in ShouldFindAfterManyRegistrations() 67 Assert.AreEqual(0x668, sysbus.ReadDoubleWord(3000)); in ShouldFindAfterManyRegistrations() [all …]
|
| D | MultiCPUTests.cs | 28 var sysbus = machine.SystemBus; in ShouldEnumerateCPUs() 34 sysbus.Register(cpus[i], new CPURegistrationPoint()); in ShouldEnumerateCPUs() 38 Assert.AreEqual(i, sysbus.GetCPUSlot(cpus[i])); in ShouldEnumerateCPUs() 50 var sysbus = machine.SystemBus; in ShouldGuardPeripheralReads() 51 …cpuCount.Times(() => sysbus.Register(new ActivelyAskingCPU(machine, 0), new CPURegistrationPoint()… in ShouldGuardPeripheralReads() 53 sysbus.Register(peripheral, 0.By(1000)); in ShouldGuardPeripheralReads()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/ |
| D | BitBanding.cs | 21 sysbus = machine.GetSystemBus(this); in BitBanding() 33 var readValue = sysbus.ReadByte(realAddress); in ReadByte() 41 var readValue = sysbus.ReadByte(realAddress); in WriteByte() 52 sysbus.WriteByte(realAddress, readValue); in WriteByte() 58 var readValue = sysbus.ReadWord(realAddress); in ReadWord() 66 var readValue = sysbus.ReadWord(realAddress); in WriteWord() 77 sysbus.WriteWord(realAddress, readValue); in WriteWord() 83 var readValue = sysbus.ReadDoubleWord(realAddress); in ReadDoubleWord() 91 var readValue = sysbus.ReadDoubleWord(realAddress); in WriteDoubleWord() 102 sysbus.WriteDoubleWord(realAddress, readValue); in WriteDoubleWord() [all …]
|
| D | BitAccess.cs | 18 sysbus = machine.GetSystemBus(this); in BitAccess() 44 …sysbus.WriteByte(address + (ulong)offset, (byte)operation(sysbus.ReadByte(address + (ulong)offset)… in WriteByte() 55 …sysbus.WriteWord(address + (ulong)offset, (ushort)operation(sysbus.ReadWord(address + (ulong)offse… in WriteWord() 66 …sysbus.WriteDoubleWord(address + (ulong)offset, (uint)operation(sysbus.ReadDoubleWord(address + (u… in WriteDoubleWord() 69 private readonly IBusController sysbus; field in Antmicro.Renode.Peripherals.Miscellaneous.BitAccess
|
| D | BitBanding.tt | 38 sysbus = machine.GetSystemBus(this); 59 var readValue = sysbus.Read<#= name #>(realAddress); 67 var readValue = sysbus.Read<#= name #>(realAddress); 78 sysbus.Write<#= name #>(realAddress, readValue); 91 private readonly SystemBus sysbus;
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/DMA/ |
| D | DmaEngine.cs | 20 sysbus = systemBus; in DmaEngine() 42 var whatIsAtSource = sysbus.WhatIsAt(sourceAddress, context); in IssueCopy() 57 sysbus.ReadBytes(sourceAddress, request.Size, buffer, 0, context: context); in IssueCopy() 66 sysbus.ReadBytes(sourceAddress, readLengthInBytes, buffer, 0, context: context); in IssueCopy() 80 buffer[transferred] = sysbus.ReadByte(readAddress, context); in IssueCopy() 83 … BitConverter.GetBytes(sysbus.ReadWord(readAddress, context)).CopyTo(buffer, transferred); in IssueCopy() 86 … BitConverter.GetBytes(sysbus.ReadDoubleWord(readAddress, context)).CopyTo(buffer, transferred); in IssueCopy() 89 … BitConverter.GetBytes(sysbus.ReadQuadWord(readAddress, context)).CopyTo(buffer, transferred); in IssueCopy() 104 var whatIsAtDestination = sysbus.WhatIsAt(destinationAddress, context); in IssueCopy() 121 sysbus.WriteBytes(buffer, destinationAddress, context: context); in IssueCopy() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/DMA/ |
| D | TegraDmaHost1X.cs | 20 sysbus = machine.GetSystemBus(this); in TegraDmaHost1X() 41 uint vl = sysbus.ReadDoubleWord(offset); in Execute_DMA() 55 …0x{0:X} count {1} bytes, first_val = {2:X}", 0x54080000 + addr, count*4, sysbus.ReadDoubleWord(off… in Execute_DMA() 58 …- syncpt control. next_val = {0:X} at addr {1:X}. not implemented yet.", sysbus.ReadDoubleWord(off… in Execute_DMA() 99 uint opc = (sysbus.ReadDoubleWord(this.command_addr) >> 28) & 0xF; in WriteDoubleWord() 103 uint cmd_l = 4 * (sysbus.ReadDoubleWord(this.command_addr) & 0x3FFF); in WriteDoubleWord() 104 uint cmd_ad = (sysbus.ReadDoubleWord(this.command_addr + 4) >> 2) * 4; in WriteDoubleWord() 235 private readonly IBusController sysbus; field in Antmicro.Renode.Peripherals.DMA.TegraDmaHost1X
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Wireless/ |
| D | EmberRadio.cs | 23 sysbus = machine.GetSystemBus(this); in EmberRadio() 242 int packet_len = sysbus.ReadByte(MAC_TX_ST_ADDR_A); in WriteDoubleWord() 243 sysbus.WriteByte(MAC_TX_ST_ADDR_A, 0); // clear len in WriteDoubleWord() 253 dataToSend[j] = sysbus.ReadByte(MAC_TX_ST_ADDR_A + j + 1); in WriteDoubleWord() 266 int packet_len = sysbus.ReadByte(MAC_TX_ST_ADDR_A); in WriteDoubleWord() 277 data[j] = sysbus.ReadByte(MAC_TX_ST_ADDR_A + 1 + j); in WriteDoubleWord() 282 … sysbus.WriteByte((ulong)(MAC_TX_ST_ADDR_A + packet_len - 1), (byte)(crc & 0xFF)); in WriteDoubleWord() 283 … sysbus.WriteByte((ulong)(MAC_TX_ST_ADDR_A + packet_len), (byte)((crc >> 8) & 0xFF)); in WriteDoubleWord() 304 sysbus.WriteByte(MAC_RX_ST_ADDR_A, (byte)(frame.Length)); in ReceiveFrame() 305 sysbus.WriteByte(MAC_RX_ST_ADDR_B, (byte)(frame.Length)); in ReceiveFrame() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Network/ |
| D | SynopsysEthernetMAC.cs | 24 sysbus = machine.GetSystemBus(this); in SynopsysEthernetMAC() 242 var receiveDescriptor = new RxDescriptor(this, sysbus, version); in ReceiveFrame() 264 sysbus.WriteBytes(toWriteArray, receiveDescriptor.Address1); in ReceiveFrame() 272 sysbus.WriteBytes(toWriteArray, receiveDescriptor.Address2); in ReceiveFrame() 335 var transmitDescriptor = new TxDescriptor(this, sysbus, version); in SendFrames() 343 …packetData.AddRange(sysbus.ReadBytes(transmitDescriptor.Address1, transmitDescriptor.Buffer1Length… in SendFrames() 346 …packetData.AddRange(sysbus.ReadBytes(transmitDescriptor.Address2, transmitDescriptor.Buffer2Length… in SendFrames() 435 private readonly IBusController sysbus; field in Antmicro.Renode.Peripherals.Network.SynopsysEthernetMAC 458 …public Descriptor(SynopsysEthernetMAC parent, IBusController sysbus, SynopsysEthernetVersion versi… in Descriptor() argument 460 this.sysbus = sysbus; in Descriptor() [all …]
|
| D | GaislerEth.cs | 24 sysbus = machine.GetSystemBus(this); in GaislerEth() 212 var rd = new receiveDescriptor(sysbus); in ReceiveFrame() 228 sysbus.WriteBytes(frame.Bytes, rd.PacketAddress); in ReceiveFrame() 259 var td = new transmitDescriptor(sysbus); in transmitFrame() 267 var packetBytes = sysbus.ReadBytes(td.PacketAddress, (int)td.Length); in transmitFrame() 320 private readonly IBusController sysbus; field in Antmicro.Renode.Peripherals.Network.GaislerEth 364 public transmitDescriptor(IBusController sysbus) in transmitDescriptor() argument 366 sbus = sysbus; in transmitDescriptor() 414 public receiveDescriptor(IBusController sysbus) in receiveDescriptor() argument 416 sbus = sysbus; in receiveDescriptor()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Mocks/ |
| D | SimpleDMA.cs | 19 sysbus = machine.GetSystemBus(this); in SimpleDMA() 27 sysbus.WriteDoubleWord(address, (uint)data.Value); in SimpleDMA() 33 data.Value = sysbus.ReadDoubleWord(address); in SimpleDMA() 61 private readonly IBusController sysbus; field in Antmicro.Renode.Peripherals.SimpleDMA
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/PythonPeripherals/ |
| D | SerializationTests.cs | 86 var sysbus = machine.SystemBus; in ShouldSerializeMachineWithSimplePyDev() 87 … sysbus.Register(pyDev, new Antmicro.Renode.Peripherals.Bus.BusRangeRegistration(0x100, 0x10)); in ShouldSerializeMachineWithSimplePyDev() 89 Assert.AreEqual(9, sysbus.ReadByte(0x100)); in ShouldSerializeMachineWithSimplePyDev() 91 sysbus = machine.SystemBus; in ShouldSerializeMachineWithSimplePyDev() 92 Assert.AreEqual(9, sysbus.ReadByte(0x100)); in ShouldSerializeMachineWithSimplePyDev()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Video/ |
| D | PL110.cs | 22 sysbus = machine.GetSystemBus(this); in PL110() 73 sysbus.ReadBytes(bufferAddress, buffer.Length, buffer, 0); in Repaint() 78 private readonly IBusController sysbus; field in Antmicro.Renode.Peripherals.Video.PL110
|
| D | TegraDisplay.cs | 21 sysbus = machine.GetSystemBus(this); in TegraDisplay() 91 sysbus.ReadBytes(bufferAddress, buffer.Length, buffer, 0); in Repaint() 97 private readonly IBusController sysbus; field in Antmicro.Renode.Peripherals.Video.TegraDisplay
|
| D | VybridDCU.cs | 22 sysbus = machine.GetSystemBus(this); in VybridDCU() 95 sysbus.ReadBytes(bufferAddress, buffer.Length, buffer, 0); in Repaint() 103 private readonly IBusController sysbus; field in Antmicro.Renode.Peripherals.Video.VybridDCU
|
| D | LiteX_Framebuffer_CSR32.cs | 25 sysbus = machine.GetSystemBus(this); in LiteX_Framebuffer_CSR32() 65 sysbus.ReadBytes(bufferAddress, buffer.Length, buffer, 0); in Repaint() 84 … var memoryBase = (uint)sysbus.GetRegistrationPoints(memory).First().Range.StartAddress; in DefineDMARegisters() 120 private readonly IBusController sysbus; field in Antmicro.Renode.Peripherals.Video.LiteX_Framebuffer_CSR32
|
| D | LiteX_Framebuffer.cs | 25 sysbus = machine.GetSystemBus(this); in LiteX_Framebuffer() 53 sysbus.ReadBytes(bufferAddress, buffer.Length, buffer, 0); in Repaint() 83 … var memoryBase = (uint)sysbus.GetRegistrationPoints(memory).First().Range.StartAddress; in DefineRegisters() 106 private readonly IBusController sysbus; field in Antmicro.Renode.Peripherals.Video.LiteX_Framebuffer
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Utilities/ |
| D | MachineExtensions.cs | 53 …public static void LoadFdt(this IBusController sysbus, string file, ulong address, string bootargs… in LoadFdt() argument 63 sysbus.WriteBytes(fdtBlob, address, true, context); in LoadFdt() 86 sysbus.DebugLog("Bootargs altered from '{0}' to '{1}'.", oldBootargs, bootargs); in LoadFdt() 112 sysbus.WriteBytes(fdtBlob, address, true, context); in LoadFdt() 115 …public static void WriteASCIIString(this IBusController sysbus, ulong address, string stringToLoad… in WriteASCIIString() argument 117 sysbus.WriteBytes(Encoding.ASCII.GetBytes(stringToLoad), address, true, context); in WriteASCIIString()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Bus/ |
| D | PeripheralCollection.cs | 34 internal PeripheralCollection(SystemBus sysbus) in PeripheralCollection() argument 36 this.sysbus = sysbus; in PeripheralCollection() 68 … sysbus.NoisyLog("{0} is at not aligned address - not using dictionary.", name); in Add() 76 sysbus.NoisyLog("{0} is too large - not using dictionary.", name); in Add() 88 sysbus.NoisyLog("Added {0} to binary search array.", name); in Add() 99 sysbus.NoisyLog("Added {0} to dictionary.", name); in Add() 272 sysbus.DebugLog(line.ToString()); in ShowStatistics() 314 private readonly SystemBus sysbus; field in Antmicro.Renode.Peripherals.Bus.SystemBus.PeripheralCollection
|
| D | Redirector.cs | 20 public static void Redirect(this IBusController sysbus, ulong from, ulong to, ulong size) in Redirect() argument 22 var redirector = new Redirector(sysbus.Machine, to); in Redirect() 24 sysbus.Register(redirector, rangePoint); in Redirect()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/MemoryControllers/ |
| D | Gaisler_FaultTolerantMemoryController.cs | 53 promAddress = sysbus.GetRegistrationPoints(prom).Single().Range.StartAddress; in Register() 171 sysbus.Unregister(prom); in SetPromWriteEnable() 172 sysbus.Register(flash, new BusPointRegistration(promAddress.Value)); in SetPromWriteEnable() 176 sysbus.Unregister(flash); in SetPromWriteEnable() 177 sysbus.Register(prom, new BusPointRegistration(promAddress.Value)); in SetPromWriteEnable()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SPI/ |
| D | PULP_uDMA_SPI.cs | 21 sysbus = machine.GetSystemBus(this); in PULP_uDMA_SPI() 160 sysbus.WriteBytes(receiveQueue.ToArray(), rxTransferAddress.Value); in TryStartReception() 178 … foreach(var b in sysbus.ReadBytes(txTransferAddress.Value, (int)txTransferBufferSize.Value)) in TryStartTransmission() 190 var cmd = (Commands)(sysbus.ReadDoubleWord(commandTransferAddress.Value + 8) >> 28); in ReadCommand() 200 private readonly IBusController sysbus; field in Antmicro.Renode.Peripherals.SPI.PULP_uDMA_SPI
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/UART/ |
| D | PULP_uDMA_UART.cs | 20 sysbus = machine.GetSystemBus(this); in PULP_uDMA_UART() 74 … var data = sysbus.ReadBytes(txBufferAddress.Value, (int)txBufferSize.Value); in PULP_uDMA_UART() 150 sysbus.WriteByte(rxBufferAddress.Value + rxIdx, c); in CharWritten() 168 private readonly IBusController sysbus; field in Antmicro.Renode.Peripherals.UART.PULP_uDMA_UART
|