Home
last modified time | relevance | path

Searched refs:read (Results 1 – 22 of 22) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/Extensions/
DReadWriteExtensions.cs30 public static BusAccess.WordReadMethod BuildWordReadUsing(BusAccess.ByteReadMethod read) in BuildWordReadUsing() argument
36 return (ushort)((ushort)read(address) in BuildWordReadUsing()
37 | (ushort)read(address + 1) << 8 in BuildWordReadUsing()
52 …public static BusAccess.WordWriteMethod BuildWordWriteUsing(BusAccess.ByteReadMethod read, BusAcce… in BuildWordWriteUsing() argument
74 … public static BusAccess.WordReadMethod BuildWordReadBigEndianUsing(BusAccess.ByteReadMethod read) in BuildWordReadBigEndianUsing() argument
80 return (ushort)((ushort)(read(address + 1)) in BuildWordReadBigEndianUsing()
81 | (ushort)(read(address + 0)) << 8 in BuildWordReadBigEndianUsing()
96 …ess.WordWriteMethod BuildWordWriteBigEndianUsing(BusAccess.ByteReadMethod read, BusAccess.ByteWrit… in BuildWordWriteBigEndianUsing() argument
120 …ublic static BusAccess.DoubleWordReadMethod BuildDoubleWordReadUsing(BusAccess.ByteReadMethod read) in BuildDoubleWordReadUsing() argument
126 return (uint)((uint)read(address) in BuildDoubleWordReadUsing()
[all …]
DReadWriteExtensions.tt99 …ccess.<#= outName #>ReadMethod Build<#= outName #>ReadUsing(BusAccess.<#= inName #>ReadMethod read)
105 return (<#= outType #>)((<#= outType #>)read(address)
110 | (<#= outType #>)read(address + <#= i / 8 #>) << <#= i #>
134 …iteMethod Build<#= outName #>WriteUsing(BusAccess.<#= inName #>ReadMethod read, BusAccess.<#= inNa…
169 … outName #>ReadMethod Build<#= outName #>ReadBigEndianUsing(BusAccess.<#= inName #>ReadMethod read)
175 …return (<#= outType #>)((<#= outType #>)<#= swapFuncIn #>(read(address + <#= (outWidth - inWidth) …
180 … | (<#= outType #>)<#= swapFuncIn #>(read(address + <#= i / 8 #>)) << <#= outWidth - inWidth - i #>
204 … Build<#= outName #>WriteBigEndianUsing(BusAccess.<#= inName #>ReadMethod read, BusAccess.<#= inNa…
238 …ccess.<#= outName #>ReadMethod Build<#= outName #>ReadUsing(BusAccess.<#= inName #>ReadMethod read)
246 return (<#= outType #>)(read(readAddress) >> offset * 8);
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Bus/Wrappers/
DBytePeripheralWrapper.cs12 public BytePeripheralWrapper(BusAccess.ByteReadMethod read, BusAccess.ByteWriteMethod write) in BytePeripheralWrapper() argument
14 this.read = read; in BytePeripheralWrapper()
20 return read(offset); in ReadByte()
32 private readonly BusAccess.ByteReadMethod read; field in Antmicro.Renode.Peripherals.Bus.Wrappers.BytePeripheralWrapper
DDoubleWordPeripheralWrapper.cs12 …public DoubleWordPeripheralWrapper(BusAccess.DoubleWordReadMethod read, BusAccess.DoubleWordWriteM… in DoubleWordPeripheralWrapper() argument
14 this.read = read; in DoubleWordPeripheralWrapper()
20 return read(offset); in ReadDoubleWord()
32 private readonly BusAccess.DoubleWordReadMethod read; field in Antmicro.Renode.Peripherals.Bus.Wrappers.DoubleWordPeripheralWrapper
DQuadWordPeripheralWrapper.cs11 …public QuadWordPeripheralWrapper(BusAccess.QuadWordReadMethod read, BusAccess.QuadWordWriteMethod … in QuadWordPeripheralWrapper() argument
13 this.read = read; in QuadWordPeripheralWrapper()
19 return read(offset); in ReadQuadWord()
31 private readonly BusAccess.QuadWordReadMethod read; field in Antmicro.Renode.Peripherals.Bus.Wrappers.QuadWordPeripheralWrapper
DWordPeripheralWrapper.cs12 public WordPeripheralWrapper(BusAccess.WordReadMethod read, BusAccess.WordWriteMethod write) in WordPeripheralWrapper() argument
14 this.read = read; in WordPeripheralWrapper()
20 return read(offset); in ReadWord()
32 private readonly BusAccess.WordReadMethod read; field in Antmicro.Renode.Peripherals.Bus.Wrappers.WordPeripheralWrapper
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Bus/
DPeripheralAccessMethods.cs120 dynamic read = null; in BuildMissingAccesses()
131 read = readMethod; in BuildMissingAccesses()
137 if(read == null) in BuildMissingAccesses()
147 ReadByte = ReadWriteExtensions.BuildByteReadUsing(read); in BuildMissingAccesses()
148 WriteByte = ReadWriteExtensions.BuildByteWriteUsing(read, write); in BuildMissingAccesses()
152 ReadByte = ReadWriteExtensions.BuildByteReadBigEndianUsing(read); in BuildMissingAccesses()
153 WriteByte = ReadWriteExtensions.BuildByteWriteBigEndianUsing(read, write); in BuildMissingAccesses()
162 ReadWord = ReadWriteExtensions.BuildWordReadUsing(read); in BuildMissingAccesses()
163 WriteWord = ReadWriteExtensions.BuildWordWriteUsing(read, write); in BuildMissingAccesses()
167 ReadWord = ReadWriteExtensions.BuildWordReadBigEndianUsing(read); in BuildMissingAccesses()
[all …]
DSystemBusGenerated.tt52 …this.Log(LogLevel.Warning, "Tried to read {0} bytes at 0x{1:X} which is inside a locked address ra…
65 …this.Log(LogLevel.Warning, "Tried to read a locked peripheral: {0}. Address 0x{1:X}.", accessMetho…
96 …this.Log(LogLevel.Warning, "Tried to read {0} bytes at 0x{1:X} but failed on context state convers…
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DFileCopier.cs61 var read = 0; in Copy()
67 read = source.Read(buffer, 0, buffer.Length); in Copy()
68 destination.Write(buffer, 0, read); in Copy()
69 count += read; in Copy()
78 while(read > 0); in Copy()
DMisc.cs149 var read = 0; in ReadBytes()
150 while(read < count) in ReadBytes()
154 read, in ReadBytes()
155 count - read in ReadBytes()
161 read in ReadBytes()
165 read += readInThisIteration; in ReadBytes()
168 if(throwIfEndOfStream && read < count) in ReadBytes()
674 int read; in Copy()
677 read = from.Read(buffer, 0, buffer.Length); in Copy()
678 if(read <= 0) // to workaround ionic zip's bug in Copy()
[all …]
DLibCWrapper.cs110 var r = read(fd, buffer, count); in Read()
263 private static extern int read(int fd, IntPtr buf, int count); in read() method in Antmicro.Renode.Utilities.LibCWrapper
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SPI/
DUARTToSpiConverter.cs36 var read = RegisteredPeripheral.Transmit(value); in WriteChar()
37 charReceived(read); in WriteChar()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/MTD/
DCFIFlash.cs477 var read = stream.Read(writeBuffer, 0, writeBuffer.Length); in HandleMultiByteWrite()
478 if(read != writeBuffer.Length) in HandleMultiByteWrite()
482 read, writeBuffer.Length); in HandleMultiByteWrite()
558 var read = stream.Read(buffer, 0, currentBufferSize); in CheckBuffer()
559 if(read != currentBufferSize) in CheckBuffer()
562 read, currentBufferSize); in CheckBuffer()
DAMDCFIFlash.cs62 …public void AddBackingFile(ReadFilePath path, long offset, int size, bool read = true, bool write … in AddBackingFile() argument
64 if(read) in AddBackingFile()
DOpenTitan_FlashController.cs468 var read = 0; in LoadFlashInfoPartitionFromBinary()
469 … while((read = reader.Read(buffer, 0, buffer.Length)) > 0 && written < bufferSize) in LoadFlashInfoPartitionFromBinary()
471 … infoFlash[bankNumber, infoType].WriteBytes(offset + written, buffer, 0, read); in LoadFlashInfoPartitionFromBinary()
472 written += read; in LoadFlashInfoPartitionFromBinary()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Memory/
DMappedMemory.cs285 var read = 0; in ReadBytes()
286 while(read < count) in ReadBytes()
288 var currentOffset = offset + read; in ReadBytes()
291 var length = Math.Min(count - read, (int)(SegmentSize - localOffset)); in ReadBytes()
292 … Marshal.Copy(new IntPtr(segment.ToInt64() + localOffset), destination, read + startIndex, length); in ReadBytes()
293 read += length; in ReadBytes()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/
DSystemBusTests.cs40 var read = sysbus.ReadByte(0xABCD1234); in ShouldReturnZeroAtNonExistingDevice()
41 Assert.AreEqual(0, read); in ShouldReturnZeroAtNonExistingDevice()
432 var read = accessMethods[i].Item1; in testAllTranslatedAccesses()
444 Assert.AreEqual(value, read(address + (ulong)offset / 8, null, null)); in testAllTranslatedAccesses()
451 Assert.AreEqual(0x0, read(address + (ulong)offset / 8, null, null)); in testAllTranslatedAccesses()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Network/
DGaislerEth.cs106 var read = (value & 0x02) != 0; in WriteDoubleWord()
114 if(read) in WriteDoubleWord()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Test/PeripheralsTests/
DOpenTitan_I2C_Test.cs93 EnqueueCommand(new I2C.FormatIndicator(data: 1, read: true, stop: true)); in ShouldSetExceptionOnRxWatermark()
296 EnqueueCommand(new I2C.FormatIndicator(data: 1, read: true, stop: true)); in EnqueueReadFromSlave()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/I2C/
DNPCX_SMBus.cs73 var read = (value & 1) > 0; in HandleWrite()
84 CurrentState = read ? State.Reading : State.Writing; in HandleWrite()
DOpenTitan_I2C.cs719 …public FormatIndicator(byte data, bool start = false, bool stop = false, bool read = false, bool r… in FormatIndicator()
722 this.ReadFlag = read; in FormatIndicator()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/Common/
DRegisterTemplate.tt110 …row new RecoverableException($"The '{(<#=CLASS_NAME#>Registers)register}' register is read-only.");