Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 40) sorted by relevance

12

/Renode-v1.15.3-c57714d/src/Plugins/CoSimulationPlugin/CoSimulated/Peripherals/
DCoSimulatedPeripheral.cs101 public byte ReadByte(long offset) in ReadByte() argument
103 offset = UseAbsoluteAddress ? (long)absoluteAddress : offset; in ReadByte()
104 if(!VerifyLength(8, offset)) in ReadByte()
108 return (byte)connection.Read(this, ActionType.ReadFromBusByte, offset); in ReadByte()
111 public ushort ReadWord(long offset) in ReadWord() argument
113 offset = UseAbsoluteAddress ? (long)absoluteAddress : offset; in ReadWord()
114 if(!VerifyLength(16, offset)) in ReadWord()
118 return (ushort)connection.Read(this, ActionType.ReadFromBusWord, offset); in ReadWord()
121 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument
123 offset = UseAbsoluteAddress ? (long)absoluteAddress : offset; in ReadDoubleWord()
[all …]
/Renode-v1.15.3-c57714d/src/Plugins/SystemCPlugin/Peripheral/
DSystemCCPU.cs56 public ulong ReadQuadWord(long offset) in ReadQuadWord() argument
58 return systemCPeripheral.ReadQuadWord(offset); in ReadQuadWord()
61 public void WriteQuadWord(long offset, ulong value) in WriteQuadWord() argument
63 systemCPeripheral.WriteQuadWord(offset, value); in WriteQuadWord()
66 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument
68 return systemCPeripheral.ReadDoubleWord(offset); in ReadDoubleWord()
71 public void WriteDoubleWord(long offset, uint value) in WriteDoubleWord() argument
73 systemCPeripheral.WriteDoubleWord(offset, value); in WriteDoubleWord()
76 public ushort ReadWord(long offset) in ReadWord() argument
78 return systemCPeripheral.ReadWord(offset); in ReadWord()
[all …]
DSystemCPeripheral.cs205 ulong ReadDirect(byte dataLength, long offset, byte connectionIndex); in ReadDirect() argument
206 void WriteDirect(byte dataLength, long offset, ulong value, byte connectionIndex); in WriteDirect() argument
278 public ulong ReadQuadWord(long offset) in ReadQuadWord() argument
280 return Read(8, offset); in ReadQuadWord()
283 public void WriteQuadWord(long offset, ulong value) in WriteQuadWord() argument
285 Write(8, offset, value); in WriteQuadWord()
288 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument
290 return (uint)Read(4, offset); in ReadDoubleWord()
293 public void WriteDoubleWord(long offset, uint value) in WriteDoubleWord() argument
295 Write(4, offset, value); in WriteDoubleWord()
[all …]
/Renode-v1.15.3-c57714d/tools/PeakRDL-renode/tests/
DSystemRDLGenTest.cs309 private void TestFieldModeRead(IRegisterField<ulong> field, ulong offset, int low) in TestFieldModeRead() argument
316 var read = peripheral.ReadDoubleWord((long)offset); in TestFieldModeRead()
318 …read = peripheral.ReadDoubleWord((long)offset); // Another check to ensure that the value was not … in TestFieldModeRead()
323 private void TestFieldModeRead(IRegisterField<bool> field, ulong offset, int low) in TestFieldModeRead() argument
326 var read = peripheral.ReadDoubleWord((long)offset); in TestFieldModeRead()
328 read = peripheral.ReadDoubleWord((long)offset); in TestFieldModeRead()
332 read = peripheral.ReadDoubleWord((long)offset); in TestFieldModeRead()
334 read = peripheral.ReadDoubleWord((long)offset); in TestFieldModeRead()
338 private void TestFieldModeReadToClear(IRegisterField<ulong> field, ulong offset) in TestFieldModeReadToClear() argument
341 peripheral.ReadDoubleWord((long)offset); in TestFieldModeReadToClear()
[all …]
/Renode-v1.15.3-c57714d/platforms/cpus/
Dstarfive-jh7100.repl52 offset = (request.offset//4) & 0x7
53 if offset & 4 == 0:
54 request.value = regs[offset & 0x3] & 0xffffffff
56 request.value = (regs[offset & 0x3] ^ mask[offset & 0x3]) & 0xffffffff
58 offset = (request.offset//4) & 0x3
59 regs[offset] = request.value
69 offset = request.offset//4
70 if offset == 0:
85 offset = request.offset//4
86 if offset == 0:
Dstm32g0.repl201 self.NoisyLog("%s on FLIPFLOP at offset 0x%x, value 0x%x, length %d, %s" % (str(request.type), requ…
204 if request.offset == 0x0:
209 elif request.offset == 0x8:
212 elif request.offset == 0x60:
216 if request.offset == 0x0:
224 elif request.offset == 0x4:
226 elif request.offset == 0x24:
228 elif request.offset == 0x60:
Dstm32f0.repl181 if request.offset == 0x0:
183 elif request.offset == 0x4:
185 elif request.offset == 0x24:
190 self.NoisyLog("%s on FLIPFLOP at 0x%x, value 0x%x" % (str(request.type), request.offset, request.va…
196 if request.isWrite and request.offset in (0x10, 0x24, 0x38):
/Renode-v1.15.3-c57714d/src/Renode/Network/ExternalControl/
DIInstanceBasedCommand.cs76 …public static bool TryGetName(Command command, List<byte> data, int offset, out string name, out R… in TryGetName() argument
81 if(!TryDecodeNameLength(command, data, offset, out var length, out response)) in TryGetName()
86 … return TryDecodeName(command, data, offset + NameLengthSize, length, out name, out response); in TryGetName()
110 …private static bool TryDecodeNameLength(Command command, List<byte> data, int offset, out int leng… in TryDecodeNameLength() argument
114 if(data.Count < offset + NameLengthSize) in TryDecodeNameLength()
121 length = BitConverter.ToInt32(data.GetRange(offset, NameLengthSize).ToArray(), 0); in TryDecodeNameLength()
132 …private static bool TryDecodeName(Command command, List<byte> data, int offset, int length, out st… in TryDecodeName() argument
137 if(data.Count != offset + length) in TryDecodeName()
145 name = Encoding.UTF8.GetString(data.GetRange(offset, length).ToArray()); in TryDecodeName()
/Renode-v1.15.3-c57714d/scripts/pydev/
Dticker.py8 if request.offset == INIT_VALUE:
10 elif request.offset == STEP:
16 self.NoisyLog("%s on TICKER at 0x%x, value 0x%x" % (str(request.type), request.offset, request.valu…
Dflipflop.py7 self.NoisyLog("%s on FLIPFLOP at 0x%x, value 0x%x" % (str(request.type), request.offset, request.va…
Dcounter.py7 self.NoisyLog("%s on COUNTER at 0x%x, value 0x%x" % (str(request.type), request.offset, request.val…
Drolling-bit.py10 self.NoisyLog("%s on ROLLING_BIT at 0x%x, value 0x%x" % (str(request.type), request.offset, request…
Drepeater.py8 self.NoisyLog("%s on REPEATER at 0x%x, value 0x%x" % (str(request.type), request.offset, request.va…
/Renode-v1.15.3-c57714d/src/Plugins/WiresharkPlugin/
DWiresharkSender.cs156 private bool SendToWireshark(byte[] buffer, int offset, int lenght) in SendToWireshark() argument
158 return SendToWireshark(buffer, offset, lenght, CustomDateTime.Now); in SendToWireshark()
161 private bool SendToWireshark(byte[] buffer, int offset, int lenght, DateTime date) in SendToWireshark() argument
169 return SendToWireshark(buffer, offset, lenght, seconds, microseconds); in SendToWireshark()
172 …private bool SendToWireshark(byte[] buffer, int offset, int lenght, uint seconds, uint microsecond… in SendToWireshark() argument
188 wiresharkPipe.Write(buffer, offset, lenght); in SendToWireshark()
DBLESniffer.cs127 private void FillRestOfData(byte[] src, byte[] dest, int offset) in FillRestOfData() argument
131 dest[i + offset] = src[i]; in FillRestOfData()
/Renode-v1.15.3-c57714d/tests/unit-tests/
DTrivialPeripheral.cs22 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument
27 public void WriteDoubleWord(long offset, uint value) in WriteDoubleWord() argument
/Renode-v1.15.3-c57714d/tests/platforms/systemc/test-synchronization/
DExecuteInLockPeripheral.cs19 public byte ReadByte(long offset) in ReadByte() argument
24 public void WriteByte(long offset, byte value) in WriteByte() argument
/Renode-v1.15.3-c57714d/tools/PeakRDL-renode/
DREADME.md156 public uint ReadDoubleWord(long offset)
161 public void WriteDoubleWord(long offset, uint value)
212 uint IDoubleWordPeripheral.ReadDoubleWord(long offset)
214 if(offset >= 16 && offset < 16L + Mem1.Size)
216 return Mem1.ReadDoubleWord(offset - 16);
218 return RegistersCollection.Read(offset);
221 void IDoubleWordPeripheral.WriteDoubleWord(long offset, uint value)
223 if(offset >= 16 && offset < 16L + Mem1.Size)
225 Mem1.WriteDoubleWord(offset - 16, value);
228 RegistersCollection.Write(offset, value);
/Renode-v1.15.3-c57714d/scripts/single-node/bus-isolation/
DSampleStateAwarePeripheral.cs28 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument
42 public void WriteDoubleWord(long offset, uint value) in WriteDoubleWord() argument
/Renode-v1.15.3-c57714d/src/Plugins/CoSimulationPlugin/Connection/
DCoSimulationConnection.cs217 …public void Send(ICoSimulationConnectible connectible, ActionType actionId, ulong offset, ulong va… in Send() argument
220 var message = new ProtocolMessage(actionId, offset, value, renodeToCosimIndex); in Send()
227 public void Respond(ActionType actionId, ulong offset, ulong value, int peripheralIdx) in Respond() argument
229 … if(!cosimConnection.TryRespond(new ProtocolMessage(actionId, offset, value, peripheralIdx))) in Respond()
275 … public void Write(ICoSimulationConnectible connectible, ActionType type, long offset, ulong value) in Write() argument
282 Send(connectible, type, (ulong)offset, value); in Write()
286 public ulong Read(ICoSimulationConnectible connectible, ActionType type, long offset) in Read() argument
293 Send(connectible, type, (ulong)offset, 0); in Read()
/Renode-v1.15.3-c57714d/scripts/
Dmonitor.py25 def mc_next_value(offset = 0): argument
26 print "%d" % (mc_next_value.current_value + offset)
/Renode-v1.15.3-c57714d/tests/peripherals/CLIC/
DCLIC-test-setup.resc58 signature_idx = offset/4
69 …e signature 0x{:08X} at address {:08X}".format(signature_idx, value, ref_sig, start_addr + offset))
/Renode-v1.15.3-c57714d/tests/platforms/
DARMv8R.robot166 ${offset}= Convert To Integer 0x4
168 ${offset}= Convert To Integer 0x8
170 ${offset}= Convert To Integer 0xc
172 ${offset}= Convert To Integer 0x10
174 ${offset}= Convert To Integer 0x14
176 ${offset}= Convert To Integer 0x18
178 ${offset}= Convert To Integer 0x1c
182 RETURN ${offset}
187 ${offset}= Convert To Integer 0x4
189 ${offset}= Convert To Integer 0x8
[all …]
DRenesas_RZ_G2L.robot166 ... str r1, [r0, #0xC] # N1SA register offset
167 ... str r2, [r0, #0x10] # N1DA register offset
168 ... str r3, [r0, #0x14] # N1TB register offset
169 ... str r4, [r0, #0x2C] # CHCFG register offset
170 ... str r5, [r0, #0x28] # CHCTRL register offset
171 ... str r6, [r0, #0x28] # CHCTRL register offset
/Renode-v1.15.3-c57714d/tests/peripherals/
DMC3635.robot77 …Wait For Log Entry Invalid value written to offset 0x20 reserved bits. Allowed values = 0b0…
79 …Wait For Log Entry Invalid value written to offset 0x21 reserved bits. Allowed values = 0b1…
81 …Wait For Log Entry Invalid value written to offset 0x22 reserved bits. Allowed values = 0b0…

12