Home
last modified time | relevance | path

Searched refs:GetValue (Results 1 – 25 of 73) sorted by relevance

123

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/RiscV/
DAndes_AndeStarV5Extension.cs63 var rd = (int)BitHelper.GetValue(opcode, 7, 5); in ReadFromMemoryToRegister()
100 var rs2 = (int)BitHelper.GetValue(opcode, 20, 5); in WriteRegisterToMemory()
125 var rd = (int)BitHelper.GetValue(opcode, 7, 5); in HandleADDIGP()
134 return LoadExtractorWord(opcode) | BitHelper.GetValue(opcode, 14, 1); in LoadExtractorByte()
139 return StoreExtractorWord(opcode) | BitHelper.GetValue(opcode, 14, 1); in StoreExtractorByte()
144 return BitHelper.GetValue(opcode, 21, 10) << 1 | in LoadExtractorWord()
145 BitHelper.GetValue(opcode, 20, 1) << 11 | in LoadExtractorWord()
146 BitHelper.GetValue(opcode, 17, 3) << 12 | in LoadExtractorWord()
147 BitHelper.GetValue(opcode, 15, 2) << 15 | in LoadExtractorWord()
148 BitHelper.GetValue(opcode, 31, 1) << 17; in LoadExtractorWord()
[all …]
DCV32E40P.cs117 var rD = (int)BitHelper.GetValue(opcode, 7, 5); in MultiplyAccumulate()
118 var rs1 = (int)BitHelper.GetValue(opcode, 15, 5); in MultiplyAccumulate()
119 var rs2 = (int)BitHelper.GetValue(opcode, 20, 5); in MultiplyAccumulate()
138 var imm = (int)BitHelper.SignExtend((uint)BitHelper.GetValue(opcode, 20, 12), 12); in LoadRegisterImmediate()
139 var rD = (int)BitHelper.GetValue(opcode, 7, 5); in LoadRegisterImmediate()
140 var rs1 = (int)BitHelper.GetValue(opcode, 15, 5); in LoadRegisterImmediate()
154 var rD = (int)BitHelper.GetValue(opcode, 7, 5); in LoadRegisterRegister()
155 var rs1 = (int)BitHelper.GetValue(opcode, 15, 5); in LoadRegisterRegister()
157 var rs2 = (int)BitHelper.GetValue(opcode, 20, 5); in LoadRegisterRegister()
171 … imm = (int)BitHelper.SignExtend((uint)((BitHelper.GetValue(opcode, 25, 7) << 5) | BitHelper.GetVa… in StoreRegisterImmediate()
[all …]
DOpenTitan_BigNumberAcceleratorCore.cs432 var grs = (int)BitHelper.GetValue(opcode, 15, 5); in LoopHandler()
434 var bodySize = (uint)BitHelper.GetValue(opcode, 20, 12) + 1; in LoopHandler()
443 var iterations1 = (uint)BitHelper.GetValue(opcode, 15, 5); in LoopiHandler()
444 var iterations0 = (uint)BitHelper.GetValue(opcode, 7, 5); in LoopiHandler()
447 var bodySize = (uint)BitHelper.GetValue(opcode, 20, 12) + 1; in LoopiHandler()
490 var wsr = (int)BitHelper.GetValue(opcode, 20, 8); in WsrWriteReadHandler()
491 var wrd = (int)BitHelper.GetValue(opcode, 7, 5); in WsrWriteReadHandler()
492 var wrs = (int)BitHelper.GetValue(opcode, 15, 5); in WsrWriteReadHandler()
538 var shift = (int)BitHelper.GetValue(opcode, 13, 2) << 6; in BnMulQAccHandler()
539 var rs1QuarterWord = (int)BitHelper.GetValue(opcode, 25, 2); in BnMulQAccHandler()
[all …]
DPicoRV32.cs182 var rd = (int)BitHelper.GetValue(opcode, 7, 5); in HandleGetqInstruction()
183 var qs = (int)BitHelper.GetValue(opcode, 15, 2); in HandleGetqInstruction()
195 var qd = (int)BitHelper.GetValue(opcode, 7, 2); in HandleSetqInstruction()
196 var rs = (int)BitHelper.GetValue(opcode, 15, 5); in HandleSetqInstruction()
224 var rd = (int)BitHelper.GetValue(opcode, 7, 5); in HandleMaskirqInstruction()
225 var rs = (int)BitHelper.GetValue(opcode, 15, 5); in HandleMaskirqInstruction()
254 var rd = (int)BitHelper.GetValue(opcode, 7, 5); in HandleTimerInstruction()
255 var rs = (int)BitHelper.GetValue(opcode, 15, 5); in HandleTimerInstruction()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Bus/
DGaislerAHBPlugAndPlayRecord.cs33 Array.Copy( BitConverter.GetBytes(IdentificationRegister.GetValue()),0,arr,0,4); in ToByteArray()
41 … Array.Copy( BitConverter.GetBytes(BankAddressRegister[i].GetValue()), 0, arr, (16 + 4*i), 4); in ToByteArray()
51 arr[0] = IdentificationRegister.GetValue(); in ToUintArray()
58 arr[i+4] = BankAddressRegister[i].GetValue(); in ToUintArray()
70 public uint GetValue() in GetValue() method in Antmicro.Renode.Peripherals.Bus.GaislerAHBPlugAndPlayRecord.IdReg
85 public uint GetValue() in GetValue() method in Antmicro.Renode.Peripherals.Bus.GaislerAHBPlugAndPlayRecord.Bar
DGaislerAPBPlugAndPlayRecord.cs29 public uint GetValue() in GetValue() method in Antmicro.Renode.Peripherals.Bus.GaislerAPBPlugAndPlayRecord.IdReg
43 public uint GetValue() in GetValue() method in Antmicro.Renode.Peripherals.Bus.GaislerAPBPlugAndPlayRecord.Bar
57 arr[0] = ConfigurationWord.GetValue(); in ToUintArray()
58 arr[1] = BankAddressRegister.GetValue(); in ToUintArray()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Timers/
DSAMD21_RTC.cs135 valueProviderCallback: _ => BitHelper.GetValue(clock.minutes, 0, 2), in DefineRegisters()
141 valueProviderCallback: _ => BitHelper.GetValue(clock.minutes, 2, 4), in DefineRegisters()
144 valueProviderCallback: _ => BitHelper.GetValue(clock.hours, 0, 2), in DefineRegisters()
150 valueProviderCallback: _ => BitHelper.GetValue(clock.hours, 4, 1), in DefineRegisters()
156 valueProviderCallback: _ => BitHelper.GetValue(clock.month, 0, 2), in DefineRegisters()
162 valueProviderCallback: _ => BitHelper.GetValue(clock.month, 2, 2), in DefineRegisters()
174 valueProviderCallback: _ => BitHelper.GetValue(alarm.minutes, 0, 2), in DefineRegisters()
180 valueProviderCallback: _ => BitHelper.GetValue(alarm.minutes, 2, 4), in DefineRegisters()
183 valueProviderCallback: _ => BitHelper.GetValue(alarm.hours, 0, 2), in DefineRegisters()
189 valueProviderCallback: _ => BitHelper.GetValue(alarm.hours, 4, 1), in DefineRegisters()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/Packets/
DPacket.cs223 v = BitHelper.GetValue(v, 0, field.BitWidth ?? 32); in TryDecode()
241 v = (ushort)BitHelper.GetValue(v, 0, field.BitWidth ?? 16); in TryDecode()
254 v = BitHelper.GetValue(v, 0, field.BitWidth ?? 8); in TryDecode()
271 v = BitHelper.GetValue(v, 0, field.BitWidth ?? 64); in TryDecode()
327 var val = (byte[])field.GetValue(packet); in EncodeInner()
350 var v = (int)field.GetValue(packet); in EncodeInner()
355 var v = (uint)field.GetValue(packet); in EncodeInner()
360 var v = (short)field.GetValue(packet); in EncodeInner()
365 var v = (ushort)field.GetValue(packet); in EncodeInner()
370 intermediate = (byte)field.GetValue(packet); in EncodeInner()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SPI/Cadence_xSPICommands/
DSTIGCommands.cs37 ChipSelect = BitHelper.GetValue(payload[4], 12, 3); in STIGCommand()
51 return (CommandType)BitHelper.GetValue(payload[1], 0, 7); in DecodeCommandType()
67 operationCode = BitHelper.GetValue(payload[3], 16, 8); in SendOperationCommand()
69 addressValidBytes = (int)BitHelper.GetValue(payload[3], 28, 3); in SendOperationCommand()
107 …DMADirection = BitHelper.GetValue(payload[4], 4, 1) == 0 ? TransmissionDirection.Read : Transmissi… in DataSequenceCommand()
110 var dummyBitsCount = BitHelper.GetValue(payload[3], 20, 6); in DataSequenceCommand()
DAutoCommand.cs31 ChipSelect = BitHelper.GetValue(payload[0], 20, 3); in AutoCommand()
45 return (CommandMode)BitHelper.GetValue(payload[0], 30, 2); in DecodeCommandMode()
DPIOCommands.cs21 var intBit = BitHelper.GetValue(payload[0], 18, 1); in CreatePIOCommand()
37 var dmaRole = (DMARoleType)BitHelper.GetValue(payload[0], 19, 1); in CreatePIOCommand()
80 return (CommandType)BitHelper.GetValue(payload[0], 0, 16); in DecodeCommandType()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Wireless/IEEE802_15_4/
DAddressInformation.cs19 DestinationPan = GetValue(data, 0); in AddressInformation()
32 SourcePan = GetValue(data, internalOffset); in AddressInformation()
48 private static uint GetValue(IList<byte> data, int offset) in GetValue() method in Antmicro.Renode.Peripherals.Wireless.IEEE802_15_4.AddressInformation
DAddress.cs71 public ulong GetValue() in GetValue() method in Antmicro.Renode.Peripherals.Wireless.IEEE802_15_4.Address
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SPI/
DNPCX_FIU.cs58 … valueProviderCallback: _ => (byte)BitHelper.GetValue(userModeAccessAddress, i * 8, 8), in DefineRegisters()
66 … valueProviderCallback: _ => (byte)BitHelper.GetValue(userModeAccessData, i * 8, 8), in DefineRegisters()
137 … valueProviderCallback: _ => (byte)BitHelper.GetValue(userModeAccessData, i * 8, 8)); in DefineRegisters()
144 … valueProviderCallback: _ => (byte)BitHelper.GetValue(userModeAccessAddress, i * 8, 8), in DefineRegisters()
174 … RegisteredPeripheral.Transmit((byte)BitHelper.GetValue(userModeAccessAddress, i * 8, 8)); in PerformUserModeAccessTransaction()
179 … var value = RegisteredPeripheral.Transmit((byte)BitHelper.GetValue(userModeAccessData, i * 8, 8)); in PerformUserModeAccessTransaction()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CAN/
DSTMCAN.cs276 CANMessage TxMsg = new CANMessage(registers.CAN_TI0R.GetValue(), in WriteDoubleWord()
304 CANMessage TxMsg = new CANMessage(registers.CAN_TI1R.GetValue(), in WriteDoubleWord()
332 CANMessage TxMsg = new CANMessage(registers.CAN_TI2R.GetValue(), in WriteDoubleWord()
634 Retval = registers.CAN_MCR.GetValue(); in ReadDoubleWord()
637 Retval = registers.CAN_MSR.GetValue(); in ReadDoubleWord()
640 Retval = registers.CAN_TSR.GetValue(); in ReadDoubleWord()
643 Retval = registers.CAN_RFR[RxFifo0].GetValue(); in ReadDoubleWord()
646 Retval = registers.CAN_RFR[RxFifo1].GetValue(); in ReadDoubleWord()
649 Retval = registers.CAN_IER.GetValue(); in ReadDoubleWord()
652 Retval = registers.CAN_ESR.GetValue(); in ReadDoubleWord()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Sensors/
DAK0991x.cs222 … (byte)BitHelper.GetValue((uint)(MagneticFluxDensityX / SensorSensitivity), 0, 8)); in DefineRegisters()
227 … (byte)BitHelper.GetValue((uint)(MagneticFluxDensityX / SensorSensitivity), 8, 8)); in DefineRegisters()
232 … (byte)BitHelper.GetValue((uint)(MagneticFluxDensityY / SensorSensitivity), 0, 8)); in DefineRegisters()
237 … (byte)BitHelper.GetValue((uint)(MagneticFluxDensityY / SensorSensitivity), 8, 8)); in DefineRegisters()
242 … (byte)BitHelper.GetValue((uint)(MagneticFluxDensityZ / SensorSensitivity), 0, 8)); in DefineRegisters()
247 … (byte)BitHelper.GetValue((uint)(MagneticFluxDensityZ / SensorSensitivity), 8, 8)); in DefineRegisters()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SD/
DLiteSDCard.cs122 … valueProviderCallback: _ => BitHelper.GetValue(argumentValue, offset: 24 - idx * 8, size: 8)) in DefineRegisters()
241 … valueProviderCallback: _ => BitHelper.GetValue(blockSize, offset: 8 - idx * 8, size: 8)) in DefineRegisters()
250 … valueProviderCallback: _ => BitHelper.GetValue(blockCount, offset: 24 - idx * 8, size: 8)) in DefineRegisters()
259 …valueProviderCallback: _ => (byte)BitHelper.GetValue(readerAddress, offset: 56 - idx * 8, size: 8)) in DefineRegisters()
268 … valueProviderCallback: _ => BitHelper.GetValue(readerLength, offset: 24 - idx * 8, size: 8)) in DefineRegisters()
289 …valueProviderCallback: _ => (byte)BitHelper.GetValue(writerAddress, offset: 56 - idx * 8, size: 8)) in DefineRegisters()
298 … valueProviderCallback: _ => BitHelper.GetValue(writerLength, offset: 24 - idx * 8, size: 8)) in DefineRegisters()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/PCI/
DMPFS_PCIe.cs264 …valueProviderCallback: _ => (uint)BitHelper.GetValue(table.SourceAddress, 12, 20), name: "SRC_ADDR… in CreateAddressTranslationRegisters()
268 …valueProviderCallback: _ => (uint)BitHelper.GetValue(table.SourceAddress, 32, 32), name: "SRC_ADDR… in CreateAddressTranslationRegisters()
273 …valueProviderCallback: _ => (uint)BitHelper.GetValue(table.DestinationAddress, 12, 20), name: "TRS… in CreateAddressTranslationRegisters()
277 …valueProviderCallback: _ => (uint)BitHelper.GetValue(table.SourceAddress, 32, 32), name: "TRSL_ADD… in CreateAddressTranslationRegisters()
287 ….WithValueField(0, 32, valueProviderCallback: _ => (uint)BitHelper.GetValue(table.TranslationMask,… in CreateAddressTranslationRegisters()
290 ….WithValueField(0, 32, valueProviderCallback: _ => (uint)BitHelper.GetValue(table .TranslationMask… in CreateAddressTranslationRegisters()
334 Bus = (int)BitHelper.GetValue(address, 20, 8); in EcamAddress()
335 Device = (int)BitHelper.GetValue(address, 15, 5); in EcamAddress()
336 Function = (int)BitHelper.GetValue(address, 12, 3); in EcamAddress()
337 Offset = BitHelper.GetValue(address, 0, 12); in EcamAddress()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/HostInterfaces/Network/
DWindowsTapInterface.cs129 var adapterType = (string)adapter.GetValue("ComponentId", ""); in GetDeviceGuid()
134 string connectionGuid = (string)adapter.GetValue("NetCfgInstanceId"); in GetDeviceGuid()
137 if((string)connection.GetValue("Name") == name) in GetDeviceGuid()
156 … var tapctlPath = (string)Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN", "", ""); in Init()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/Arm/
DArm.cs576 Opc1 = BitHelper.GetValue(instruction, Opc1Offset, Opc1Size); in Coprocessor32BitMoveInstruction()
577 CRn = BitHelper.GetValue(instruction, CRnOffset, CRnSize); in Coprocessor32BitMoveInstruction()
578 Opc2 = BitHelper.GetValue(instruction, Opc2Offset, Opc2Size); in Coprocessor32BitMoveInstruction()
579 CRm = BitHelper.GetValue(instruction, CRmOffset, CRmSize); in Coprocessor32BitMoveInstruction()
631 Opc1 = BitHelper.GetValue(instruction, Opc1Offset, Opc1Size); in Coprocessor64BitMoveInstruction()
632 CRm = BitHelper.GetValue(instruction, CRmOffset, CRmSize); in Coprocessor64BitMoveInstruction()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/DMA/
DNPCX_MDMA.cs143 … valueProviderCallback: _ => BitHelper.GetValue(context.DestinationAddress, 0, 20), in DefineChannel0Registers()
146 … valueProviderCallback: _ => BitHelper.GetValue(context.DestinationAddress, 20, 12)); in DefineChannel0Registers()
161 valueProviderCallback: _ => BitHelper.GetValue(context.SourceAddress, 0, 20), in DefineChannel1Registers()
164 valueProviderCallback: _ => BitHelper.GetValue(context.SourceAddress, 20, 12)); in DefineChannel1Registers()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Bus/
DISymbolEntryExtensions.cs14 public static ulong GetValue(this ISymbolEntry @this) in GetValue() method in Antmicro.Renode.Peripherals.Bus.ISymbolEntryExtensions
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Network/
DSynopsysEthernetMAC.cs506 return (int)BitHelper.GetValue(word1, 0, 10);
508 return (int)BitHelper.GetValue(word1, 0, 13);
523 return (int)BitHelper.GetValue(word1, 11, 10);
525 return (int)BitHelper.GetValue(word1, 16, 13);
557 return BitHelper.GetValue(word1, 27, 2);
559 return BitHelper.GetValue(word0, 22, 2);
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/DMA/PL330_DMA/
DPL330_DMA.cs569 SourceIncrementingAddress = BitHelper.GetValue(value, 0, 1) == 1;
570 SourceReadSize = 1 << (int)BitHelper.GetValue(value, 1, 3);
571 SourceBurstLength = (int)BitHelper.GetValue(value, 4, 4) + 1;
573 DestinationIncrementingAddress = BitHelper.GetValue(value, 14, 1) == 1;
574 DestinationWriteSize = 1 << (int)BitHelper.GetValue(value, 15, 3);
575 DestinationBurstLength = (int)BitHelper.GetValue(value, 18, 4) + 1;
577 EndianSwapSize = 1 << (int)BitHelper.GetValue(value, 28, 3);
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/GPIOPort/
DSTM32_GPIOPort.cs58 ChangeMode(i, (Mode)BitHelper.GetValue(modeResetValue, 2 * i, 2)); in Reset()
59 outputSpeed[i] = (OutputSpeed)BitHelper.GetValue(outputSpeedResetValue, 2 * i, 2); in Reset()
60 … pullUpPullDown[i] = (PullUpPullDown)BitHelper.GetValue(pullUpPullDownResetValue, 2 * i, 2); in Reset()

123