Home
last modified time | relevance | path

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

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/
DOpenTitan_ScrambledMemory.cs25 underlyingMemory = new MappedMemory(machine, size); in OpenTitan_ScrambledMemory()
35 return underlyingMemory.ReadDoubleWord(offset); in ReadDoubleWord()
41 underlyingMemory.WriteDoubleWord(offset, value); in WriteDoubleWord()
47 underlyingMemory.WriteBytes(offset, value); in WriteBytes()
56 underlyingMemory.ReadBytes(offset, count, destination, startIndex); in ReadBytes()
63 underlyingMemory.ZeroAll(); in ZeroAll()
66 public long Size => underlyingMemory.Size;
68 public IEnumerable<IMappedSegment> MappedSegments => underlyingMemory.MappedSegments;
95 private readonly MappedMemory underlyingMemory; field in Antmicro.Renode.Peripherals.Miscellaneous.OpenTitan_ScrambledMemory
DSAM4S_EEFC.cs21 …public SAM4S_EEFC(IMachine machine, IMemory underlyingMemory, uint flashIdentifier = DefaultFlashI… in SAM4S_EEFC() argument
28 if(underlyingMemory == null) in SAM4S_EEFC()
33 if(underlyingMemory.Size % pageSize > 0) in SAM4S_EEFC()
48 this.underlyingMemory = underlyingMemory; in SAM4S_EEFC()
80underlyingMemory.WriteBytes(page * pageSize, Enumerable.Repeat((byte)0xFF, pageSize).ToArray(), 0,… in ErasePage()
87 public int NumberOfPages => (int)underlyingMemory.Size / pageSize;
91 public int NumberOfLockRegions => (int)underlyingMemory.Size / lockRegionSize;
116 /* Flash size in bytes */ (uint)underlyingMemory.Size, in ExecuteFlashCommand()
119 /* Number of bytes in plane #0 */ (uint)underlyingMemory.Size, in ExecuteFlashCommand()
292 private readonly IMemory underlyingMemory; field in Antmicro.Renode.Peripherals.Miscellaneous.SAM4S_EEFC
DOpenTitan_OneTimeProgrammableMemoryController.cs41 underlyingMemory = new ArrayMemory(0x1000); in OpenTitan_OneTimeProgrammableMemoryController()
71 underlyingMemory.WriteWord(offset, (ushort)pair.Item2); in LoadVmem()
86 return underlyingMemory.ReadBytes((uint)item, itemLength.ByteLength); in GetOtpItem()
352 readData0.Value = underlyingMemory.ReadDoubleWord(readAddress); in DirectReadInner()
355 readData1.Value = underlyingMemory.ReadDoubleWord(readAddress + 0x4); in DirectReadInner()
469 underlyingMemory.WriteWord(writeOffset, (ushort)dValues[strokeIndex]); in EncodeLifeCycleTransitionCount()
510underlyingMemory.WriteWord(writeOffset, currentPositionConsumed ? bValues[index] : aValues[index]); in EncodeLifeCycleState()
614 private readonly ArrayMemory underlyingMemory; field in Antmicro.Renode.Peripherals.Miscellaneous.OpenTitan_OneTimeProgrammableMemoryController
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SPI/
DMicron_MT25Q.cs15 …public Micron_MT25Q(MappedMemory underlyingMemory, byte extendedDeviceId = DefaultExtendedDeviceId) in Micron_MT25Q() argument
16 …: base(underlyingMemory, manufacturerId: ManufacturerId, memoryType: MemoryType, extendedDeviceId:… in Micron_MT25Q()
21 if(underlyingMemory.Size < 64.KB() || underlyingMemory.Size > 256.MB()) in Micron_MT25Q()
DMXIC_MX66UM1G45G.cs20 public MXIC_MX66UM1G45G(MappedMemory underlyingMemory) in MXIC_MX66UM1G45G() argument
25 …if(underlyingMemory.Size < 64.KB() || underlyingMemory.Size > 256.MB() || !Misc.IsPowerOfTwo((ulon… in MXIC_MX66UM1G45G()
47 this.underlyingMemory = underlyingMemory; in MXIC_MX66UM1G45G()
48 underlyingMemory.ResetByte = EmptySegment; in MXIC_MX66UM1G45G()
182 …reated, dumping {1} bytes of ROM to backing file", internalBackingFileName, underlyingMemory.Size);
184 … for(currentOffset = 0; currentOffset < underlyingMemory.Size; currentOffset += copyBuffer.Length)
186underlyingMemory.ReadBytes(currentOffset, copyBuffer.Length, copyBuffer, 0);
193 …2}) of ROM from file", internalBackingFileName, internalBackingFile.Length, underlyingMemory.Size);
195 if(internalBackingFile.Length != underlyingMemory.Size)
197 …le to match ROM size", internalBackingFileName, internalBackingFile.Length, underlyingMemory.Size);
[all …]
DCypress_S25H.cs16 … public Cypress_S25H(MappedMemory underlyingMemory, S25HxFamily memoryFamily = S25HxFamily.HS_T) in Cypress_S25H() argument
17 : base(underlyingMemory, manufacturerId: ManufacturerId, memoryType: (byte)memoryFamily, in Cypress_S25H()
22 if(underlyingMemory.Size < 32.MB() || underlyingMemory.Size > 128.MB()) in Cypress_S25H()
DMacronix_MX25R.cs17 public Macronix_MX25R(MappedMemory underlyingMemory) in Macronix_MX25R() argument
18 : base(underlyingMemory, manufacturerId: ManufacturerId, memoryType: MemoryType, in Macronix_MX25R()
44 var currentVal = underlyingMemory.ReadByte(position); in WriteToMemory()
45 underlyingMemory.WriteByte(position, (byte)(val & currentVal)); in WriteToMemory()
DGenericSpiFlash.cs22 public GenericSpiFlash(MappedMemory underlyingMemory, byte manufacturerId, byte memoryType, in GenericSpiFlash() argument
28 if(!Misc.IsPowerOfTwo((ulong)underlyingMemory.Size)) in GenericSpiFlash()
54 this.underlyingMemory = underlyingMemory; in GenericSpiFlash()
55 underlyingMemory.ResetByte = EmptySegment; in GenericSpiFlash()
144 public MappedMemory UnderlyingMemory => underlyingMemory;
152 underlyingMemory.WriteByte(position, val); in WriteToMemory()
158 if(position > underlyingMemory.Size) in TryVerifyWriteToMemory()
185 if(underlyingMemory.Size <= 32.MB()) in GetCapacityCode()
187 … capacityCode = (byte)BitHelper.GetMostSignificantSetBitIndex((ulong)underlyingMemory.Size); in GetCapacityCode()
191 …pacityCode = (byte)((BitHelper.GetMostSignificantSetBitIndex((ulong)underlyingMemory.Size) - 26) +… in GetCapacityCode()
[all …]
DGigaDevice_GD25LQ.cs18 public GigaDevice_GD25LQ(MappedMemory underlyingMemory) in GigaDevice_GD25LQ() argument
44 this.underlyingMemory = underlyingMemory; in GigaDevice_GD25LQ()
213 private readonly MappedMemory underlyingMemory; field in Antmicro.Renode.Peripherals.SPI.GigaDevice_GD25LQ
DOpenTitan_SpiDevice.cs711 public SRAMCircularFifoRange(uint baseOffset, uint limit, ArrayMemory underlyingMemory) in SRAMCircularFifoRange() argument
713 this.underlyingMemory = underlyingMemory; in SRAMCircularFifoRange()
723 var baseOffsetInvalid = baseOffset >= (underlyingMemory.Size * 8); in TryUpdateParameters()
724 var limitOffsetInvalid = limitOffset >= (underlyingMemory.Size * 8); in TryUpdateParameters()
759 underlyingMemory.WriteByte(baseOffset + writePointer, data); in WriteByte()
776 value = underlyingMemory.ReadByte(baseOffset + readPointer); in ReadByte()
878 private readonly ArrayMemory underlyingMemory; field in Antmicro.Renode.Peripherals.SPI.OpenTitan_SpiDevice.SRAMCircularFifoRange
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/MTD/
DAMDCFIFlash.cs26 public AMDCFIFlash(IMachine machine, MappedMemory underlyingMemory, int interleave = 4, in AMDCFIFlash() argument
33 readMemoryWord = underlyingMemory.ReadWordBigEndian; in AMDCFIFlash()
34 readMemoryDoubleWord = underlyingMemory.ReadDoubleWordBigEndian; in AMDCFIFlash()
35 writeMemoryWord = underlyingMemory.WriteWordBigEndian; in AMDCFIFlash()
36 writeMemoryDoubleWord = underlyingMemory.WriteDoubleWordBigEndian; in AMDCFIFlash()
40 readMemoryWord = underlyingMemory.ReadWordBigEndian; in AMDCFIFlash()
41 readMemoryDoubleWord = underlyingMemory.ReadDoubleWordBigEndian; in AMDCFIFlash()
42 writeMemoryWord = underlyingMemory.WriteWordBigEndian; in AMDCFIFlash()
43 writeMemoryDoubleWord = underlyingMemory.WriteDoubleWordBigEndian; in AMDCFIFlash()
45 this.underlyingMemory = underlyingMemory; in AMDCFIFlash()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/MSP430X/
DMSP430X.cs1369 var underlyingMemory = keyValue.Value; in TryPerformDirectWrite()
1375 underlyingMemory.WriteByte((long)address, (byte)value); in TryPerformDirectWrite()
1379 underlyingMemory.WriteWord((long)address, (ushort)value); in TryPerformDirectWrite()
1383underlyingMemory.WriteDoubleWord((long)address, value & GetAccessWidthMask(accessWidth)); in TryPerformDirectWrite()
1435 var underlyingMemory = keyValue.Value; in TryPerfrormDirectRead()
1441 value = underlyingMemory.ReadByte((long)address); in TryPerfrormDirectRead()
1445 value = underlyingMemory.ReadWord((long)address); in TryPerfrormDirectRead()
1449 value = underlyingMemory.ReadDoubleWord((long)address); in TryPerfrormDirectRead()