Register Map Components
- 更新时间2025-10-09
- 阅读时长4分钟
Refer to the following information to successfully execute a register map in Digital Pattern Editor.
Read Pattern
The read pattern must be designed to read register values from the DUT. In most protocols this involves sending the register address and other bits like command bits and parity bits to the DUT, and receiving the register values and other bits from the DUT. To achieve this, the read pattern sources bits to send from a source waveform and captures bits received in a capture waveform.
Digital Pattern Editor packs the source waveform and parses the capture waveform based on the SourceWaveformRegisterPacket and CaptureWaveformRegisterPacket elements specified in the register map file ReadTemplate. If you do not specify a SourceWaveformRegisterPacket element, Digital Pattern Editor packs register addresses contiguously in chunks of length defined by addressBitWidth.
- reg0-- number of registers to read.
- reg1-- register address bit width. The addressBitWidth attribute in the register map file defines this value.
- reg2-- register value bit width. The valueBitWidth attribute in the register map file defines this value.
- reg3-- number of bits sent to the DUT to read one register. The SourceWaveformRegisterPacket element specified in the register map file ReadTemplate defines this value. If you do not specify this element, this is equal to the addressBitWidth attribute.
- reg4-- number of bits received from the DUT to read one register. The CaptureWaveformRegisterPacket element specified in the register map file ReadTemplate defines this value. If you do not specify a this element, this is equal to the valueBitWidth attribute.
The read pattern uses these pattern sequencer registers to iteratively send bits from the source waveform and receive bits in the capture waveform. On completion of the read pattern execution, Digital Pattern Editor parses the received register values from the capture waveform and updates affected fields in the register map document with new values.
Write Pattern
You must design the write pattern to write register values to the DUT. In most protocols, this involves sending the register address, register value, and other bits like command bits and parity bits to the DUT. To achieve this, the write pattern sources the bits to send from a source waveform.
Digital Pattern Editor packs the source waveform based on the SourceWaveformRegisterPacket element specified in the register map file WriteTemplate. If you do not specify a SourceWaveformRegisterPacket element, Digital Pattern Editor registers addresses and values contiguously in chunks of length defined by the sum of addressBitWidth and valueBitWidth.
- reg0-- number of registers to read.
- reg1-- register address bit width. The addressBitWidth attribute in the register map file defines this value.
- reg2-- register value bit width. The valueBitWidth attribute in the register map file defines this value.
- reg3-- number of bits sent to the DUT to write to one register. The SourceWaveformRegisterPacket element specified in the register map file WriteTemplate defines this value. If you do not specify this element, this is equal to the sum of the addressBitWidth and valueBitWidth attributes.
The write pattern iteratively sources bits from the source waveform using the above pattern sequencer registers and sends them to the DUT.
Source Waveform
You must configure source waveforms with a sample width and sample count large enough to read all the registers in the register map. They must have a capacity equal to or greater than the product of the register count and the number of bits required to read or write one register.
For read patterns, this is specified by the SourceWaveformRegisterPacket element in the register map file ReadTemplate (or addressBitWidth, if SourceWaveformRegisterPacket is not specified). For write patterns, this is specified by the SourceWaveformRegisterPacket in the register map file WriteTemplate (or the sum of addressBitWidth and valueBitWidth, if SourceWaveformRegisterPacket is not specified).
Capture Waveform
The read pattern stores received register value bits and other bits like parity bits in the capture waveform. You must configure the read pattern to capture and store the expected number of bits. This is the number of registers to read and the number of bits to be received per register determined by the CaptureWaveformRegisterPacket element in the register map file ReadTemplate (or valueBitWidth if CaptureWaveformRegisterPacket is not specified).
相关内容
- Using a Register Map
Use a register map to view and modify DUT register values.