WO2023082954A1 - Ddr access method and apparatus, electronic device, and system - Google Patents

Ddr access method and apparatus, electronic device, and system Download PDF

Info

Publication number
WO2023082954A1
WO2023082954A1 PCT/CN2022/125942 CN2022125942W WO2023082954A1 WO 2023082954 A1 WO2023082954 A1 WO 2023082954A1 CN 2022125942 W CN2022125942 W CN 2022125942W WO 2023082954 A1 WO2023082954 A1 WO 2023082954A1
Authority
WO
WIPO (PCT)
Prior art keywords
ddr
time slot
block
data
throughput rate
Prior art date
Application number
PCT/CN2022/125942
Other languages
French (fr)
Chinese (zh)
Inventor
熊晓竹
郭青云
Original Assignee
哲库科技(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 哲库科技(北京)有限公司 filed Critical 哲库科技(北京)有限公司
Publication of WO2023082954A1 publication Critical patent/WO2023082954A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • G06F3/0613Improving I/O performance in relation to throughput
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C5/00Details of stores covered by group G11C11/00
    • G11C5/14Power supply arrangements, e.g. power down, chip selection or deselection, layout of wirings or power grids, or multiple supply levels
    • G11C5/147Voltage reference generators, voltage or current regulators; Internally lowered supply levels; Compensation for voltage drops

Definitions

  • the present application relates to the technical field of communication, and in particular to a DDR access method, device, electronic equipment and system.
  • Embodiments of the present application provide a DDR access method, device, electronic equipment, and system, which are beneficial to saving DDR power consumption.
  • a DDR access method comprising:
  • the throughput rate of the DDR in the first time slot adjust the frequency and/or voltage of the DDR in the first time slot, wherein the first time slot is a time slot of the physical downlink shared channel PDSCH;
  • the first transport block is transmitted via the PDSCH, and the first time slot is a time slot of the PDSCH;
  • the decoded data of the first transport block is read and/or written to the DDR.
  • a DDR access device which includes:
  • An adjustment module configured to adjust the frequency and/or voltage of the DDR in the first time slot according to the throughput rate of the DDR in the first time slot, wherein the first time slot is a time slot of the physical downlink shared channel PDSCH;
  • the decoding module is configured to decode the first transmission block in the first time slot, the first transmission block is transmitted via the PDSCH, and the first time slot is a time slot of the PDSCH;
  • the access module is used for reading and/or writing the decoded data of the first transmission block to the DDR.
  • an electronic device including a memory and a processor, the memory stores a computer program, and the processor implements the methods described in the first aspect and the second aspect when executing the computer program.
  • FIG. 1 is a schematic diagram of a DDR system architecture
  • Fig. 2 is a flowchart of the DDR access method in one embodiment
  • Fig. 3 is a schematic diagram of a transmission mechanism of DDR in an embodiment
  • Fig. 5 is a flowchart of the DDR access method in one embodiment
  • Fig. 6 is a schematic diagram of the starting moment of decoding of transport blocks of different carriers in an embodiment
  • Fig. 7 is a flowchart of the DDR access method in one embodiment
  • Fig. 8 is a schematic diagram of the start time of decoding of transport blocks of different carriers in an embodiment
  • FIG. 9 is a schematic diagram of timing adjustment in a DDR access method in an embodiment
  • FIG. 14 is a flowchart of a retransmission process during data transmission in an embodiment
  • Fig. 16 is a structural block diagram of a DDR-based data transmission device in an embodiment
  • Fig. 17 is a schematic diagram of the architecture of the DDR access system in one embodiment.
  • first, second and the like used in this application may be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element.
  • a first client could be termed a second client, and, similarly, a second client could be termed a first client, without departing from the scope of the present application.
  • Both the first client and the second client are clients, but they are not the same client.
  • the system 10 includes a processor 11 and a memory 12 .
  • the processor 11 can provide computing and control capabilities to support the operation of the entire electrical terminal 10 .
  • the memory 12 may include a non-volatile storage medium 121 and a DDR 122 .
  • the nonvolatile storage medium 121 stores an operating system and computer programs.
  • the computer program can be executed by the processor 11 to realize the calculation and control capabilities provided by the processor 11 .
  • the DDR122 can provide a cache running environment for the processor 11 .
  • the processor 11 and the memory 12 may be independently distributed or integrated into the same chip, which is not limited in this embodiment of the present application.
  • the system 10 may be an application processor, a baseband processor, or a system on chip (system on chip, SOC) integrating the application processor and the baseband processor.
  • the DDR access method provided in this embodiment is applicable to the field of communication technology, and the DDR access method may be executed by the processor 11 shown in FIG. 1 , the system 10 , or an electronic device.
  • the system 10 shown in FIG. 1 may be a modem chip in the terminal, and may also be called a baseband chip.
  • the decoder in the processor 11 can decode the received transmission block.
  • the transport block may be transmitted to the terminal via a physical downlink shared channel (PDSCH).
  • PDSCH physical downlink shared channel
  • the transmission block may include multiple coding blocks, and decoding the transmission block also includes decoding the multiple coding blocks respectively.
  • the throughput rate of the DDR is mainly determined by the throughput rate of soft bits at the physical layer, the throughput rate of hard bits at the MAC layer on the data plane, and the throughput rate of decrypted data at the PDCP layer on the data plane.
  • the throughput rate of hard bits in the MAC layer and the throughput rate of decrypted data in the PDCP layer on the data plane determine the average throughput rate of DDR
  • the throughput rate of soft bits in the physical layer determines the peak throughput rate of DDR in the actual working process.
  • the soft bit data of the wrong coded block needs to be stored in the Hybrid Automatic Repeat request (HARQ) of the DDR. ) memory for HARQ combining during retransmission.
  • HARQ Hybrid Automatic Repeat request
  • the processor 11 has decoded the transport block before, and the decoding fails.
  • the on-chip HARQ memory of 11 in the retransmission process, the soft bits of the received transport block and the soft bits in the on-chip HARQ memory are HARQ combined and then decoded.
  • the soft bit data needs to be stored in the DDR again.
  • all coded blocks of the transmission block are decoded incorrectly at the initial transmission and also decoded incorrectly during retransmission, then in the case of retransmission, read the soft bits of all coded blocks from the DDR to the on-chip HARQ memory, and then read them from the The on-chip HARQ memory is moved to DDR, and the read and write operations in this case will maximize the throughput of DDR.
  • Table 1 lists the data throughput rate, the maximum throughput rate of DDR, and the voltage correspondence under common configurations of NR/LTE/ENDC, where Level 1 is the lowest voltage file, and Level 4 is the highest voltage file.
  • each voltage configuration can be adapted to the maximum throughput rate of DDR under the corresponding network configuration.
  • the voltage and/or frequency of the DDR is usually not lower than the voltage and/or frequency required by the maximum throughput of the DDR.
  • this configuration method can meet the throughput requirements of DDR in various scenarios under the current network configuration, it is very unfriendly to DDR power consumption because the voltage and/or frequency of DDR are set according to the maximum throughput. In most cases, the throughput of DDR is close to the average throughput, and only in a few extreme cases will it be close to the maximum throughput. If the DDR always configures the corresponding voltage and/or frequency according to the maximum throughput rate, it will bring a large waste of power consumption to the DDR.
  • the average throughput rate of DDR is determined by the hard bit throughput rate of the MAC layer of the data plane and the decrypted data throughput rate of the PDCP layer of the data plane.
  • the network ensures that the BLER is maintained within 10% by adjusting the MCS of the PDSCH, and the on-chip HARQ memory can meet the storage of soft bit data of the coded block under 10% BLER without reading and writing soft bit data to DDR.
  • the type of access data to DDR is mainly that the PDCP layer on the data plane decrypts the hard bits of the code block with correct CRC, and the decrypted data has one read and one write operation for DDR.
  • the throughput rate of DDR is the data transmission rate.
  • the embodiment of the present application provides a DDR access method, using the time slot of the PDSCH as a unit, through Dynamic Voltage Frequency Scaling (Dynamic Voltage Frequency Scaling, DVFS) technology, according to the throughput of DDR, dynamically adjust the voltage and and/or frequency to reduce DDR power consumption.
  • Dynamic Voltage Frequency Scaling Dynamic Voltage Frequency Scaling, DVFS
  • One of the factors affecting the throughput rate of DDR changes in each time slot the change of the transmission block size scheduled by the network in each time slot.
  • the network lowers the MCS and the transport block size becomes smaller when the SNR becomes low, and increases the MCS and the transport block size becomes larger when the SNR becomes higher.
  • a change in the transport block size will result in a change in the average throughput of DDR.
  • the second factor that affects the throughput rate of DDR changes in each time slot the change of the signal-to-noise ratio of each time slot.
  • the signal-to-noise ratio will decrease.
  • the BLER of the coding block will rise for a short period of time. At this time, the access to the soft bit data of DDR will cause the throughput of DDR to change suddenly. big.
  • each time slot may be an initial transmission or a retransmission.
  • the soft bit data needs to be moved from the DDR to the on-chip HARQ memory first. After decoding, if the decoding fails, the soft bit data needs to be moved from the on-chip HARQ memory to the DDR. , at this time, the throughput rate of DDR may reach the peak throughput rate.
  • FIG. 2 exemplarily shows a flow chart of a DDR access method provided by an embodiment of the present application.
  • the DDR access method in this embodiment is described by taking the system 10 running on the system 10 in FIG. 1 as an example. As shown in Figure 2, it mainly includes the following steps:
  • Step 201 adjust the frequency and/or voltage of the DDR in the first time slot according to the throughput rate of the DDR in the first time slot, wherein the first time slot is a time slot of the physical downlink shared channel PDSCH.
  • the throughput rate of DDR includes the throughput rate generated when the DDR is read and/or written.
  • the throughput rate of the DDR in the first time slot is that the DDR reads and/writes the DDR in the first time slot. The resulting throughput rate.
  • the first time slot in this embodiment of the present application may be a PDSCH time slot, that is, in this embodiment of the present application, the voltage and/or frequency of DDR may be dynamically adjusted in units of PDCSH time slots.
  • the frequency and/or voltage of the DDR in the first time slot is adjusted according to the throughput rate of the DDR in the first time slot.
  • the frequency and/or voltage of DDR in the first time slot can be increased; when the throughput rate of DDR in the first time slot becomes smaller, reduce The frequency and/or voltage of the DDR in the first time slot.
  • the voltage and/or frequency of the DDR is increased to meet the working requirements of the DDR.
  • the voltage and/or frequency of the DDR is correspondingly reduced, so as to reduce the power consumption of the DDR while meeting the working requirements of the DDR.
  • a throughput range may be set for the DDR throughput, and different throughput ranges correspond to different voltage and/or frequency configuration levels. Exemplarily, it can be shown in the following table 2:
  • Table 3 lists the corresponding relationship between different DDR voltages, frequencies and DDR throughput rates, where Level 1 is the lowest level, and Level 4 is the highest level. The voltage and frequency are adjusted according to the DDR throughput rate of the first time slot. details as follows:
  • the VDD voltage is set to the first level, and the frequency is set to the first level; when the DDR throughput rate is greater than the first level and less than or equal to the second level, the VDD voltage is set to the second level , the frequency is set to the second gear; when the DDR throughput rate is greater than the second gear and less than or equal to the third gear, the VDD voltage is set to the third gear, and the frequency is set to the third gear; when the DDR throughput rate is greater than the third gear and less than or equal to In the fourth gear, the VDD voltage is set to the fourth gear, and the frequency is set to the fourth gear; when the DDR throughput rate is greater than the fourth gear, the VDD voltage is set to the fourth gear, and the frequency is set to the fourth gear.
  • Step 202 in the first time slot, based on the frequency and/or voltage of the DDR in the first time slot, read and/or write the decoded data of the first transmission block to the DDR, the first transmission block is transmitted via the PDSCH .
  • the DDR can store the decoded data of the first transport block, and the first transport block is transmitted via the PDSCH. Therefore, the throughput rate of the DDR is limited between different PDSCH time slots. Larger changes are possible.
  • each coded block in the first transmission block needs to be decoded separately.
  • a cyclic redundancy check (CRC) needs to be performed on the coding block first.
  • the encoding block includes a CRC check code, and the so-called CRC check mainly includes checking the CRC check code of the encoding block.
  • the system 10 When the current first transmission block is the first transmission block initially transmitted, if the first transmission block has a CRC error in the encoding block, the system 10 will receive the retransmitted first transmission block again, and The first transmission block of is decoded again, that is, retransmission decoding.
  • the first transmission block of is decoded again, that is, retransmission decoding.
  • the coded block CB1 is decoded incorrectly.
  • the physical layer writes the soft bit data of the coded block CB1 into the DDR, waiting for retransmission and combination.
  • the coded blocks CB2 and CB3 are decoded correctly, but the coded block CB1 before CB2 and CB3 is decoded incorrectly.
  • the data plane does not decrypt CB2 and CB3, but writes the hard bit data of CB2 and CB3 into Temporary storage in DDR.
  • FIG. 4 gives an embodiment of each coded block in a transport block in the case of retransmission, and the transport block TB0 includes coded blocks CB0 to CB4. Assume that the CRCs of the coding blocks CB0, CB2, and CB3 are correct when they are initially transmitted, and the CRCs of CB1 and CB4 are wrong.
  • the data plane reads the hard bit data of CB2 and CB3 from DDR, and performs decryption operation together with CB1 and CB4.
  • the decrypted data of CB1, CB2, CB3 and CB4 are obtained, and PTA reads them from DDR CB1, CB2, CB3, and B4 decrypt the data and transmit it to the upper layer.
  • TB0 also includes coded blocks CB5, CB6, CB7, CB8, CB9, wherein, coded blocks CB5, CB6, CB8 decoding errors, at this time, the physical layer writes the soft bits of coded blocks CB5, CB6, CB8 DDR, waiting for retransmission coalescing.
  • Coded blocks CB7 and CB9 are decoded correctly, but because the coded block (CB8) before CB7 and CB9 is decoded incorrectly, the data plane does not decrypt CB7 and CB9, and writes the hard bits of CB7 and CB9 into DDR.
  • the soft bit data generated includes the soft bit data corresponding to the code block when the CRC of the code block is wrong; the hard bit data is included when the CRC of the code block is correct.
  • the hard bit data corresponding to the coding block when there is a coding block with a CRC error before the coding block, the hard bit data corresponding to the coding block; the decoded data is included in the coding block CRC is correct, and for the transmission block where the coding block is located, When there is no coded block with CRC error before the coded block, the decoded data corresponding to the coded block.
  • the method includes:
  • Step 301 Determine the data access amount of the DDR in the first time slot according to the data access amount of the DDR in the second time slot, where the second time slot is the previous time slot of the first time slot.
  • the data access amount refers to the data access amount determined according to the data amount of decoded data read and/or written from the DDR during the decoding process of the transport block.
  • De is the data access amount of the DDR calculated in the first time slot
  • Dh is the data access amount of the DDR in the previous time slot of the second time slot
  • D1 is the data access amount of the DDR in the second time slot
  • a is greater than 0 and less than or equal to 1, for example, here a may be set to 0.4.
  • the data volume of the decoded data of two transport blocks, the second transport block is the previous transport block of the first transport block, and the decoded data of the second transport block includes soft bit data or hard bit data of each coded block in the second transport block bit data or decrypted data; or, the data access amount of the first time slot DDR can also be determined according to the data access amount of the DDR of the historical time slot, wherein, the historical time slot can be the previous time slot of the first time slot, or It may be the first several time slots of the first time slot.
  • the data access amount of DDR can be determined according to the DDR transmission mechanism provided in this embodiment, by analyzing the second transmission block processed in the second time slot, each coding block performs corresponding The DDR access operation determines the data access amount of the DDR in the second time slot, and then calculates the data access amount of the DDR in the first time slot.
  • Step 302 Calculate the throughput rate of the DDR in the first time slot based on the calculated data access amount of the DDR in the first time slot and the decoding time for the first transport block.
  • the throughput of the DDR refers to the data access volume of the DDR per unit time. After calculating the data access volume of the DDR in the first time slot, the throughput rate of the DDR in the first time slot can be determined.
  • the decoding time of the first transmission block may be understood as the time required for one decoding of the first transmission block.
  • each time the voltage and/or frequency of the DDR is adjusted there will be a period of time when the DDR cannot be accessed. Therefore, it should be avoided to adjust the voltage and/or frequency of the DDR frequently and multiple times in each time slot.
  • the DDR frequency of the first time slot can be adjusted according to the DDR throughput rate corresponding to the transport block of each carrier in the second time slot and the decoding start time of the transport block of each carrier. moment.
  • the first channel includes a plurality of carriers, each carrier is used to receive the transport block, and the frequency and/or frequency of the DDR in the first time slot is adjusted according to the throughput rate of the DDR in the first time slot or voltage, including:
  • FIG. 6 there are three transmission blocks TB0, TB1, and TB2 in FIG. 6, where t is the first threshold.
  • t is the first threshold.
  • the processor can , configure the frequency of the DDR at the start time point of the first time slot, and maintain the frequency of the DDR in the first time slot.
  • the throughput rate of the first time slot is the sum of the throughput rates of the transmission blocks CC0 TB0, CC1 TB0, CC2 TB1, that is, by calculating the sum of the throughput rates of CC0 TB0, CC1 TB0, CC2 TB1 and CC0 TB0, CC1 TB0, CC2
  • the difference between the sums of the actual throughput rates of TB1, if the difference is greater than the first preset threshold, the throughput rate of the next time slot is corrected.
  • the actual throughput rate of DDR in the first time slot can be the sum of the actual throughput rates of CC0 TB0, CC1 TB0, and CC2 TB1
  • the calculated DDR throughput rate is the calculated CC0 TB0, CC0 TB0, The sum of the throughput rates of CC1 TB0 and CC2 TB1.
  • correct the calculated throughput rate of DDR in the third time slot if the actual throughput rate of DDR in the first time slot
  • the difference between the calculated DDR throughput minus the calculated DDR is greater than the first preset threshold.
  • the frequency of the DDR in the first time slot is adjusted, as shown in FIG. 7 , including:
  • the PDSCH in FIG. 8 includes 3 carriers CC0/CC1/CC2, and the decoding start time of the transport blocks in each carrier can refer to FIG. 8 .
  • the first time slot TB0 transmitted by CC0, TB0 transmitted by CC1, and TB1 transmitted by CC2 need to be decoded.
  • CC2 TB1 is the third transmission block, and the interval between CC2 TB1 and the start moment of the first time slot is greater than the first threshold t.
  • the calculated throughput of the DDR in the first time slot includes the sum of the throughput rates of the decoded data read from and/or written to CC0 TB0 and CC1 TB0 from the DDR, according to the throughput
  • the sum adjusts the frequency and/or voltage at the start time point of the first time slot.
  • FIG. 9 involves three carriers CC0/CC1/CC2.
  • DCI downlink control information
  • Block TB0 After receiving the downlink control information (Downlink control information, DCI) of the transmission block TB0 of the carrier CC0, the transmission is received.
  • Block TB0 And after receiving the transport block TB0, determine its corresponding throughput rate Tput1, and receive the transport block TB0 after receiving the DCI of the transport block TB0 of the carrier CC1. And after receiving the transport block TB0, determine its corresponding throughput rate Tput2, and after receiving the DCI of the transport block TB1 of the carrier CC2, receive the transport block TB1. And after receiving the transport block TB1, determine the corresponding throughput rate Tput3.
  • Step 402 Increase the frequency and/or voltage of the DDR after the decoding start moment of the third transmission block according to the data volume of the decoded data read and/or written into the third transmission block.
  • the decoding of the third transmission block may also be adjusted based on the data amount of the decoded data of the third transmission block.
  • the frequency after the start time that is, as the data access to DDR based on the third transmission block increases, the frequency after the decoding start time of the third transmission block is dynamically increased to meet the bandwidth requirement of DDR.
  • the difference between the decoding start time of the transport block TB0 of CC0 and the transport block TB0 of CC1 in the first time slot and the start time of the first time slot can be set
  • the time interval between is not greater than the first threshold
  • the time interval between the decoding start time of CC2 TB1 and the start time of the first time slot is greater than the first threshold
  • CC2 TB1 is the third transport block.
  • the DDR can be increased in CC2 TB1 according to the amount of decoded data read and/or written to CC2 TB1.
  • the frequency and/or voltage after the start of decoding can be set.
  • the processor may calculate the difference between the calculated throughput sum of multiple transport blocks and the actual throughput sum of each transport block in the first time slot, for the third time slot
  • the throughput rate is corrected. Similar to the correction method above, if the difference is greater than the first preset threshold, the throughput of the third time slot is corrected, and if the difference is not greater than the first preset threshold, the throughput of the third time slot is not required. rate, which is not limited in this embodiment.
  • the time interval between the decoding start moment of transport block CC2 TB1 and the start moment of the first time slot is greater than the first threshold t, in this case, when the throughput rate of the first time slot is calculated.
  • the calculated throughput rate of the first time slot when obtaining the calculated throughput rate of the first time slot, the throughput rate of CC2 TB1 has not been obtained, that is, before the first time slot, the calculated throughput rate of the first time slot is only CC0
  • the sum of the throughput rates of TB0, CC1 TB0 calculate the difference between the sum of the throughput rates of CC0 TB0, CC1 TB0 and the actual sum of the throughput rates of CC0 TB0, CC1 TB0, if the difference is greater than the first preset threshold, the calculated throughput of the DDR in the third time slot is corrected.
  • the processor can calculate the difference between the sum of the throughput of CC0 TB0, CC1 TB0, and CC2 TB1 and the actual sum of the throughput of CC0 TB0, CC1 TB0, and CC2 TB1 , if the difference is greater than the first preset threshold, modify the throughput of the next time slot.
  • the throughput rate of the first time slot is determined according to the data access volume of all coded blocks involved in the transport blocks involved in each carrier in the second time slot, which is calculated as The throughput rate is more accurate.
  • the threshold value of the DDR throughput rate includes a highest threshold value and a lowest threshold value
  • the above method also includes:
  • the maximum threshold value will be adjusted The throughput rate of DDR, and adjust the frequency and/or voltage of the first time slot based on the throughput rate of DDR after adjustment; If the throughput rate of DDR is less than the minimum threshold value, because the minimum throughput rate or minimum bandwidth supported by DDR is is the lowest threshold value, in this case, adjust the throughput rate of DDR according to the lowest threshold value, and adjust the frequency and/or voltage of the first time slot based on the adjusted DDR throughput rate, this embodiment No limit.
  • the minimum threshold value includes the minimum threshold value for initial transmission, and the highest threshold value includes the highest threshold;
  • the minimum threshold value of the initial transmission is equal to the data volume of the transmission block in the current time slot.
  • the scenario where the lowest threshold of initial transmission occurs is that the CRCs of all coded blocks CB are decoded correctly.
  • the operations to be performed include "decrypt the coded blocks with Write data into DDR; read the decrypted data in DDR through the packet traffic accelerator, and transmit the decrypted data to the upper layer", writing decrypted data into DDR involves access to DDR, and reading decrypted data in DDR also involves access to DDR access, but the decrypted data in the DDR read by the packet traffic accelerator is not within the statistical range of the physical layer. Therefore, in this scenario, the data access volume of the DDR includes writing the decrypted data corresponding to all encoded blocks into the DDR. At this point, the lowest threshold is equal to all transport block sizes.
  • the lowest threshold includes the lowest retransmission threshold, and the highest threshold includes the highest retransmission threshold;
  • the minimum threshold value for retransmission is determined according to the minimum value of the first data access amount and the second data access amount, and the amount of soft bits stored in the on-chip memory from the DDR.
  • the first data access amount is retransmission When the CRCs of all coding blocks in the project are correct, the data volume of DDR is accessed, and the second data access volume is the data volume of accessing DDR when the CRCs of all coding blocks in the retransmission project are wrong;
  • the maximum retransmission threshold value is determined according to the maximum value of the first data access amount and the second data access amount, and the amount of soft bits moved from the DDR to the on-chip memory.
  • the above-mentioned first data access amount is determined according to the number of coded blocks stored in soft bits, the number of coded blocks stored in hard bits, and the data volume of the coded blocks in DDR; the second data access amount is equal to that from DDR The amount of data moved to the soft bits stored in the on-chip memory.
  • the amount of soft bit data moved to the on-chip HARQ memory+max ⁇ (the number of coded blocks stored as soft bits+the number of coded blocks stored as hard bits*2)*coded block size, the soft bit data moved from DDR to the on-chip HARQ memory bit data amount ⁇ which is not limited in this embodiment.
  • the above method further includes: decoding the transport block according to the decoding period.
  • reading and/or writing to the DDR may be stopped according to a clock gating signal.
  • the dotted circle 1 is the start time of the decoding period
  • the dotted circle 4 is the end time of the decoding.
  • the clock gating signal (clock gating) is used to instruct the decoder to stop working, that is, the decoding of the code block will not be performed, and the DDR will stop reading and/or writing.
  • the clock gating signal is used to instruct the decoder to stop working, which saves the power consumption of the decoder.
  • the method provided by the present application further includes: in the decoding period, according to the throughput rate of the double rate synchronous dynamic random access memory DDR in the first time slot, adjusting the DDR in the first time slot frequency and/or voltage.
  • the processor will execute decoding only in the decoding cycle, and will only read and/or write the decoding data from DDR in the decoding cycle. Therefore, the DDR can be used in the decoding cycle
  • the throughput rate changes dynamically adjust the voltage and/or frequency of the DDR.
  • the first throughput rate of the first time slot during the decoding of the first transport block before the decoding start moment of the first transport block, calculate the first throughput rate of the first time slot during the decoding of the first transport block; when the first throughput rate is greater than the previous adjusted voltage and/or frequency In the case of corresponding throughput rate, increase the frequency and/or voltage of DDR.
  • the sum of the throughput rates of CC0 TB0 and CC1 TB0 is calculated as Tput (CC0 TB0+CC1 TB0), and at the time of dotted circle 1 according to Tput (CC0 TB0+CC1 TB0) adjusts the voltage and/or frequency of DDR.
  • Tput CC0 TB0+CC1 TB0
  • Tput CC0 TB0+CC1 TB0
  • the first throughput rate is CC0 TB0, CC1 TB0 and CC2
  • CC0 TB0, CC1 TB0 and CC2 TB1 have been decoded before the decoding start time of CC2 TB2 (dotted circle 3), and the corresponding throughput of CC0 TB0, CC1 TB0 and CC2 TB1 rate is released, therefore, the first throughput rate Tput(CC0 TB1+CC1 TB1+CC2 TB2) calculated at the moment of dotted circle 3, since the throughput rate of CC0 TB1 is equal to the throughput rate of CC0 TB0, the throughput rate of CC1 TB1 is equal to The throughput rate of CC1 TB0, and the throughput rate of CC2 TB2 is greater than that of CC2 TB1, so Tput(CC0 TB1+CC1 TB1+CC2 TB2) is greater than Tput(CC0 TB0+CC1 TB0+CC2 TB1), therefore, in CC2 TB2
  • the first throughput rate is Tput (CC2 TB1+CC0 TB1+CC1 TB1)
  • the throughput rate of CC0 TB1 is equal to the throughput rate of CC0 TB0
  • CC1 TB1 The throughput rate of CC1 TB0 is equal to the throughput rate of CC1 TB0
  • the first throughput rate Tput (CC2 TB1+CC0 TB1+CC1 TB1) at the decoding start moment of CC1 TB1 (solid coil 7) is equal to the throughput rate corresponding to dashed coil 2 Tput(CC0 TB0+CC1 TB0+CC2 TB1), therefore, maintain the frequency and/or voltage of the DDR.
  • the throughput rate corresponding to the previous voltage and/or frequency adjustment was Tput(CC0 TB0+CC1 TB0+CC2 TB1)
  • the throughput of CC0 TB1 is equal to the throughput of CC0 TB0
  • the throughput of CC1 TB1 is equal to the throughput of CC1 TB0
  • the throughput of CC2 TB2 is less than the throughput of CC2 TB1
  • the first throughput The rate Tput(CC0 TB1+CC1 TB1+CC2 TB2) is less than the corresponding throughput rate Tput(CC0 TB0+CC1 TB0+CC2 TB1) when the voltage and/or frequency were adjusted last time, and Tput(CC0 TB0+CC1 TB0+CC2 TB1) If the difference of subtracting Tput(CC0 TB1+CC1 TB1+CC2 TB2)
  • Step 501 Decode a first transport block in a first time slot, where the first transport block is transmitted via a PDSCH, and the first time slot is a time slot of the PDSCH.
  • the first transmission block of the first time slot is received, and a decoding operation is performed on the first transmission block to obtain the cyclic redundancy check CRC corresponding to each coding block in the transmission block.
  • Step 502 read and/or write the decoded data of the first transmission block to the DDR.
  • the CRC of the first transmission block is decoded.
  • the decoding result includes correct decoding or decoding error, and an access operation is performed on the DDR according to the decoding result.
  • perform different data processing operations on the coded block for example, read the decoded data of the coded block from the DDR when the CRC of the coded block is correct.
  • the compressed soft bits corresponding to the coding block are written into the DDR.
  • the data access amount of DDR is determined by soft bit data.
  • the hard bits corresponding to the coded block are written into the DDR.
  • the data access amount of DDR is determined by the hard bit data.
  • the coded block when it is determined that the CRC decoding of the coded block is correct, and for the first transmission block where the coded block is located, if there is no coded block with a CRC error before the coded block, the coded block is directly decrypted, and the decrypted
  • the decoded data of the DDR is written into the DDR, at this time, the data access amount of the DDR is determined by the decoded data.
  • the flowchart of the DDR data transmission method in the initial transmission scenario may refer to FIG. 12 .
  • the DDR reads the decoded data of the first transmission block, including:
  • the soft bit data or hard bit data of each coded block in the first transport block is read from the DDR.
  • the DDR access operation of the first transport block may also be determined according to whether there is a CRC decoding error in the transport block before the first transport block.
  • the method further includes:
  • Step 601 if the previous CRC of the coded block is wrong, read the soft bit data of the coded block from the DDR.
  • the CRC check is performed again on the coded block with CRC error based on the read soft bit data.
  • the soft bit data of the new CB0 received by retransmission and the soft bit data of the new CB1 can be respectively combined with the soft bit data of the wrong CB0 and the soft bit data of the wrong CB1 in the on-chip memory. The data are merged to obtain the merged CB0 and the merged CB1.
  • the access module 12 is configured to read the soft bit data or hard bits of each coded block in the first transmission block from the DDR when the first transmission block is retransmitted and decoded data.
  • Each module in the above-mentioned DDR access device and DDR-based data transmission device can be fully or partially realized by software, hardware and combinations thereof.
  • the above-mentioned modules can be embedded in or independent of the processor in the form of hardware, and can also be stored in the memory in the form of software, so that the processor can call and execute the corresponding operations of the above modules.
  • Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM), which acts as external cache memory.
  • RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
  • SRAM Static RAM
  • DRAM Dynamic RAM
  • SDRAM Synchronous DRAM
  • DDR SDRAM Double Data Rate SDRAM
  • ESDRAM Enhanced SDRAM
  • SLDRAM Synchronous Link (Synchlink) DRAM
  • SLDRAM Synchronous Link (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present application provides a DDR access method and apparatus, an electronic device, and a system. A DDR may store decoding data of a first transmission block, and the first transmission block is transmitted by means of a PDSCH. For the DDR, the frequency and/or voltage of the DDR in a first time slot may be adjusted according to the throughput of the DDR in the first time slot, the first time slot being a time slot of the PDSCH. That is to say, in the present application, by using the time slot of the PDSCH as a unit, the frequency and/or voltage of the DDR in the first time slot is dynamically adjusted according to the throughput of the DDR in the first time slot. Since a decoder decodes, also by using the time slot of the PDSCH as a unit, a transmission block that is transmitted by the PDSCH, the throughput of the DDR between time slots may thus vary greatly. In the present application, by using the time slot of the PDSCH as a unit, the frequency and/or voltage of the DDR in the first time slot is dynamically adjusted according to the throughput of the DDR in the first time slot, and when DDR working requirements are met, the change of the frequency and/or voltage of the DDR is more accurate, thereby further optimizing the power consumption of the DDR.

Description

DDR访问方法、装置、电子设备及系统DDR access method, device, electronic equipment and system
本申请引用于2021年11月10日递交的名称为“DDR访问方法、装置、电子设备及系统”,申请号为2021113284177的中国专利申请,并要求该中国专利申请的优先权,其通过引用被全部并入本申请。This application cites the Chinese patent application titled "DDR access method, device, electronic device and system" with application number 2021113284177 filed on November 10, 2021, and claims the priority of the Chinese patent application, which is incorporated by reference All are incorporated into this application.
技术领域technical field
本申请涉及通信技术领域,特别是涉及一种DDR访问方法、装置、电子设备及系统。The present application relates to the technical field of communication, and in particular to a DDR access method, device, electronic equipment and system.
背景技术Background technique
双倍速率同步动态随机存储器(Double Data Rate SDRAM,DDR SDRAM)是终端的重要存储器,在终端运行过程中,DDR能够参与大多数的数据处理过程。例如,终端对接收到的传输块进行译码时,便需要DDR存储译码过程中所产生的数据。Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, DDR SDRAM) is an important memory of the terminal. During the operation of the terminal, DDR can participate in most data processing processes. For example, when the terminal decodes the received transport block, it needs the DDR to store the data generated during the decoding process.
目前,DDR的电压通常是由终端的网络配置确定的。例如,根据终端的网络配置的载波参数,计算DDR可能出现的最大吞吐率,进而根据最大吞吐率来设置DDR的电压。At present, the voltage of DDR is usually determined by the network configuration of the terminal. For example, according to the carrier parameters configured by the network of the terminal, the maximum possible throughput rate of the DDR is calculated, and then the voltage of the DDR is set according to the maximum throughput rate.
发明内容Contents of the invention
本申请实施例提供了一种DDR访问方法、装置、电子设备及系统,有利于节省DDR的功耗。Embodiments of the present application provide a DDR access method, device, electronic equipment, and system, which are beneficial to saving DDR power consumption.
第一方面,提供一种DDR访问方法,该方法包括:In the first aspect, a DDR access method is provided, the method comprising:
根据DDR在第一时隙的吞吐率,调节DDR在第一时隙的频率和/或电压,其中,第一时隙为物理下行共享信道PDSCH的时隙;According to the throughput rate of the DDR in the first time slot, adjust the frequency and/or voltage of the DDR in the first time slot, wherein the first time slot is a time slot of the physical downlink shared channel PDSCH;
在第一时隙,基于DDR在第一时隙的频率和/或电压,对DDR读取和/或写入第一传输块的译码数据,第一传输块是经PDSCH传输的。In the first time slot, based on the frequency and/or voltage of the DDR in the first time slot, the DDR reads and/or writes the decoded data of the first transport block, which is transmitted via the PDSCH.
第二方面,提供一种基于DDR的数据传输方法,适用于第一方面任一项提供的DDR访问方法中,该方法包括:In the second aspect, a DDR-based data transmission method is provided, which is applicable to the DDR access method provided by any one of the first aspect, and the method includes:
在第一时隙对第一传输块进行译码,第一传输块是经PDSCH传输的,第一时隙为PDSCH的时隙;Decoding the first transport block in the first time slot, the first transport block is transmitted via the PDSCH, and the first time slot is a time slot of the PDSCH;
对DDR读取和/或写入第一传输块的译码数据。The decoded data of the first transport block is read and/or written to the DDR.
第三方面,提供一种DDR访问装置,该装置包括:In a third aspect, a DDR access device is provided, which includes:
调节模块,用于根据DDR在第一时隙的吞吐率,调节DDR在第一时隙的频率和/或电压,其中,第一时隙为物理下行共享信道PDSCH的时隙;An adjustment module, configured to adjust the frequency and/or voltage of the DDR in the first time slot according to the throughput rate of the DDR in the first time slot, wherein the first time slot is a time slot of the physical downlink shared channel PDSCH;
访问模块,用于在第一时隙,基于DDR在第一时隙的频率和/或电压,对DDR读取和/或写入第一传输块的译码数据,第一传输块是经PDSCH传输的。The access module is used to read and/or write the decoded data of the first transmission block to the DDR based on the frequency and/or voltage of the DDR in the first time slot in the first time slot, and the first transmission block is transmitted via the PDSCH Transmission.
第四方面,提供一种基于DDR的数据传输装置,该装置包括:In a fourth aspect, a DDR-based data transmission device is provided, the device comprising:
译码模块,用于在第一时隙对第一传输块进行译码,第一传输块是经PDSCH传输的,第一时隙为PDSCH的时隙;The decoding module is configured to decode the first transmission block in the first time slot, the first transmission block is transmitted via the PDSCH, and the first time slot is a time slot of the PDSCH;
访问模块,用于对DDR读取和/或写入第一传输块的译码数据。The access module is used for reading and/or writing the decoded data of the first transmission block to the DDR.
第五方面,提供一种电子设备,包括存储器和处理器,该存储器存储有计算机程序,该处理器执行该计算机程序时实现上述第一方面、第二方面所述的方法。According to a fifth aspect, an electronic device is provided, including a memory and a processor, the memory stores a computer program, and the processor implements the methods described in the first aspect and the second aspect when executing the computer program.
第六方面,提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述第一方面、第二方面所述的方法。In a sixth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the methods described in the first aspect and the second aspect above are implemented.
第七方面,提供一种双倍速率同步动态随机存储器的访问系统,包括控制单元、DDR和供电单元,其中,供电单元,用于在控制单元的控制下为DDR供电;In the seventh aspect, an access system of double rate synchronous dynamic random access memory is provided, including a control unit, a DDR and a power supply unit, wherein the power supply unit is used to supply power to the DDR under the control of the control unit;
控制单元,用于执行上述第一方面、第二方面任一项所述的方法。A control unit, configured to execute the method described in any one of the first aspect and the second aspect above.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为一种DDR系统架构示意图;FIG. 1 is a schematic diagram of a DDR system architecture;
图2为一个实施例中DDR访问方法的流程图;Fig. 2 is a flowchart of the DDR access method in one embodiment;
图3为一个实施例中DDR的传输机制示意图;Fig. 3 is a schematic diagram of a transmission mechanism of DDR in an embodiment;
图4为一个实施例中DDR的传输机制示意图;Fig. 4 is a schematic diagram of a transmission mechanism of DDR in an embodiment;
图5为一个实施例中DDR访问方法的流程图;Fig. 5 is a flowchart of the DDR access method in one embodiment;
图6为一个实施例中不同载波的传输块译码起始时刻示意图;Fig. 6 is a schematic diagram of the starting moment of decoding of transport blocks of different carriers in an embodiment;
图7为一个实施例中DDR访问方法的流程图;Fig. 7 is a flowchart of the DDR access method in one embodiment;
图8为一个实施例中不同载波的传输块译码起始时刻示意图;Fig. 8 is a schematic diagram of the start time of decoding of transport blocks of different carriers in an embodiment;
图9为一个实施例中DDR访问方法中时序调整的示意图;FIG. 9 is a schematic diagram of timing adjustment in a DDR access method in an embodiment;
图10为一个实施例中不同载波的吞吐率变化时间点合并时序示意图;FIG. 10 is a schematic diagram of a timing sequence of merging throughput rate changes of different carriers in an embodiment;
图11为一个实施例中基于DDR的数据传输方法的流程图;Fig. 11 is a flowchart of a data transmission method based on DDR in an embodiment;
图12为一个实施例中数据传输过程中初传过程的流程图;Fig. 12 is a flow chart of the initial transmission process in the data transmission process in one embodiment;
图13为一个实施例中基于DDR的数据传输方法的流程图;Fig. 13 is a flowchart of a data transmission method based on DDR in an embodiment;
图14为一个实施例中数据传输过程中重传过程的流程图;FIG. 14 is a flowchart of a retransmission process during data transmission in an embodiment;
图15为一个实施例中DDR访问装置的结构框图;Fig. 15 is a structural block diagram of a DDR access device in an embodiment;
图16为一个实施例中基于DDR的数据传输装置的结构框图;Fig. 16 is a structural block diagram of a DDR-based data transmission device in an embodiment;
图17为一个实施例中DDR访问系统的架构示意图。Fig. 17 is a schematic diagram of the architecture of the DDR access system in one embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一客户端称为第二客户端,且类似地,可将第二客户端称为第一客户端。第一客户端和第二客户端两者都是客户端,但其不是同一客户端。It can be understood that the terms "first", "second" and the like used in this application may be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. For example, a first client could be termed a second client, and, similarly, a second client could be termed a first client, without departing from the scope of the present application. Both the first client and the second client are clients, but they are not the same client.
随着终端市场的发展,双倍速率同步动态随机存储器(Double Data Rate SDRAM,DDR SDRAM)成为提高终端处理速度的重要元件,DDR的功耗也日益提高。示例性的,图1为一种DDR系统架构示意图,该DDR系统架构可以应用于手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备、基站等任意具有数字处理能力的电子设备。With the development of the terminal market, double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM) has become an important component to improve the terminal processing speed, and the power consumption of DDR is also increasing day by day. Exemplary, Fig. 1 is a kind of DDR system architecture schematic diagram, this DDR system architecture can be applied to mobile phone, panel computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, Any electronic device with digital processing capabilities such as wearable devices and base stations.
如图1所示,系统10包括处理器11和存储器12。在终端10运行过程中,处理器11可以提供计算和控制能力,支撑整个电终端10的运行。存储器12可包括非易失性存储介质121及DDR122。非易失性存储介质121存储有操作系统和计算机程序。该计算机程序可被处理器11所执行,以用于实现该处理器11所提供的计算和控制能力。DDR122可以为处理器11提供高速缓存的运行环境。As shown in FIG. 1 , the system 10 includes a processor 11 and a memory 12 . During the operation of the terminal 10 , the processor 11 can provide computing and control capabilities to support the operation of the entire electrical terminal 10 . The memory 12 may include a non-volatile storage medium 121 and a DDR 122 . The nonvolatile storage medium 121 stores an operating system and computer programs. The computer program can be executed by the processor 11 to realize the calculation and control capabilities provided by the processor 11 . The DDR122 can provide a cache running environment for the processor 11 .
在具体实现中,处理器11和存储器12既可以独立分布,也可以集成于同一个芯片中,本申请实施例对此并不多做限制。示例性的,该系统10可以是应用处理器,也可以是基带处理器,还可以是集成有应用处理器和基带处理器的片上系统(system on chip,SOC)。In a specific implementation, the processor 11 and the memory 12 may be independently distributed or integrated into the same chip, which is not limited in this embodiment of the present application. Exemplarily, the system 10 may be an application processor, a baseband processor, or a system on chip (system on chip, SOC) integrating the application processor and the baseband processor.
本实施例提供的DDR访问方法,适用于通信技术领域,DDR访问方法的执行主体可以为图1所示的处理器11,也可以是系统10,还可以是电子设备。The DDR access method provided in this embodiment is applicable to the field of communication technology, and the DDR access method may be executed by the processor 11 shown in FIG. 1 , the system 10 , or an electronic device.
示例地,终端通信的场景为例,图1所示的系统10可以为终端中的调制解调芯片,也可以称为基带芯片。在终端的通信过程中,处理器11中的译码器可以对接收到的传输块进行译码。其中,传输块可以是经物理下行共享信道(physical downlink shared channel,PDSCH)传输至终端的。传输块中可以包括多个编码块,对传输块译码也包括了分别对多个编码块的译码。Exemplarily, the scenario of terminal communication is taken as an example. The system 10 shown in FIG. 1 may be a modem chip in the terminal, and may also be called a baseband chip. During the communication process of the terminal, the decoder in the processor 11 can decode the received transmission block. Wherein, the transport block may be transmitted to the terminal via a physical downlink shared channel (PDSCH). The transmission block may include multiple coding blocks, and decoding the transmission block also includes decoding the multiple coding blocks respectively.
在译码期间,处理器11需要从DDR122中读取和/或写入传输块的译码数据。具体来说,在对传输块译码的过程中,传输块的译码数据主要包括物理层软比特数据、数据面介质访问控制层MAC层的硬比特数据以及数据面分组数据汇聚协议(Packet Data Convergence Protocol,PDCP)层的解密数据。During decoding, processor 11 needs to read and/or write decoded data of transport blocks from DDR 122 . Specifically, in the process of decoding the transport block, the decoded data of the transport block mainly includes the soft bit data of the physical layer, the hard bit data of the MAC layer of the data plane media access control layer, and the packet data convergence protocol (Packet Data Convergence Protocol) of the data plane. Convergence Protocol, PDCP) layer decrypted data.
由于传输块的译码数据的数据量存在波动,致使DDR的吞吐率也会随之波动。具体来说,DDR的吞吐率主要受物理层软比特的吞吐率、数据面MAC层硬比特的吞吐率以及数据面PDCP层解密数据的吞吐率决定。其中MAC层硬比特的吞吐率和数据面PDCP层解密数据的吞吐率决定了DDR的平均吞吐率,物理层软比特的吞吐率决定了DDR在实际工作过程中的峰值吞吐率。Due to fluctuations in the data volume of the decoded data of the transport block, the throughput rate of the DDR will also fluctuate accordingly. Specifically, the throughput rate of DDR is mainly determined by the throughput rate of soft bits at the physical layer, the throughput rate of hard bits at the MAC layer on the data plane, and the throughput rate of decrypted data at the PDCP layer on the data plane. Among them, the throughput rate of hard bits in the MAC layer and the throughput rate of decrypted data in the PDCP layer on the data plane determine the average throughput rate of DDR, and the throughput rate of soft bits in the physical layer determines the peak throughput rate of DDR in the actual working process.
一般来说,在低误块率(Block error rate,BLER)的场景中,DDR的吞吐率接近平均吞吐率。在高BLER的场景中,DDR的吞吐率接近峰值吞吐率。当BLER升高而网络还没来得及通过调整调制与编码策略(Modulation and Coding Scheme,MCS)以降低传输速率时,物理层将会从DDR频繁读写软比特数据,致使DDR的吞吐率出现很大的提升而出现峰值。Generally speaking, in low block error rate (Block error rate, BLER) scenarios, the throughput rate of DDR is close to the average throughput rate. In high BLER scenarios, the throughput of DDR is close to the peak throughput. When the BLER rises and the network has not had time to reduce the transmission rate by adjusting the Modulation and Coding Scheme (MCS), the physical layer will frequently read and write soft bit data from DDR, resulting in a large throughput of DDR. rises to a peak.
示例性的,当终端调制解调芯片在接收下行物理下行共享信道(Physical Downlink Shared Channel,PDSCH)的过程中经历了快衰信道或者受到别的干扰时,会造成高BLER,进而导致传输块中大量的编码块的译码错误。Exemplarily, when the terminal modem chip experiences a fast-fading channel or receives other interference during the process of receiving the downlink Physical Downlink Shared Channel (PDSCH), it will cause a high BLER, which in turn leads to Decoding errors of a large number of coded blocks.
在传输块初传情况下,也就是处理器11首次对传输块译码的情况下,译码错误的编码块的软比特数据需要存储在DDR的混合自动重传请求(Hybrid Automatic Repeat request,HARQ)存储器中,以便重传时做HARQ合并。在传输块重传情况下,也就是处理器11之前对传输块进行过译码,且译码失败,在此情况下,需要先把存储在DDR的HARQ存储器中的软比特数据读到处理器11的片上HARQ存储器中,在重传过程中将接收到的传输块的软比特与片上HARQ存储器中的软比特进行HARQ合并后译码。针对传输块中的每个编码块,如果对该编码块的译码错误需要再次把软比特数据存储到DDR中。极端情况,如果传输块的所有编码块在初传时译码错误,重传时也译码错误,则在重传情况下,把所有编码块的软比特从DDR读到片上HARQ存储器,再从片上HARQ存储器搬移到DDR,这种情况下的读写操作会让DDR的吞吐率达到最大。In the case of the initial transmission of the transmission block, that is, when the processor 11 decodes the transmission block for the first time, the soft bit data of the wrong coded block needs to be stored in the Hybrid Automatic Repeat request (HARQ) of the DDR. ) memory for HARQ combining during retransmission. In the case of retransmission of the transport block, that is, the processor 11 has decoded the transport block before, and the decoding fails. In this case, it is necessary to read the soft bit data stored in the HARQ memory of the DDR to the processor In the on-chip HARQ memory of 11, in the retransmission process, the soft bits of the received transport block and the soft bits in the on-chip HARQ memory are HARQ combined and then decoded. For each coded block in the transport block, if the coded block is decoded incorrectly, the soft bit data needs to be stored in the DDR again. In extreme cases, if all coded blocks of the transmission block are decoded incorrectly at the initial transmission and also decoded incorrectly during retransmission, then in the case of retransmission, read the soft bits of all coded blocks from the DDR to the on-chip HARQ memory, and then read them from the The on-chip HARQ memory is moved to DDR, and the read and write operations in this case will maximize the throughput of DDR.
以NR FR1 7Gbps的数据吞吐率为例,初传时,如果传输块中所有的编码块都译码错误,压缩后每个编码块的软比特数据的比特数为4,假设误码率为2/3,则软比特的DDR吞吐率为7*1.5*4=42Gbps。重传时先把软比特数据从DDR读到片上HARQ存储器进行HARQ合并,如果译码错误再从片上HARQ存储器搬移到DDR,DDR的峰值吞吐率能达到初传时的2倍,即84Gbps。Taking the data throughput rate of NR FR1 7Gbps as an example, in the initial transmission, if all the coded blocks in the transmission block are decoded incorrectly, the number of soft bit data of each coded block after compression is 4, and the bit error rate is assumed to be 2 /3, then the DDR throughput rate of soft bits is 7*1.5*4=42Gbps. When retransmitting, first read the soft bit data from DDR to the on-chip HARQ memory for HARQ combination. If the decoding error is then moved from the on-chip HARQ memory to DDR, the peak throughput rate of DDR can reach twice that of the initial transmission, that is, 84Gbps.
为了满足DDR的工作需求,在一种可能的技术方案中,可以根据网络配置的载波参数计算当前网络配置下DDR所能达到的最大吞吐率,进而根据最大吞吐率来设置DDR的电压和/或频率。In order to meet the working requirements of DDR, in a possible technical solution, the maximum throughput rate that DDR can achieve under the current network configuration can be calculated according to the carrier parameters of the network configuration, and then the voltage and/or DDR can be set according to the maximum throughput rate. frequency.
具体来说,当网络配置了LTE/NR的载波数、载波带宽、子载波间隔等参数之后,可以根据配置的这些参数计算出DDR的最大吞吐率,然后根据DDR的最大吞吐率设置DDR的电压和/或频率。比如网络配置了3个LTE载波,每个载波带宽20MHz,最高调制方式是256QAM,最高层数是4层,则3个载波的最大数据吞吐率为1.2Gbps。假设压缩后的每个软比特的比特数为4,误码率为2/3,则DDR最大吞吐率为1.2*1.5*4*2=14.4Gbps。Specifically, after the network configures parameters such as the number of carriers, carrier bandwidth, and subcarrier spacing of LTE/NR, the maximum throughput rate of DDR can be calculated according to the configured parameters, and then the voltage of DDR can be set according to the maximum throughput rate of DDR. and/or frequency. For example, if the network is configured with 3 LTE carriers, each carrier has a bandwidth of 20MHz, the highest modulation method is 256QAM, and the highest number of layers is 4, then the maximum data throughput rate of the 3 carriers is 1.2Gbps. Assuming that the number of compressed soft bits is 4 and the bit error rate is 2/3, the maximum throughput rate of DDR is 1.2*1.5*4*2=14.4Gbps.
示例性的,表格1列举了NR/LTE/ENDC常用配置下的数据吞吐率、DDR的最大吞吐率、以及电压对应关系,其中Level 1为最低电压档,Level 4为最高电压档。Exemplarily, Table 1 lists the data throughput rate, the maximum throughput rate of DDR, and the voltage correspondence under common configurations of NR/LTE/ENDC, where Level 1 is the lowest voltage file, and Level 4 is the highest voltage file.
表1Table 1
Figure PCTCN2022125942-appb-000001
Figure PCTCN2022125942-appb-000001
由表1可见,四种网络配置分别对应的4种DDR电压配置,每种电压配置皆可以适配于对应网络配置下DDR的最大吞吐率。It can be seen from Table 1 that the four network configurations correspond to four DDR voltage configurations, and each voltage configuration can be adapted to the maximum throughput rate of DDR under the corresponding network configuration.
参考表1所示,表1中包括几种情况下,例如,以表1所示的LTE 3载波配置场景为例,在DDR的实际吞吐率未超过该网络配置下的最大吞吐率(14.4Gbps)时,DDR的电压配置为Level 1。在另外一种情况下,以表1所示的ENDC(LTE 3载波+NR 1载波)配置场景为例,DDR的实际吞吐率3.5Gbps,远远小于该网络配置下的最大吞吐率40Gbps,但是在这种情况下,依然将DDR的电压配置为Level 4,这样的话,会对DDR的功耗造成极大的浪费。As shown in Table 1, several situations are included in Table 1. For example, taking the LTE 3 carrier configuration scenario shown in Table 1 as an example, the actual throughput rate of DDR does not exceed the maximum throughput rate (14.4Gbps) under the network configuration. ), the DDR voltage configuration is Level 1. In another case, taking the ENDC (LTE 3 carrier + NR 1 carrier) configuration scenario shown in Table 1 as an example, the actual throughput rate of DDR is 3.5Gbps, which is far less than the maximum throughput rate of 40Gbps under this network configuration, but In this case, the voltage of DDR is still configured as Level 4. In this case, the power consumption of DDR will be greatly wasted.
由上述示例可见,DDR的电压和/或频率往往不低于DDR的最大吞吐率所需的电压和/或频率。采用这种配置方式,虽然能满足当前网络配置下各种场景对DDR的吞吐率需求,但是由于按照最大吞吐率来设置DDR的电压和/或频率,对DDR的功耗非常不友好。在绝大部分情况下,DDR的吞吐率都接近平均吞吐率,只有在少数极端情况下才会接近最大吞吐率。如果DDR一直按照最大吞吐率来配置对应的电压和/或频率,将会为DDR带来较大的功耗浪费。It can be seen from the above examples that the voltage and/or frequency of the DDR is usually not lower than the voltage and/or frequency required by the maximum throughput of the DDR. Although this configuration method can meet the throughput requirements of DDR in various scenarios under the current network configuration, it is very unfriendly to DDR power consumption because the voltage and/or frequency of DDR are set according to the maximum throughput. In most cases, the throughput of DDR is close to the average throughput, and only in a few extreme cases will it be close to the maximum throughput. If the DDR always configures the corresponding voltage and/or frequency according to the maximum throughput rate, it will bring a large waste of power consumption to the DDR.
例如,DDR的平均吞吐率由数据面MAC层的硬比特吞吐率以及数据面PDCP层的解密数据吞吐率决定。在正常情况下,网络通过调整PDSCH的MCS保证BLER维持在10%以内,片上HARQ存储器就能满足在10%的BLER下编码块的软比特数据的存储,而无需对DDR读写软比特数据。在此情况下,对DDR的访问数据类型主要是数据面PDCP层对CRC正确的编码块的硬比特进行解密,解密数据对DDR有一读一写的操作,此时DDR的吞吐率为数据传输率的2倍。以NR FR1 7Gbps的数据吞吐率为例,当数据传输速率为7Gbps,DDR的平均吞吐率为14Gbps,远远小于其最大吞吐率84Gbps,如 果按照最大吞吐率设置电压和频率,DDR的功耗非常大,而且造成很大的浪费。For example, the average throughput rate of DDR is determined by the hard bit throughput rate of the MAC layer of the data plane and the decrypted data throughput rate of the PDCP layer of the data plane. Under normal circumstances, the network ensures that the BLER is maintained within 10% by adjusting the MCS of the PDSCH, and the on-chip HARQ memory can meet the storage of soft bit data of the coded block under 10% BLER without reading and writing soft bit data to DDR. In this case, the type of access data to DDR is mainly that the PDCP layer on the data plane decrypts the hard bits of the code block with correct CRC, and the decrypted data has one read and one write operation for DDR. At this time, the throughput rate of DDR is the data transmission rate. 2 times. Taking the data throughput rate of NR FR1 7Gbps as an example, when the data transmission rate is 7Gbps, the average throughput rate of DDR is 14Gbps, which is far less than its maximum throughput rate of 84Gbps. If the voltage and frequency are set according to the maximum throughput rate, the power consumption of DDR is very high. Large, and cause a lot of waste.
另一方面,实际网络也不会一直按照最大吞吐率传输数据。在SNR比较低的环境下,网络为了维持10%的BLER,通常会降低传输块的MCS,此时的数据吞吐率也会降低,对应的DDR平均吞吐率也会降低,其需要的DDR电压和/或频率会变得更小,如果还按照最大吞吐率设置电压和/或频率,DDR的功耗会造成很大的浪费。On the other hand, actual networks do not always transmit data at the maximum throughput rate. In a relatively low SNR environment, in order to maintain a BLER of 10%, the network usually reduces the MCS of the transmission block. At this time, the data throughput rate will also decrease, and the corresponding DDR average throughput rate will also decrease. The required DDR voltage and / Or the frequency will become smaller, if the voltage and / or frequency are also set according to the maximum throughput rate, the power consumption of DDR will cause a lot of waste.
由此可见,按照最大吞吐率设置电压和/或频率,不利于优化DDR的功耗。然而,随着通信技术的不断演进,终端对功耗的要求日趋严格。有鉴于此,本申请实施例提供一种DDR访问方法,以PDSCH的时隙为单位,通过动态电压频率调整(Dynamic Voltage Frequency Scaling,DVFS)技术,根据DDR的吞吐率,动态调整DDR的电压和/或频率,以降低DDR的功耗。It can be seen that setting the voltage and/or frequency according to the maximum throughput rate is not conducive to optimizing the power consumption of the DDR. However, with the continuous evolution of communication technologies, terminals have increasingly strict requirements on power consumption. In view of this, the embodiment of the present application provides a DDR access method, using the time slot of the PDSCH as a unit, through Dynamic Voltage Frequency Scaling (Dynamic Voltage Frequency Scaling, DVFS) technology, according to the throughput of DDR, dynamically adjust the voltage and and/or frequency to reduce DDR power consumption.
具体来说,对于存储传输块的译码数据的DDR,由于处理器11是以PDSCH的时隙为单位对传输块进行译码的,因此DDR的吞吐率与PDSCH的时隙有密切关系。接下来,分别对每个时隙网络调度的传输块大小、每个时隙的信噪比、每个时隙的传输块是初传和重传的译码情况这几个影响DDR的吞吐率的因素进行分析。Specifically, for the DDR storing the decoded data of the transport block, since the processor 11 decodes the transport block in units of PDSCH time slots, the throughput rate of the DDR is closely related to the PDSCH time slots. Next, the transmission block size scheduled by the network for each time slot, the signal-to-noise ratio of each time slot, and the decoding conditions of the initial transmission and retransmission of the transmission block of each time slot affect the throughput of DDR. factors are analyzed.
影响DDR的吞吐率在每个时隙都发生变化的因素其一:每个时隙网络调度的传输块大小的变化。One of the factors affecting the throughput rate of DDR changes in each time slot: the change of the transmission block size scheduled by the network in each time slot.
为了维持10%的BLER,当信噪比变低时,网络会降低MCS,传输块大小会变小,当信噪比变高时,网络会提高MCS,传输块的大小会变大。传输块大小的变化会导致DDR的平均吞吐率发生变化。To maintain a BLER of 10%, the network lowers the MCS and the transport block size becomes smaller when the SNR becomes low, and increases the MCS and the transport block size becomes larger when the SNR becomes higher. A change in the transport block size will result in a change in the average throughput of DDR.
影响DDR的吞吐率在每个时隙都发生变化的因素其二:每个时隙的信噪比的变化。The second factor that affects the throughput rate of DDR changes in each time slot: the change of the signal-to-noise ratio of each time slot.
当PDSCH经过快衰信道或者干扰时,信噪比会降低,在网络调整MCS之前,有一小段时间编码块的BLER会上升,此时对DDR的软比特数据的访问会造成DDR的吞吐率突然变大。When PDSCH passes through fast-fading channels or interference, the signal-to-noise ratio will decrease. Before the network adjusts the MCS, the BLER of the coding block will rise for a short period of time. At this time, the access to the soft bit data of DDR will cause the throughput of DDR to change suddenly. big.
影响DDR的吞吐率在每个时隙都发生变化的因素其三:每个时隙有可能是初传,也可能是重传。The third factor that affects the throughput rate of DDR changes in each time slot: each time slot may be an initial transmission or a retransmission.
在重传并且译码不对的情况下,需要先从DDR将软比特数据搬移到片上HARQ存储器中,译码结束后,若译码失败,还需将软比特数据从片上HARQ存储器搬移到DDR中,这时DDR的吞吐率有可能达到峰值吞吐率。In the case of retransmission and incorrect decoding, the soft bit data needs to be moved from the DDR to the on-chip HARQ memory first. After decoding, if the decoding fails, the soft bit data needs to be moved from the on-chip HARQ memory to the DDR. , at this time, the throughput rate of DDR may reach the peak throughput rate.
综上,经申请人研究发现,每个时隙内由于MCS的变化、BLER的变化以及初传和重传的译码情况都会导致DDR的吞吐率发生变化。不同时隙之间,DDR的吞吐率有可能出现较大的变化。本申请实施例以时隙为单位,根据DDR在不同时隙的吞吐率变化,动态调整DDR的电压和/或频率,使其能够更为精确地响应DDR吞吐率的变化,有利于进一步优化DDR的功耗。To sum up, the applicant has found that the throughput rate of DDR will change due to changes in MCS, BLER, and decoding of initial transmission and retransmission in each time slot. Between different time slots, the throughput rate of DDR may change greatly. The embodiment of the present application takes the time slot as the unit, and dynamically adjusts the voltage and/or frequency of the DDR according to the change of the throughput rate of the DDR in different time slots, so that it can respond more accurately to the change of the DDR throughput rate, which is beneficial to further optimize the DDR power consumption.
图2示例性示出了本申请实施例提供的一种DDR访问方法的流程图。本实施例中的DDR访问方法,以运行于图1的系统10上为例进行描述。如图2所示,主要包括以下步骤:FIG. 2 exemplarily shows a flow chart of a DDR access method provided by an embodiment of the present application. The DDR access method in this embodiment is described by taking the system 10 running on the system 10 in FIG. 1 as an example. As shown in Figure 2, it mainly includes the following steps:
步骤201,根据DDR在第一时隙的吞吐率,调节DDR在第一时隙的频率和/或电压,其中,第一时隙为物理下行共享信道PDSCH的时隙。 Step 201 , adjust the frequency and/or voltage of the DDR in the first time slot according to the throughput rate of the DDR in the first time slot, wherein the first time slot is a time slot of the physical downlink shared channel PDSCH.
其中,DDR的吞吐率包括对DDR进行读取和/写入操作时所产生的吞吐率,DDR在第一时隙的吞吐率也就是DDR在第一时隙对DDR读取和/写入操作时所产生的吞吐率。Among them, the throughput rate of DDR includes the throughput rate generated when the DDR is read and/or written. The throughput rate of the DDR in the first time slot is that the DDR reads and/writes the DDR in the first time slot. The resulting throughput rate.
需要指出的是,本申请实施例中的第一时隙可以是PDSCH的时隙,也就是说,本申请实施例中,可以以PDCSH的时隙为单位动态调节DDR的电压和/或频率。It should be noted that the first time slot in this embodiment of the present application may be a PDSCH time slot, that is, in this embodiment of the present application, the voltage and/or frequency of DDR may be dynamically adjusted in units of PDCSH time slots.
在本申请实施例中,根据DDR在第一时隙的吞吐率调节DDR在第一时隙的频率和/或电压,可以存在多种可能的实现方式:In this embodiment of the application, the frequency and/or voltage of the DDR in the first time slot is adjusted according to the throughput rate of the DDR in the first time slot. There may be multiple possible implementations:
例如,可以在DDR在第一时隙的吞吐率变大的情况下,提高DDR在第一时隙的频率和/或电压;在DDR在第一时隙的吞吐率变小的情况下,降低DDR在第一时隙的频率和/或电压。For example, when the throughput rate of DDR in the first time slot becomes larger, the frequency and/or voltage of DDR in the first time slot can be increased; when the throughput rate of DDR in the first time slot becomes smaller, reduce The frequency and/or voltage of the DDR in the first time slot.
具体来说,当DDR的吞吐率变大时,提高DDR的电压和/或频率以满足DDR的工作需求。当DDR的吞吐率变小时,相应地降低DDR的电压和/或频率,以在满足DDR工作需求的同时,降低DDR的功耗。Specifically, when the throughput of the DDR becomes larger, the voltage and/or frequency of the DDR is increased to meet the working requirements of the DDR. When the throughput rate of the DDR becomes smaller, the voltage and/or frequency of the DDR is correspondingly reduced, so as to reduce the power consumption of the DDR while meeting the working requirements of the DDR.
又例如,可以为DDR的吞吐率设置吞吐率区间,不同吞吐率区间对应不同的电压和/或频率配置等级。示例性的,可以如下表2所示:For another example, a throughput range may be set for the DDR throughput, and different throughput ranges correspond to different voltage and/or frequency configuration levels. Exemplarily, it can be shown in the following table 2:
表2Table 2
吞吐率区间Throughput range 电压和/或频率配置等级Voltage and/or Frequency Configuration Levels
区间1Interval 1 等级1 Grade 1
区间2 Interval 2 等级2 Level 2
区间3 Interval 3 等级3 Level 3
如表2所示,DDR的吞吐率设置有3个吞吐率区间(区间1-3),每个区间分别对应有不同的电压和/或频率配置等级(等级1-3)。基于表2所示的对应关系,可以根据DDR在第一时隙的吞吐率所在的 吞吐率区间,选择对应的电压和/或频率配置等级,进而可以将DDR在第一时隙的电压和/或频率调节为该电压和/或频率配置等级。As shown in Table 2, the DDR throughput setting has 3 throughput rate intervals (interval 1-3), and each interval corresponds to a different voltage and/or frequency configuration level (level 1-3). Based on the corresponding relationship shown in Table 2, the corresponding voltage and/or frequency configuration level can be selected according to the throughput range of the throughput rate of DDR in the first time slot, and then the voltage and/or frequency configuration level of DDR in the first time slot can be adjusted. or frequency adjustment for that voltage and/or frequency configuration level.
还例如,表3列出了不同的DDR电压、频率与DDR吞吐率之间的对应关系,其中Level 1为最低档,Level 4为最高档。根据第一时隙的DDR吞吐率,对电压和频率进行调节。具体如下:For another example, Table 3 lists the corresponding relationship between different DDR voltages, frequencies and DDR throughput rates, where Level 1 is the lowest level, and Level 4 is the highest level. The voltage and frequency are adjusted according to the DDR throughput rate of the first time slot. details as follows:
当DDR的吞吐率小于等于第一档时,VDD电压设置为第一档,频率设置为第一档;当DDR的吞吐率大于第一档小于等于第二档时,VDD电压设置为第二档,频率设置为第二档;当DDR的吞吐率大于第二档小于等于第三档时,VDD电压设置为第三档,频率设置为第三档;当DDR的吞吐率大于第三档小于等于第四档时,VDD电压设置为第四档,频率设置为第四档;当DDR的吞吐率大于第四档时,VDD电压设置为第四档,频率设置为第四档。When the throughput rate of DDR is less than or equal to the first level, the VDD voltage is set to the first level, and the frequency is set to the first level; when the DDR throughput rate is greater than the first level and less than or equal to the second level, the VDD voltage is set to the second level , the frequency is set to the second gear; when the DDR throughput rate is greater than the second gear and less than or equal to the third gear, the VDD voltage is set to the third gear, and the frequency is set to the third gear; when the DDR throughput rate is greater than the third gear and less than or equal to In the fourth gear, the VDD voltage is set to the fourth gear, and the frequency is set to the fourth gear; when the DDR throughput rate is greater than the fourth gear, the VDD voltage is set to the fourth gear, and the frequency is set to the fourth gear.
表3table 3
VDD电压VDD voltage 频率(MHz)Frequency (MHz) DDR吞吐率(Gbps)DDR Throughput Rate(Gbps)
Level 4 Level 4 Level 4 Level 4 Level 4 Level 4
Level 3 Level 3 Level 3 Level 3 Level 3 Level 3
Level 2 Level 2 Level 2 Level 2 Level 2 Level 2
Level 1 Level 1 Level 1 Level 1 Level 1 Level 1
可以理解的是,根据DDR在第一时隙的吞吐率调节DDR在第一时隙的频率和/或电压的具体实现方式并不仅限于以上三种,本申请实施例对此不再一一列举。It can be understood that the specific implementations of adjusting the frequency and/or voltage of the DDR in the first time slot according to the throughput rate of the DDR in the first time slot are not limited to the above three, and the embodiments of the present application will not list them one by one. .
步骤202,在第一时隙,基于DDR在第一时隙的频率和/或电压,对DDR读取和/或写入第一传输块的译码数据,第一传输块是经PDSCH传输的。 Step 202, in the first time slot, based on the frequency and/or voltage of the DDR in the first time slot, read and/or write the decoded data of the first transmission block to the DDR, the first transmission block is transmitted via the PDSCH .
也就是说,本申请实施例中DDR可以存储第一传输块的译码数据,而该第一传输块是经PDSCH传输的,因此,在不同的PDSCH的时隙之间,DDR的吞吐率有可能出现较大的变化。That is to say, in the embodiment of the present application, the DDR can store the decoded data of the first transport block, and the first transport block is transmitted via the PDSCH. Therefore, the throughput rate of the DDR is limited between different PDSCH time slots. Larger changes are possible.
在第一时隙内,处理器11对第一传输块进行译码,且按照DDR传输机制从DDR读取和/或写入译码数据。一般来说,该DDR传输机制主要由下行控制信息(Downlink control information,DCI)和译码情况决定。In the first time slot, the processor 11 decodes the first transmission block, and reads and/or writes the decoded data from the DDR according to the DDR transmission mechanism. Generally speaking, the DDR transmission mechanism is mainly determined by downlink control information (Downlink control information, DCI) and decoding conditions.
例如,在对第一传输块译码的过程中,需要分别对第一传输块中的每个编码块进行译码。以其中一个编码块为例,需要先对编码块执行循环冗馀校验(cyclic redundancy check,CRC)。编码块中包括CRC校验码,所谓CRC校验,主要包括对编码块CRC校验码进行校验。For example, in the process of decoding the first transmission block, each coded block in the first transmission block needs to be decoded separately. Taking one of the coding blocks as an example, a cyclic redundancy check (CRC) needs to be performed on the coding block first. The encoding block includes a CRC check code, and the so-called CRC check mainly includes checking the CRC check code of the encoding block.
可选地,CRC结果主要包括以下几种情况:Optionally, the CRC result mainly includes the following situations:
(1)当编码块的CRC出现错误时,将CRC错误的编码块对应的压缩后的软比特数据写入DDR;(1) When an error occurs in the CRC of the coded block, the compressed soft bit data corresponding to the coded block with the CRC error is written into the DDR;
(2)当编码块的CRC正确,且在第一传输块中,该编码块之前的编码块皆CRC正确时,将该编码块进行解密,并将解密得到的解密数据写入DDR;处理器11中的包流量加速器(Package Traffic Accelerator,PTA)可以读取DDR中的解密后的解密数据,并将解密数据传输至高层;(2) When the CRC of the coded block is correct, and in the first transmission block, when all the CRCs of the coded blocks before the coded block are correct, the coded block is decrypted, and the decrypted data obtained by decryption is written into the DDR; processor The Package Traffic Accelerator (PTA) in 11 can read the decrypted decrypted data in the DDR, and transmit the decrypted data to the upper layer;
3)当编码块的CRC正确,且在第一传输块中,该编码块之前存在CRC错误的编码块时,将该编码块的硬比特数据写入DDR。3) When the CRC of the coded block is correct and there is a coded block with a CRC error before the coded block in the first transmission block, write the hard bit data of the coded block into the DDR.
在当前的第一传输块为初传的第一传输块时,若第一传输块存在编码块CRC错误的情况下,系统10将会再次接收到重传的第一传输块,并对重传的第一传输块再次进行译码,也就是重传译码。在重传译码过程中:When the current first transmission block is the first transmission block initially transmitted, if the first transmission block has a CRC error in the encoding block, the system 10 will receive the retransmitted first transmission block again, and The first transmission block of is decoded again, that is, retransmission decoding. During the retransmission decoding process:
(1)对前一次CRC错误的编码块再次进行CRC。在此过程中,需要将压缩后的软比特数据从DDR中读取到片上存储器中,与片上存储器中的软比特数据进行合并,并对合并后的软比特数据进行CRC。(1) Carry out CRC again on the coding block whose CRC was wrong in the previous time. During this process, the compressed soft bit data needs to be read from the DDR to the on-chip memory, combined with the soft bit data in the on-chip memory, and CRC is performed on the combined soft bit data.
(2)对前一次CRC正确但存储了硬比特数据的编码块,从DDR读取该编码块的硬比特数据,并对读取的硬比特数据进行解密,将解密后的解密数据写入DDR。继而,可以由PTA读取该解密数据。(2) Read the hard bit data of the encoded block from the DDR for the coded block whose CRC is correct but stores the hard bit data, and decrypt the read hard bit data, and write the decrypted decrypted data into the DDR . This decrypted data can then be read by the PTA.
为了便于理解,本申请实施例接下来以图3和图4为例,分别对第一传输块为初传情况和第一传输块为重传情况下,DDR的传输机制进行示例性说明:In order to facilitate understanding, the embodiment of the present application next uses Figure 3 and Figure 4 as examples to illustrate the DDR transmission mechanism when the first transmission block is an initial transmission and when the first transmission block is a retransmission:
如图3所示,图3给了一种初传情况下的传输块中各编码块的实施例,传输块TB0包括编码块CB0至CB4。假设,CB0、CB2、CB3的CRC正确,CB1、CB4的CRC错误。As shown in FIG. 3 , FIG. 3 gives an embodiment of each coding block in a transmission block in the case of initial transmission, and the transmission block TB0 includes coding blocks CB0 to CB4 . Assume that the CRCs of CB0, CB2 and CB3 are correct, and the CRCs of CB1 and CB4 are wrong.
其中,编码块CB0译码正确,并且CB0之前不存在译码错误的编码块,在这种情况下,物理层将CB0递交给数据面,数据面对编码块CB0进行解密并将解密之后的解密数据写入DDR。继而,PTA从DDR中读取编码块CB0对应的解密数据传输给高层。Among them, the coding block CB0 is decoded correctly, and there is no decoding error coding block before CB0. In this case, the physical layer submits CB0 to the data plane, and the data plane decrypts the coding block CB0 and decrypts the decrypted Data is written to DDR. Then, the PTA reads the decrypted data corresponding to the encoded block CB0 from the DDR and transmits it to the upper layer.
编码块CB1译码错误,在这种情况下,物理层把编码块CB1的软比特数据写入DDR,等待重传合并。The coded block CB1 is decoded incorrectly. In this case, the physical layer writes the soft bit data of the coded block CB1 into the DDR, waiting for retransmission and combination.
编码块CB2和CB3译码正确,但是CB2和CB3之前的编码块CB1译码错误,在这种情况下,数据 面不对CB2和CB3进行解密操作,而是将CB2和CB3的硬比特数据写入DDR中暂存。The coded blocks CB2 and CB3 are decoded correctly, but the coded block CB1 before CB2 and CB3 is decoded incorrectly. In this case, the data plane does not decrypt CB2 and CB3, but writes the hard bit data of CB2 and CB3 into Temporary storage in DDR.
如图4所示,图4给了一种重传情况下的传输块中各编码块的实施例,传输块TB0包括编码块CB0至CB4。假设,编码块CB0、CB2、CB3在初传时CRC正确,CB1、CB4的CRC错误。As shown in FIG. 4, FIG. 4 gives an embodiment of each coded block in a transport block in the case of retransmission, and the transport block TB0 includes coded blocks CB0 to CB4. Assume that the CRCs of the coding blocks CB0, CB2, and CB3 are correct when they are initially transmitted, and the CRCs of CB1 and CB4 are wrong.
对于编码块CB0、CB2、CB3,由于在初传时CRC正确,CBO之前没有出现错误编码块,直接将CB0给到数据面进行解密,CB2、CB3的CRC正确,但是之前出现CRC错误的CB1,因此,将CB2和CB3的硬比特写入DDR中。重传时刻从DDR读取编码块CB1、CB4的软比特数据,写入片上存储器进行合并,在编码块CB1、CB4合并后的软比特数据CRC正确后,将合并后的软比特数据从物理层递交给数据面,数据面把CB2、CB3的硬比特数据从DDR读取出来,连同CB1、CB4进行解密操作,此时,得到CB1、CB2、CB3、CB4的解密数据,PTA从DDR中读取CB1、CB2、CB3、B4解密数据传给高层。For coded blocks CB0, CB2, and CB3, since the CRC is correct at the initial transmission, there is no wrong coded block before CBO, and CB0 is directly sent to the data plane for decryption. The CRCs of CB2 and CB3 are correct, but CB1, which had a CRC error before, Therefore, the hard bits of CB2 and CB3 are written into the DDR. At the time of retransmission, read the soft bit data of the coding blocks CB1 and CB4 from the DDR, write them into the on-chip memory for merging, and after the CRC of the combined soft bit data of the coding blocks CB1 and CB4 is correct, transfer the combined soft bit data from the physical layer Submitted to the data plane, the data plane reads the hard bit data of CB2 and CB3 from DDR, and performs decryption operation together with CB1 and CB4. At this time, the decrypted data of CB1, CB2, CB3 and CB4 are obtained, and PTA reads them from DDR CB1, CB2, CB3, and B4 decrypt the data and transmit it to the upper layer.
参考图4,TB0还包括编码块CB5、CB6、CB7、CB8、CB9,其中,编码块CB5、CB6、CB8译码错误,此时,物理层把编码块CB5、CB6、CB8的软比特写入DDR,等待重传合并。编码块CB7和CB9译码正确,但是由于CB7和CB9之前的编码块(CB8)译码错误,因此,数据面不对CB7和CB9进行解密操作,把CB7和CB9硬比特写入DDR。Referring to Fig. 4, TB0 also includes coded blocks CB5, CB6, CB7, CB8, CB9, wherein, coded blocks CB5, CB6, CB8 decoding errors, at this time, the physical layer writes the soft bits of coded blocks CB5, CB6, CB8 DDR, waiting for retransmission coalescing. Coded blocks CB7 and CB9 are decoded correctly, but because the coded block (CB8) before CB7 and CB9 is decoded incorrectly, the data plane does not decrypt CB7 and CB9, and writes the hard bits of CB7 and CB9 into DDR.
基于上述DDR传输机制,在对DDR进行写入操作的过程中,所产生的软比特数据包括在编码块的CRC出现错误时,编码块对应的软比特数据;硬比特数据包括在编码块CRC正确,且针对编码块所在的传输块,在编码块之前存在CRC出现错误的编码块时,编码块对应的硬比特数据;译码数据包括在编码块CRC正确,且针对编码块所在的传输块,在编码块之前不存在CRC错误的编码块时,编码块对应的译码数据。Based on the above DDR transmission mechanism, in the process of writing to DDR, the soft bit data generated includes the soft bit data corresponding to the code block when the CRC of the code block is wrong; the hard bit data is included when the CRC of the code block is correct. , and for the transmission block where the coding block is located, when there is a coding block with a CRC error before the coding block, the hard bit data corresponding to the coding block; the decoded data is included in the coding block CRC is correct, and for the transmission block where the coding block is located, When there is no coded block with CRC error before the coded block, the decoded data corresponding to the coded block.
可以理解的是,本申请实施例中,需要在第一时隙之前确定DDR在第一时隙的吞吐率。示例性的,可以根据上一时隙的数据访问量来确定下一时隙的吞吐率,在其中一个可选的实施例中,如图5所示,该方法包括:It can be understood that, in the embodiment of the present application, it is necessary to determine the throughput rate of the DDR in the first time slot before the first time slot. Exemplarily, the throughput rate of the next time slot may be determined according to the data access amount of the previous time slot. In one optional embodiment, as shown in FIG. 5, the method includes:
步骤301,根据DDR在第二时隙的数据访问量,确定DDR在第一时隙的数据访问量,第二时隙为第一时隙的前一时隙。Step 301: Determine the data access amount of the DDR in the first time slot according to the data access amount of the DDR in the second time slot, where the second time slot is the previous time slot of the first time slot.
其中,数据访问量指的是根据在进行传输块译码的过程中,从DDR读取和/或写入的译码数据的数据量所确定的数据访问量。Wherein, the data access amount refers to the data access amount determined according to the data amount of decoded data read and/or written from the DDR during the decoding process of the transport block.
可选地,第一时隙的数据访问量与第二时隙的数据访问量之间满足以下公式:Optionally, the following formula is satisfied between the data access amount of the first time slot and the data access amount of the second time slot:
De=(1-a)*Dh+a*DlDe=(1-a)*Dh+a*Dl
其中,De为计算得到的DDR在第一时隙的数据访问量,Dh为DDR在第二时隙的前一时隙内的数据访问量,Dl为DDR在第二时隙内的数据访问量,a大于0且小于或等于1,示例地,这里a可以设置为0.4。Wherein, De is the data access amount of the DDR calculated in the first time slot, Dh is the data access amount of the DDR in the previous time slot of the second time slot, and D1 is the data access amount of the DDR in the second time slot, a is greater than 0 and less than or equal to 1, for example, here a may be set to 0.4.
在本申请实施例中,可以根据第二时隙DDR的数据访问量来确定第一时隙DDR的数据访问量,其中,DR在第二时隙的数据访问量包括在第二时隙中第二传输块的译码数据的数据量,第二传输块为第一传输块的前一传输块,第二传输块的译码数据包括第二传输块中每个编码块的软比特数据或硬比特数据或解密数据;或者,还可以根据历史时隙的DDR的数据访问量来确定第一时隙DDR的数据访问量,其中,历史时隙可以为第一时隙的前一个时隙,也可以为第一时隙的前几个时隙。In this embodiment of the application, the data access amount of the DDR in the first time slot can be determined according to the data access amount of the DDR in the second time slot, wherein the data access amount of the DR in the second time slot includes the data access amount of the second time slot in the second time slot. The data volume of the decoded data of two transport blocks, the second transport block is the previous transport block of the first transport block, and the decoded data of the second transport block includes soft bit data or hard bit data of each coded block in the second transport block bit data or decrypted data; or, the data access amount of the first time slot DDR can also be determined according to the data access amount of the DDR of the historical time slot, wherein, the historical time slot can be the previous time slot of the first time slot, or It may be the first several time slots of the first time slot.
示例性的,由上述DDR传输机制可见,对CRC成功或失败的编码块的处理,会对DDR造成不同次数的访问,从而影响DDR的数据访问量。因此,本申请实施例中,DDR的数据访问量可以是根据本实施例提供的DDR的传输机制来确定的,通过分析第二时隙所处理的第二传输块中,各编码块进行对应的DDR的访问操作,从而确定第二时隙的DDR的数据访问量,进而计算得到DDR在第一时隙的数据访问量。Exemplarily, it can be seen from the above-mentioned DDR transmission mechanism that the processing of coded blocks whose CRC succeeds or fails will cause different times of access to the DDR, thereby affecting the data access volume of the DDR. Therefore, in the embodiment of the present application, the data access amount of DDR can be determined according to the DDR transmission mechanism provided in this embodiment, by analyzing the second transmission block processed in the second time slot, each coding block performs corresponding The DDR access operation determines the data access amount of the DDR in the second time slot, and then calculates the data access amount of the DDR in the first time slot.
步骤302,基于计算得到的DDR在第一时隙的数据访问量,以及对第一传输块的译码用时,计算得到DDR在第一时隙的吞吐率。Step 302: Calculate the throughput rate of the DDR in the first time slot based on the calculated data access amount of the DDR in the first time slot and the decoding time for the first transport block.
在本实施例中,DDR的吞吐率指的是单位时间内对DDR的数据访问量,在计算得到第一时隙的DDR的数据访问量,可以确定第一时隙的DDR的吞吐率。In this embodiment, the throughput of the DDR refers to the data access volume of the DDR per unit time. After calculating the data access volume of the DDR in the first time slot, the throughput rate of the DDR in the first time slot can be determined.
可选地,可以根据DDR在第一时隙的数据访问量,以及对第一传输块的译码用时,计算DDR在第一时隙的吞吐率。Optionally, the throughput rate of the DDR in the first time slot may be calculated according to the data access amount of the DDR in the first time slot and the decoding time for the first transport block.
其中,第一传输块的译码用时可以理解为对第一传输块完成一次译码所需的时间。Wherein, the decoding time of the first transmission block may be understood as the time required for one decoding of the first transmission block.
其中,吞吐率的具体计算公式如下:Among them, the specific calculation formula of the throughput rate is as follows:
吞吐率=DDR的数据访问量/N1Throughput rate = data access volume of DDR/N1
其中,N1为第一传输块的译码用时,需要说明的是,根据不同的终端的能力N1值不同。Wherein, N1 is used for decoding the first transport block. It should be noted that the value of N1 is different according to the capabilities of different terminals.
在本实施例中,根据第二时隙中对DDR的访问造成的数据访问量确定第一时隙的数据访问量,从而根据第一时隙的数据访问量计算第一时隙的吞吐率。基于数据访问量来计算吞吐率的方法,得到的吞吐 率较为准确,从而可以比较准确地调节第一时隙的频率和/或电压。In this embodiment, the data access amount of the first time slot is determined according to the data access amount caused by the access to the DDR in the second time slot, so as to calculate the throughput rate of the first time slot according to the data access amount of the first time slot. In the method of calculating the throughput rate based on the amount of data access, the obtained throughput rate is more accurate, so that the frequency and/or voltage of the first time slot can be adjusted more accurately.
在前述实施例中,本申请多从PDSCH为单载波信道的情况进行了说明,即处理器11在一个时隙内,从DDR读取和/或写入一个传输块的译码数据。可以理解的是,目前PDSCH多为多载波信道,多个载波可以同时并行传输多个传输块。在一种可能的实现方式中,可以按照前述实施例分别估计第一时隙中,并行传输的多个传输块分别对应的吞吐率,以得到DDR在第一时隙的吞吐率。In the above-mentioned embodiments, the present application mainly describes the case where the PDSCH is a single-carrier channel, that is, the processor 11 reads and/or writes decoded data of one transport block from the DDR within one time slot. It can be understood that the current PDSCH is mostly a multi-carrier channel, and multiple carriers can transmit multiple transport blocks in parallel at the same time. In a possible implementation manner, the respective throughput rates corresponding to the multiple transport blocks transmitted in parallel in the first time slot may be estimated according to the foregoing embodiments, so as to obtain the throughput rate of the DDR in the first time slot.
示例性的,每次调整DDR的电压和/或频率时,会有一段时间无法访问DDR,因此,应该尽量避免每个时隙频繁多次地调整DDR的电压和/或频率,在这种情况下,尤其是针对多载波的场景,可以根据各载波的传输块在第二时隙对应的DDR的吞吐率、以及各载波的传输块的译码起始时刻,确定调整第一时隙DDR频率的时刻。Exemplarily, each time the voltage and/or frequency of the DDR is adjusted, there will be a period of time when the DDR cannot be accessed. Therefore, it should be avoided to adjust the voltage and/or frequency of the DDR frequently and multiple times in each time slot. In this case In this case, especially for multi-carrier scenarios, the DDR frequency of the first time slot can be adjusted according to the DDR throughput rate corresponding to the transport block of each carrier in the second time slot and the decoding start time of the transport block of each carrier. moment.
在其中一个可选的实施例中,第一信道包括多个载波,每个载波皆用于接收传输块,根据DDR在第一时隙的吞吐率,调节DDR在第一时隙的频率和/或电压,包括:In one of the optional embodiments, the first channel includes a plurality of carriers, each carrier is used to receive the transport block, and the frequency and/or frequency of the DDR in the first time slot is adjusted according to the throughput rate of the DDR in the first time slot or voltage, including:
在第一时隙中各传输块的译码起始时刻与第一时隙的起始时刻之间的时间间隔皆不大于第一阈值时,根据计算得到的DDR在第一时隙的吞吐率,配置DDR在第一时隙的起始时间点的频率和/或电压,并保持DDR在第一时隙的频率和/或电压。When the time interval between the decoding start time of each transport block in the first time slot and the start time of the first time slot is not greater than the first threshold, according to the calculated DDR throughput in the first time slot , configure the frequency and/or voltage of the DDR at the start time point of the first time slot, and maintain the frequency and/or voltage of the DDR in the first time slot.
示例性的,如图6所示,图6中包括三个传输块TB0、TB1、TB2,其中,t为第一阈值,显然,如图6所示,TB0的译码启示时刻、TB1的译码启示时刻、TB2的译码启示时刻与第一时隙的起始时刻之间的时间间隔均小于第一阈值t,在这种情况下,处理器可以根据DDR在第一时隙的吞吐率,配置DDR在第一时隙的起始时间点的频率,并保持DDR在第一时隙的频率。Exemplarily, as shown in FIG. 6, there are three transmission blocks TB0, TB1, and TB2 in FIG. 6, where t is the first threshold. Obviously, as shown in FIG. The code enlightenment moment, the time interval between the decoding revelation moment of TB2 and the start moment of the first time slot are all less than the first threshold t, in this case, the processor can , configure the frequency of the DDR at the start time point of the first time slot, and maintain the frequency of the DDR in the first time slot.
进一步地,为了更准确地进行吞吐率的计算以及DDR的频率和/或电压调节,可选地,在第一时隙之后,还可以基于第一时隙中DDR的实际吞吐率与计算得到的DDR的吞吐率之间的差值,修正计算得到的第三时隙中DDR的吞吐率,其中,该第三时隙可以是第一时隙的下一时隙。Further, in order to more accurately calculate the throughput and adjust the frequency and/or voltage of the DDR, optionally, after the first time slot, the actual throughput of the DDR in the first time slot and the calculated The difference between the throughput rates of the DDRs is used to correct the calculated throughput rates of the DDRs in the third time slot, where the third time slot may be the next time slot of the first time slot.
以图6为例,图6中存在三个传输块CC0 TB0、CC1 TB0、CC2 TB1,其各自对应的译码起始时刻与第二时隙的起始时刻的时间间隔均小于第一阈值,在这种情况下。第一时隙的吞吐率为传输块CC0 TB0、CC1 TB0、CC2 TB1的吞吐率之和,也即,通过计算CC0 TB0、CC1 TB0、CC2 TB1的吞吐率之和和CC0 TB0、CC1 TB0、CC2 TB1实际的吞吐率之和之间的差值,在差值大于第一预设阈值的情况下,对下一时隙的吞吐率进行修正。Taking Figure 6 as an example, there are three transmission blocks CC0 TB0, CC1 TB0, and CC2 TB1 in Figure 6, and the time intervals between their corresponding decoding start moments and the start moments of the second time slot are all smaller than the first threshold, in this case. The throughput rate of the first time slot is the sum of the throughput rates of the transmission blocks CC0 TB0, CC1 TB0, CC2 TB1, that is, by calculating the sum of the throughput rates of CC0 TB0, CC1 TB0, CC2 TB1 and CC0 TB0, CC1 TB0, CC2 The difference between the sums of the actual throughput rates of TB1, if the difference is greater than the first preset threshold, the throughput rate of the next time slot is corrected.
如图6所示的场景中,第一时隙中DDR的实际吞吐率可以是CC0 TB0、CC1 TB0和CC2 TB1的实际吞吐率之和,计算得到的DDR的吞吐率为计算得到的CC0 TB0、CC1 TB0和CC2 TB1的吞吐率之和。基于第一时隙中DDR的实际吞吐率与计算得到的DDR的吞吐率之间的差值,修正计算得到的第三时隙中DDR的吞吐率,若第一时隙中DDR的实际吞吐率减去计算得到的DDR的吞吐率之间的差值大于第一预设阈值,在这种情况下,需要增大计算得到的第三时隙中DDR的吞吐率。若计算得到的DDR的吞吐率减去第一时隙中DDR的实际吞吐率的差值大于第一预设阈值,在这种情况下,需要减小计算得到的第三时隙中DDR的吞吐率。In the scenario shown in Figure 6, the actual throughput rate of DDR in the first time slot can be the sum of the actual throughput rates of CC0 TB0, CC1 TB0, and CC2 TB1, and the calculated DDR throughput rate is the calculated CC0 TB0, CC0 TB0, The sum of the throughput rates of CC1 TB0 and CC2 TB1. Based on the difference between the actual throughput rate of DDR in the first time slot and the calculated DDR throughput rate, correct the calculated throughput rate of DDR in the third time slot, if the actual throughput rate of DDR in the first time slot The difference between the calculated DDR throughput minus the calculated DDR is greater than the first preset threshold. In this case, the calculated DDR throughput in the third time slot needs to be increased. If the difference between the calculated DDR throughput minus the actual DDR throughput in the first time slot is greater than the first preset threshold, in this case, you need to reduce the calculated DDR throughput in the third time slot Rate.
可选的,在另一种场景中,根据DDR在第一时隙的吞吐率,调节DDR在第一时隙的频率,如图7所示,包括:Optionally, in another scenario, according to the throughput rate of the DDR in the first time slot, the frequency of the DDR in the first time slot is adjusted, as shown in FIG. 7 , including:
步骤401,在第一时隙中存在第三传输块时,根据计算得到的DDR在第一时隙的吞吐率,配置DDR在第一时隙的起始时间点的频率和/或电压。 Step 401, when there is a third transmission block in the first time slot, configure the frequency and/or voltage of the DDR at the start time point of the first time slot according to the calculated throughput of the DDR in the first time slot.
其中,第三传输块的译码起始时刻与第一时隙的起始时刻之间的间隔大于第一阈值。Wherein, the interval between the decoding start time of the third transmission block and the start time of the first time slot is greater than the first threshold.
可选地,计算得到的DDR在第一时隙的吞吐率包括从DDR读取和/或写入译码起始时刻与第一时隙的起始时刻的时间间隔小于第一阈值的传输块的译码数据的吞吐率之和。Optionally, the calculated throughput rate of the DDR in the first time slot includes transport blocks whose time interval between the start time of decoding and the start time of the first time slot for reading and/or writing from the DDR is smaller than the first threshold The sum of the throughput rates of the decoded data.
参考图8所示,图8中PDSCH包括3个载波CC0/CC1/CC2,各个载波中的传输块的译码起始时刻可参考图8所示。在第一时隙,需要对CC0传输的TB0、CC1传输的TB0和CC2传输的TB1进行译码。其中,CC2 TB1为第三传输块,CC2 TB1与第一时隙的起始时刻之间的间隔大于第一阈值t。那么,在第一时隙之前,计算得到的DDR在第一时隙的吞吐率包括从DDR读取和/或写入CC0 TB0和CC1 TB0的译码数据的吞吐率之和,根据该吞吐率之和调整第一时隙的起始时间点的频率和/或电压。Referring to FIG. 8 , the PDSCH in FIG. 8 includes 3 carriers CC0/CC1/CC2, and the decoding start time of the transport blocks in each carrier can refer to FIG. 8 . In the first time slot, TB0 transmitted by CC0, TB0 transmitted by CC1, and TB1 transmitted by CC2 need to be decoded. Wherein, CC2 TB1 is the third transmission block, and the interval between CC2 TB1 and the start moment of the first time slot is greater than the first threshold t. Then, before the first time slot, the calculated throughput of the DDR in the first time slot includes the sum of the throughput rates of the decoded data read from and/or written to CC0 TB0 and CC1 TB0 from the DDR, according to the throughput The sum adjusts the frequency and/or voltage at the start time point of the first time slot.
在本实施例中,还可以参考图9所示,图9中涉及3个载波CC0/CC1/CC2,收到载波CC0的传输块TB0的下行控制信息(Downlink control information,DCI)后,接收传输块TB0。以及在接收到传输块TB0后,确定其对应的吞吐率Tput1,收到载波CC1的传输块TB0的DCI后,接收传输块TB0。以及在接收到传输块TB0后,确定其对应的吞吐率Tput2,接收到载波CC2的传输块TB1的DCI之后,接收传输块TB1。以及在接收到传输块TB1后,确定对应的吞吐率Tput3。In this embodiment, reference may also be made to FIG. 9, which involves three carriers CC0/CC1/CC2. After receiving the downlink control information (Downlink control information, DCI) of the transmission block TB0 of the carrier CC0, the transmission is received. Block TB0. And after receiving the transport block TB0, determine its corresponding throughput rate Tput1, and receive the transport block TB0 after receiving the DCI of the transport block TB0 of the carrier CC1. And after receiving the transport block TB0, determine its corresponding throughput rate Tput2, and after receiving the DCI of the transport block TB1 of the carrier CC2, receive the transport block TB1. And after receiving the transport block TB1, determine the corresponding throughput rate Tput3.
步骤402,根据读取和/或写入第三传输块的译码数据的数据量增大DDR在第三传输块的译码起始时刻之后的频率和/或电压。Step 402: Increase the frequency and/or voltage of the DDR after the decoding start moment of the third transmission block according to the data volume of the decoded data read and/or written into the third transmission block.
在本实施例中,在对第三传输块进行DDR的读取和/或写入操作过程中,还可以基于第三传输块的译码数据的数据量,来调节第三传输块的译码起始时刻之后的频率,也即,随着基于第三传输块的对DDR的数据访问量增多,动态增大第三传输块的译码起始时刻之后的频率,来满足DDR的带宽需求。In this embodiment, during the DDR read and/or write operation on the third transmission block, the decoding of the third transmission block may also be adjusted based on the data amount of the decoded data of the third transmission block. The frequency after the start time, that is, as the data access to DDR based on the third transmission block increases, the frequency after the decoding start time of the third transmission block is dynamically increased to meet the bandwidth requirement of DDR.
如前述类似,为了更准确地进行吞吐率的计算以及DDR的频率和/或电压调节,可选地,在第一时隙之后,还可以基于第一时隙中DDR的实际吞吐率与计算得到的DDR的吞吐率之间的差值,修正计算得到的第三时隙中DDR的吞吐率,其中,该第三时隙可以是第一时隙的下一时隙。Similar to the above, in order to more accurately calculate the throughput and adjust the frequency and/or voltage of the DDR, optionally, after the first time slot, it can also be calculated based on the actual throughput of the DDR in the first time slot and the calculated The difference between the throughput rates of the DDRs is corrected to the calculated throughput rate of the DDR in the third time slot, where the third time slot may be the next time slot of the first time slot.
如图8所示,可以设定第一时隙中CC0的传输块TB0和CC1的传输块TB0的译码起始时刻与第一时隙的起始时刻(图8中的虚线圈1)之间的时间间隔不大于第一阈值,CC2 TB1的译码起始时刻与第一时隙的起始时刻之间的时间间隔大于第一阈值,CC2 TB1为第三传输块。在第二时隙中,还可以在对CC2 TB1进行DDR的读取和/或写入操作过程中,根据读取和/或写入CC2 TB1的译码数据的数据量增大DDR在CC2 TB1的译码起始时刻之后的频率和/或电压。As shown in Figure 8, the difference between the decoding start time of the transport block TB0 of CC0 and the transport block TB0 of CC1 in the first time slot and the start time of the first time slot (dotted circle 1 in Figure 8) can be set The time interval between is not greater than the first threshold, the time interval between the decoding start time of CC2 TB1 and the start time of the first time slot is greater than the first threshold, and CC2 TB1 is the third transport block. In the second time slot, during the read and/or write operation of DDR to CC2 TB1, the DDR can be increased in CC2 TB1 according to the amount of decoded data read and/or written to CC2 TB1. The frequency and/or voltage after the start of decoding.
可选地,这种场景下,处理器可以根据计算得到多个传输块的吞吐率之和以及第一时隙中各个传输块实际的吞吐率之和之间的差值,对第三时隙的吞吐率进行修正。与上述修正方法类似的,若差值大于第一预设阈值,则对第三时隙的吞吐率进行修正,若差值不大于第一预设阈值,则不需要对第三时隙的吞吐率进行修正,本实施例对此不做限定。Optionally, in this scenario, the processor may calculate the difference between the calculated throughput sum of multiple transport blocks and the actual throughput sum of each transport block in the first time slot, for the third time slot The throughput rate is corrected. Similar to the correction method above, if the difference is greater than the first preset threshold, the throughput of the third time slot is corrected, and if the difference is not greater than the first preset threshold, the throughput of the third time slot is not required. rate, which is not limited in this embodiment.
如图8所示,传输块CC2 TB1的译码起始时刻与第一时隙的起始时刻的时间间隔大于第一阈值t,在这种情况下,在对第一时隙的吞吐率进行修正的过程中,又可以分为两种情况。As shown in Figure 8, the time interval between the decoding start moment of transport block CC2 TB1 and the start moment of the first time slot is greater than the first threshold t, in this case, when the throughput rate of the first time slot is calculated There are two situations in the correction process.
第一种情况,在获取第一时隙的计算得到的吞吐率时,还没获取到CC2 TB1的吞吐率,也即,在第一时隙之前,第一时隙计算得到的吞吐率只有CC0 TB0、CC1 TB0的吞吐率之和,此时,计算CC0 TB0、CC1 TB0的吞吐率之和与CC0 TB0、CC1 TB0实际的吞吐率之和之间的差值,若差值大于第一预设阈值,则对计算得到的第三时隙中DDR的吞吐率进行修正。In the first case, when obtaining the calculated throughput rate of the first time slot, the throughput rate of CC2 TB1 has not been obtained, that is, before the first time slot, the calculated throughput rate of the first time slot is only CC0 The sum of the throughput rates of TB0, CC1 TB0, at this time, calculate the difference between the sum of the throughput rates of CC0 TB0, CC1 TB0 and the actual sum of the throughput rates of CC0 TB0, CC1 TB0, if the difference is greater than the first preset threshold, the calculated throughput of the DDR in the third time slot is corrected.
第二种情况,虽然CC2 TB1的译码起始时刻与当前时隙的起始时刻的时间间隔大于第一阈值,但在第一时隙期间,仍可以计算得到CC0 TB0、CC1 TB0、CC2 TB1的吞吐率之和,那么在这种情况下,处理器可以计算CC0 TB0、CC1 TB0、CC2 TB1的吞吐率之和与CC0 TB0、CC1 TB0、CC2 TB1实际的吞吐率之和之间的差值,在差值大于第一预设阈值的情况下,对下一时隙的吞吐率进行修正。In the second case, although the time interval between the decoding start time of CC2 TB1 and the start time of the current time slot is greater than the first threshold, CC0 TB0, CC1 TB0, and CC2 TB1 can still be calculated during the first time slot In this case, the processor can calculate the difference between the sum of the throughput of CC0 TB0, CC1 TB0, and CC2 TB1 and the actual sum of the throughput of CC0 TB0, CC1 TB0, and CC2 TB1 , if the difference is greater than the first preset threshold, modify the throughput of the next time slot.
在本实施例中,在存在多个载波的场景下,根据第二时隙中各个载波中涉及到的传输块的所有编码块的数据访问量来确定第一时隙的吞吐率,其计算得到的吞吐率比较准确。In this embodiment, in the scenario where there are multiple carriers, the throughput rate of the first time slot is determined according to the data access volume of all coded blocks involved in the transport blocks involved in each carrier in the second time slot, which is calculated as The throughput rate is more accurate.
可选地,在其中一个可选的实施例中,DDR的吞吐率的门限值包括最高门限值和最低门限值,上述方法还包括:Optionally, in one of the optional embodiments, the threshold value of the DDR throughput rate includes a highest threshold value and a lowest threshold value, and the above method also includes:
在DDR的吞吐率大于最高门限值时,按照最高门限值调节DDR在第一时隙的频率和/或电压;和/或,在DDR的吞吐率小于最低门限值时,按照最低门限值调节DDR在第一时隙的频率和/或电压。When the throughput rate of DDR is greater than the highest threshold value, adjust the frequency and/or voltage of DDR in the first time slot according to the highest threshold value; Limits adjust the frequency and/or voltage of the DDR in the first time slot.
在本实施例中,若DDR的吞吐率大于最高门限值,由于DDR的所支持的最大吞吐率或最大带宽即为最高门限值,在这种情况下,则将按照最高门限值调节DDR的吞吐率,并基于调节之后的DDR的吞吐率调节第一时隙的频率和/或电压;若DDR的吞吐率小于最低门限值,由于DDR的所支持的最小吞吐率或最小带宽即为最低门限值,在这种情况下,则按照最低门限值调节DDR的吞吐率,并基于调节之后的DDR的吞吐率调节第一时隙的频率和/或电压,本实施例对此不做限定。In this embodiment, if the throughput rate of DDR is greater than the highest threshold value, since the maximum throughput rate or maximum bandwidth supported by DDR is the highest threshold value, in this case, the maximum threshold value will be adjusted The throughput rate of DDR, and adjust the frequency and/or voltage of the first time slot based on the throughput rate of DDR after adjustment; If the throughput rate of DDR is less than the minimum threshold value, because the minimum throughput rate or minimum bandwidth supported by DDR is is the lowest threshold value, in this case, adjust the throughput rate of DDR according to the lowest threshold value, and adjust the frequency and/or voltage of the first time slot based on the adjusted DDR throughput rate, this embodiment No limit.
进一步地,基于下行接收过程中的编码块的可能出现初传和/或重传的情况,在初传的情况下,最低门限值包括初传最低门限值,最高门限值包括初传最高门限值;Further, based on the possibility of initial transmission and/or retransmission of the coding block in the downlink receiving process, in the case of initial transmission, the minimum threshold value includes the minimum threshold value for initial transmission, and the highest threshold value includes the highest threshold;
其中,初传最低门限值等于当前时隙中传输块的数据量。Wherein, the minimum threshold value of the initial transmission is equal to the data volume of the transmission block in the current time slot.
在本实施例中,初传的最低门限出现的场景为所有的编码块CB的CRC均译码正确,在这种场景下,执行的操作包括“将CRC正确的编码块进行解密,并将解密数据写入DDR;通过包流量加速器读取DDR中的解密数据,并将解密数据传输至高层”,将解密数据写入DDR涉及到对DDR的访问,读取DDR中的解密数据也涉及到对DDR的访问,但是包流量加速器读取DDR中的解密数据不在物理层统计范围内,因此,在这种场景下,DDR的数据访问量包括将所有编码块对应的解密之后的数据写入DDR,此时,最低门限就等于所有传输块大小。In this embodiment, the scenario where the lowest threshold of initial transmission occurs is that the CRCs of all coded blocks CB are decoded correctly. In this scenario, the operations to be performed include "decrypt the coded blocks with Write data into DDR; read the decrypted data in DDR through the packet traffic accelerator, and transmit the decrypted data to the upper layer", writing decrypted data into DDR involves access to DDR, and reading decrypted data in DDR also involves access to DDR access, but the decrypted data in the DDR read by the packet traffic accelerator is not within the statistical range of the physical layer. Therefore, in this scenario, the data access volume of the DDR includes writing the decrypted data corresponding to all encoded blocks into the DDR. At this point, the lowest threshold is equal to all transport block sizes.
初传最高门限值为根据传输块的数据量、码率、DDR上存储的每个软比特的比特数和片上存储器的剩余容量中的至少一个确定的;片上存储器的剩余容量根据片上存储器的总容量、片上存储器的存储比例阈值和片上存储器得到已占用容量中的至少一个确定。The initial transmission maximum threshold value is determined according to at least one of the data volume of the transmission block, the code rate, the number of bits of each soft bit stored on the DDR, and the remaining capacity of the on-chip memory; the remaining capacity of the on-chip memory is based on the on-chip memory. The total capacity, the storage ratio threshold of the on-chip memory, and the on-chip memory are determined by at least one of the occupied capacity.
在本实施例中,初传的最高门限出现的场景是所有的编码块CB的CRC均译码错误,在这种场景下,执行的操作为“将CRC错误的编码块对应的压缩后的软比特写入DDR”,此时,最高门限等于所有存储在DDR上的软比特的数据总量,即,所有传输块大小*(1/码率)*每个软比特的比特个数-剩余的片上 HARQ存储器大小。其中,剩余的片上HARQ存储器大小=片上HARQ存储器的总的大小*从片上存储器搬移到DDR上的水线-已经占用的片上存储器的大小。从片上存储器搬移到DDR上的水线根据片上存储器的实际可存储空间确定,例如,片上存储器的理论存储空间为1T,其实际可存储空间为0.8T,则从片上存储器搬移到DDR上的水线为0=80%,本实施例对此不做限定。In this embodiment, the scenario where the highest threshold of initial transmission occurs is that the CRCs of all coded blocks CB are decoded incorrectly. In this scenario, the operation to be performed is "compressed soft Bits are written to DDR", at this time, the highest threshold is equal to the total amount of data of all soft bits stored on the DDR, that is, the size of all transport blocks * (1/code rate) * the number of bits of each soft bit - the remaining On-chip HARQ memory size. Wherein, the size of the remaining on-chip HARQ memory=the total size of the on-chip HARQ memory*the waterline moved from the on-chip memory to the DDR-the size of the already occupied on-chip memory. The water line moved from the on-chip memory to the DDR is determined according to the actual storage space of the on-chip memory. For example, the theoretical storage space of the on-chip memory is 1T, and the actual storage space is 0.8T. Then the water line moved from the on-chip memory to the DDR The line is 0=80%, which is not limited in this embodiment.
在重传的情况下,最低门限值包括重传最低门限值,最高门限值包括重传最高门限值;In the case of retransmission, the lowest threshold includes the lowest retransmission threshold, and the highest threshold includes the highest retransmission threshold;
重传最低门限值为根据第一数据访问量和第二数据访问量中的最小值、以及从DDR中搬到片上存储器中存储的软比特的数据量确定,第一数据访问量为重传工程中所有的编码块的CRC都正确时访问DDR的数据量,第二数据访问量为重传工程中所有的编码块的CRC都错误时访问DDR的数据量;The minimum threshold value for retransmission is determined according to the minimum value of the first data access amount and the second data access amount, and the amount of soft bits stored in the on-chip memory from the DDR. The first data access amount is retransmission When the CRCs of all coding blocks in the project are correct, the data volume of DDR is accessed, and the second data access volume is the data volume of accessing DDR when the CRCs of all coding blocks in the retransmission project are wrong;
重传最高门限值为根据第一数据访问量和第二数据访问量中的最大值、以及从DDR中搬到片上存储器中存储的软比特的数据量确定。The maximum retransmission threshold value is determined according to the maximum value of the first data access amount and the second data access amount, and the amount of soft bits moved from the DDR to the on-chip memory.
可选地,上述第一数据访问量为根据DDR中以软比特存储的编码块的数量、以硬比特存储的编码块的数量和编码块的数据量确定;第二数据访问量等于从DDR中搬到片上存储器中存储的软比特的数据量。Optionally, the above-mentioned first data access amount is determined according to the number of coded blocks stored in soft bits, the number of coded blocks stored in hard bits, and the data volume of the coded blocks in DDR; the second data access amount is equal to that from DDR The amount of data moved to the soft bits stored in the on-chip memory.
在本实施例中,如果重传所有的编码块CB的CRC都译码正确,则第一数据访问量=(存储为软比特的编码块个数+存储为硬比特的编码块个数*2)*编码块大小。如果重传所有的编码块CB的CRC都译码错误,则第二数据访问量=从DDR搬到片上HARQ存储器的软比特数据量。In this embodiment, if the CRCs of all coded blocks CB for retransmission are all decoded correctly, then the first data access amount=(the number of coded blocks stored as soft bits+the number of coded blocks stored as hard bits*2 )*encoding block size. If the CRCs of all the retransmitted coded blocks CB are decoded incorrectly, the second data access amount=the amount of soft bit data moved from the DDR to the on-chip HARQ memory.
根据上述重传可能出现的极限情况来确定重传的最低门限和重传的最高门限:Determine the minimum threshold for retransmission and the maximum threshold for retransmission according to the possible extreme situations of retransmission above:
重传的最低门限等于从DDR搬到片上HARQ存储器的软比特数据量与{第一数据访问量,第二数据访问量}中最小值的和,具体地,重传的最低门限=从DDR搬到片上HARQ存储器的软比特数据量+min{(存储为软比特的编码块个数+存储为硬比特的编码块个数*2)*编码块大小,从DDR搬到片上HARQ存储器的软比特数据量}。The minimum threshold for retransmission is equal to the sum of the amount of soft bit data moved from DDR to the on-chip HARQ memory and the minimum value in {the first data access amount, the second data access amount}. Specifically, the minimum threshold for retransmission=moved from DDR The amount of soft bit data to the on-chip HARQ memory+min{(number of coded blocks stored as soft bits+number of coded blocks stored as hard bits*2)*coded block size, soft bits moved from DDR to on-chip HARQ memory The amount of data}.
重传的最高门限等于从DDR搬到片上HARQ存储器的软比特数据量+与{第一数据访问量,第二数据访问量}中最大值的和,具体地,重传的最高门限=从DDR搬到片上HARQ存储器的软比特数据量+max{(存储为软比特的编码块个数+存储为硬比特的编码块个数*2)*编码块大小,从DDR搬到片上HARQ存储器的软比特数据量},本实施例对此不做限定。The highest threshold for retransmission is equal to the amount of soft bit data moved from DDR to the on-chip HARQ memory + the sum of the maximum value in {first data access amount, second data access amount}, specifically, the highest threshold for retransmission = from DDR The amount of soft bit data moved to the on-chip HARQ memory+max{(the number of coded blocks stored as soft bits+the number of coded blocks stored as hard bits*2)*coded block size, the soft bit data moved from DDR to the on-chip HARQ memory bit data amount}, which is not limited in this embodiment.
可选的,考虑到在进行对DDR的读取/写入操作的过程中,在又一种场景中,上述方法还包括:可以按照译码周期对传输块进行译码。示例性的,可以根据时钟门控信号停止对DDR进行读取和/或写入。Optionally, considering that during the process of reading/writing the DDR, in another scenario, the above method further includes: decoding the transport block according to the decoding period. Exemplarily, reading and/or writing to the DDR may be stopped according to a clock gating signal.
如图10,虚线圈1为译码周期的起始时刻,虚线圈4为译码结束时刻。虚线圈4对应,时钟门控信号(clock gating)用于指示译码器停止工作,也即不会进行编码块的译码,则会停止对DDR进行读取和/或写入。例如,在CPU接收到clock gating信号的情况下,对DDR停止读取和/或写入操作中至少一种。尤其是在没有编码块传输的情况下,通过时钟门控信号指示译码器停止工作,节省了译码器的功耗。As shown in Fig. 10, the dotted circle 1 is the start time of the decoding period, and the dotted circle 4 is the end time of the decoding. Corresponding to dotted circle 4, the clock gating signal (clock gating) is used to instruct the decoder to stop working, that is, the decoding of the code block will not be performed, and the DDR will stop reading and/or writing. For example, when the CPU receives the clock gating signal, at least one of the read and/or write operations is stopped for the DDR. Especially in the case of no encoding block transmission, the clock gating signal is used to instruct the decoder to stop working, which saves the power consumption of the decoder.
有鉴于此,本申请所提供的方法还包括:在所述译码周期内,根据双倍速率同步动态随机存储器DDR在第一时隙的吞吐率,调节所述DDR在所述第一时隙的频率和/或电压。In view of this, the method provided by the present application further includes: in the decoding period, according to the throughput rate of the double rate synchronous dynamic random access memory DDR in the first time slot, adjusting the DDR in the first time slot frequency and/or voltage.
也就是说,只有在译码周期内处理器才会执行译码,也只会在译码周期内从DDR中读取和/或写入译码数据,因此,可以在译码周期内按照DDR的吞吐率变化动态调节DDR的电压和/或频率。That is to say, the processor will execute decoding only in the decoding cycle, and will only read and/or write the decoding data from DDR in the decoding cycle. Therefore, the DDR can be used in the decoding cycle The throughput rate changes dynamically adjust the voltage and/or frequency of the DDR.
示例性的,在第一传输块的译码起始时刻之前,计算第一时隙在第一传输块译码期间的第一吞吐率;在第一吞吐率大于前一次调整电压和/或频率时对应的吞吐率的情况下,增大DDR的频率和/或电压。Exemplarily, before the decoding start moment of the first transport block, calculate the first throughput rate of the first time slot during the decoding of the first transport block; when the first throughput rate is greater than the previous adjusted voltage and/or frequency In the case of corresponding throughput rate, increase the frequency and/or voltage of DDR.
如图10所示,在译码周期的起始时刻(虚线圈1),计算CC0 TB0和CC1 TB0的吞吐率之和为Tput(CC0 TB0+CC1 TB0),并在虚线圈1的时刻根据Tput(CC0 TB0+CC1 TB0)调整了DDR的电压和/或频率,CC2 TB1为例,在CC2 TB1译码起始时刻,计算第一吞吐率,该第一吞吐率为CC0 TB0、CC1 TB0和CC2 TB1的吞吐率之和Tput(CC0 TB0+CC1 TB0+CC2 TB1),由于Tput(CC0 TB0+CC1 TB0+CC2 TB1)大于Tput(CC0 TB0+CC1 TB0),则在CC2 TB1译码起始时刻(虚线圈2)根据Tput(CC0 TB0+CC1 TB0+CC2 TB1)增大DDR的频率和/或电压。As shown in Figure 10, at the beginning of the decoding cycle (dotted circle 1), the sum of the throughput rates of CC0 TB0 and CC1 TB0 is calculated as Tput (CC0 TB0+CC1 TB0), and at the time of dotted circle 1 according to Tput (CC0 TB0+CC1 TB0) adjusts the voltage and/or frequency of DDR. Take CC2 TB1 as an example. At the beginning of CC2 TB1 decoding, calculate the first throughput rate. The first throughput rate is CC0 TB0, CC1 TB0 and CC2 The sum Tput(CC0 TB0+CC1 TB0+CC2 TB1) of the throughput rate of TB1, since Tput(CC0 TB0+CC1 TB0+CC2 TB1) is greater than Tput(CC0 TB0+CC1 TB0), at the start moment of CC2 TB1 decoding ( Dashed circle 2) Increase the frequency and/or voltage of DDR according to Tput(CC0 TB0+CC1 TB0+CC2 TB1).
进一步的,以CC2 TB2为例,在CC2 TB2的译码起始时刻(虚线圈3)之前,CC0 TB0、CC1 TB0和CC2 TB1均已译码完成,CC0 TB0、CC1 TB0和CC2 TB1对应的吞吐率被释放,因此,在虚线圈3时刻计算得到的第一吞吐率为Tput(CC0 TB1+CC1 TB1+CC2 TB2),由于CC0 TB1的吞吐率等于CC0 TB0的吞吐率,CC1 TB1的吞吐率等于CC1 TB0的吞吐率,且CC2 TB2的吞吐率大于CC2 TB1的吞吐率,所以Tput(CC0 TB1+CC1 TB1+CC2 TB2)大于Tput(CC0 TB0+CC1 TB0+CC2 TB1),因此,在CC2 TB2的译码起始时刻(虚线圈3)需要增大DDR的频率和/或电压。Further, taking CC2 TB2 as an example, CC0 TB0, CC1 TB0 and CC2 TB1 have been decoded before the decoding start time of CC2 TB2 (dotted circle 3), and the corresponding throughput of CC0 TB0, CC1 TB0 and CC2 TB1 rate is released, therefore, the first throughput rate Tput(CC0 TB1+CC1 TB1+CC2 TB2) calculated at the moment of dotted circle 3, since the throughput rate of CC0 TB1 is equal to the throughput rate of CC0 TB0, the throughput rate of CC1 TB1 is equal to The throughput rate of CC1 TB0, and the throughput rate of CC2 TB2 is greater than that of CC2 TB1, so Tput(CC0 TB1+CC1 TB1+CC2 TB2) is greater than Tput(CC0 TB0+CC1 TB0+CC2 TB1), therefore, in CC2 TB2 The decoding start moment (dotted circle 3) needs to increase the frequency and/or voltage of DDR.
示例性的,在第一吞吐率不大于前一次调整电压和/或频率时对应的吞吐率的情况下,保持DDR的频率和/或电压。Exemplarily, when the first throughput rate is not greater than the corresponding throughput rate when the voltage and/or frequency was adjusted last time, the frequency and/or voltage of the DDR is maintained.
如图10所示,CC0 TB1和CC1 TB1为例,在CC0 TB1的译码起始时刻(实线圈6)之前,CC0 TB0和CC1 TB0已经完成译码,也即CC0 TB0和CC1 TB0的吞吐率已经释放,在CC0 TB1的译码起始时刻 的第一吞吐率为Tput(CC2 TB1+CC0 TB1),由于Tput(CC2 TB1+CC0 TB1)小于CC2 TB1译码起始时刻(虚线圈2)对应的吞吐率Tput(CC0 TB0+CC1 TB0+CC2 TB1),因此,不会调整DDR的频率和/或电压。同理,在CC1 TB1的译码起始时刻(实线圈7)的第一吞吐率为Tput(CC2 TB1+CC0 TB1+CC1 TB1),由于CC0 TB1的吞吐率等于CC0 TB0的吞吐率,CC1 TB1的吞吐率等于CC1 TB0的吞吐率,所以在CC1 TB1的译码起始时刻(实线圈7)的第一吞吐率为Tput(CC2 TB1+CC0 TB1+CC1 TB1)等于虚线圈2对应的吞吐率Tput(CC0 TB0+CC1 TB0+CC2 TB1),因此,保持DDR的频率和/或电压。As shown in Figure 10, CC0 TB1 and CC1 TB1 are taken as examples. Before the decoding start time of CC0 TB1 (solid coil 6), CC0 TB0 and CC1 TB0 have completed decoding, that is, the throughput of CC0 TB0 and CC1 TB0 It has been released, and the first throughput rate at the starting moment of CC0 TB1 decoding is Tput(CC2 TB1+CC0 TB1), since Tput(CC2 TB1+CC0 TB1) is less than the corresponding The throughput rate Tput(CC0 TB0+CC1 TB0+CC2 TB1), therefore, does not adjust the frequency and/or voltage of the DDR. Similarly, at the initial moment of decoding of CC1 TB1 (solid coil 7), the first throughput rate is Tput (CC2 TB1+CC0 TB1+CC1 TB1), since the throughput rate of CC0 TB1 is equal to the throughput rate of CC0 TB0, CC1 TB1 The throughput rate of CC1 TB0 is equal to the throughput rate of CC1 TB0, so the first throughput rate Tput (CC2 TB1+CC0 TB1+CC1 TB1) at the decoding start moment of CC1 TB1 (solid coil 7) is equal to the throughput rate corresponding to dashed coil 2 Tput(CC0 TB0+CC1 TB0+CC2 TB1), therefore, maintain the frequency and/or voltage of the DDR.
示例性的,在前一次调整电压和/或频率时对应的吞吐率减去第一吞吐率的差值大于第二预设阈值的情况下,降低DDR的频率和/或电压。Exemplarily, when the difference between the throughput rate corresponding to the previous voltage and/or frequency adjustment minus the first throughput rate is greater than the second preset threshold, the frequency and/or voltage of the DDR is reduced.
假设前一次调整电压和/或频率时对应的吞吐率为Tput(CC0 TB0+CC1 TB0+CC2 TB1),计算第一时隙在第一传输块译码期间的第一吞吐率为Tput(CC0 TB1+CC1 TB1+CC2 TB2),由于CC0 TB1的吞吐率等于CC0 TB0的吞吐率,CC1 TB1的吞吐率等于CC1 TB0的吞吐率,且CC2 TB2的吞吐率小于CC2 TB1的吞吐率,则第一吞吐率Tput(CC0 TB1+CC1 TB1+CC2 TB2)小于前一次调整电压和/或频率时对应的吞吐率Tput(CC0 TB0+CC1 TB0+CC2 TB1),并且Tput(CC0 TB0+CC1 TB0+CC2 TB1)减去Tput(CC0 TB1+CC1 TB1+CC2 TB2)的差值大于第二预设阈值,则在CC2 TB2的译码起始时刻降低DDR的频率和/或电压。Assuming that the throughput rate corresponding to the previous voltage and/or frequency adjustment was Tput(CC0 TB0+CC1 TB0+CC2 TB1), calculate the first throughput rate Tput(CC0 TB1 +CC1 TB1+CC2 TB2), since the throughput of CC0 TB1 is equal to the throughput of CC0 TB0, the throughput of CC1 TB1 is equal to the throughput of CC1 TB0, and the throughput of CC2 TB2 is less than the throughput of CC2 TB1, the first throughput The rate Tput(CC0 TB1+CC1 TB1+CC2 TB2) is less than the corresponding throughput rate Tput(CC0 TB0+CC1 TB0+CC2 TB1) when the voltage and/or frequency were adjusted last time, and Tput(CC0 TB0+CC1 TB0+CC2 TB1) If the difference of subtracting Tput(CC0 TB1+CC1 TB1+CC2 TB2) is greater than the second preset threshold, the frequency and/or voltage of the DDR is reduced at the decoding start moment of CC2 TB2.
本申请实施例提供的DDR的访问方法,可以在译码周期内,根据各第一传输块的译码起始计算的第一吞吐率与前一次调整电压和/或频率时对应的吞吐率进行大小比较,从而灵活的调整DDR的频率和/或电压。The DDR access method provided by the embodiment of the present application can be performed within the decoding period according to the first throughput calculated at the start of decoding of each first transmission block and the corresponding throughput when the voltage and/or frequency were adjusted last time. Size comparison, so as to flexibly adjust the frequency and/or voltage of DDR.
图11为一个实施例中DDR的数据传输方法的流程图。本实施例中的DDR的数据传输方法,以运行于图1中的终端或服务器上为例进行描述。如图11所示,DDR的数据传输方法包括步骤501至步骤502。FIG. 11 is a flowchart of a data transmission method of DDR in an embodiment. The DDR data transmission method in this embodiment is described by taking the terminal or server running on the terminal or server in FIG. 1 as an example. As shown in FIG. 11 , the DDR data transmission method includes step 501 to step 502 .
步骤501,在第一时隙对第一传输块进行译码,第一传输块是经PDSCH传输的,第一时隙为所述PDSCH的时隙。Step 501: Decode a first transport block in a first time slot, where the first transport block is transmitted via a PDSCH, and the first time slot is a time slot of the PDSCH.
在本实施例中,接收第一时隙的第一传输块,并对第一传输块进行译码操作,获取传输块中各个编码块对应的循环冗余校验CRC。In this embodiment, the first transmission block of the first time slot is received, and a decoding operation is performed on the first transmission block to obtain the cyclic redundancy check CRC corresponding to each coding block in the transmission block.
步骤502,对DDR读取和/或写入第一传输块的译码数据。 Step 502, read and/or write the decoded data of the first transmission block to the DDR.
在本实施例中,对第一传输块的CRC进行译码,可选地,译码结果包括译码正确或译码错误,根据译码结果对DDR执行访问操作,在不同的译码结果下,对编码块的执行不同的数据处理操作,例如,在编码块的CRC正确时,从DDR中读取编码块的译码数据。In this embodiment, the CRC of the first transmission block is decoded. Optionally, the decoding result includes correct decoding or decoding error, and an access operation is performed on the DDR according to the decoding result. Under different decoding results , perform different data processing operations on the coded block, for example, read the decoded data of the coded block from the DDR when the CRC of the coded block is correct.
可选地,本实施里提供的DDR的数据传输可应用至图1至图10所提供的DDR访问方法中,来实现基于DDR的数据传输方法计算DDR的吞吐率,从而基于DDR的吞吐率动态调节DDR的频率的目的。Optionally, the DDR data transmission provided in this implementation can be applied to the DDR access methods provided in Figures 1 to 10 to realize the DDR-based data transmission method to calculate the DDR throughput, so that the DDR-based throughput can dynamically The purpose of adjusting the frequency of DDR.
上述DDR的数据传输方法,在第一时隙对第一传输块进行译码,对DDR读取和/或写入第一传输块的译码数据,根据不同的译码结果对DDR的访问操作不一样,实现较为准确地统计每个时隙对DDR访问的总数据量的目的。In the data transmission method of the above DDR, the first transmission block is decoded in the first time slot, the decoded data of the first transmission block is read and/or written into the DDR, and the access operation of the DDR is performed according to different decoding results Not the same, to achieve the purpose of more accurately counting the total amount of data accessed by each time slot to the DDR.
上述步骤502中的一种实施方案,针对第一传输块中的每个编码块,对DDR写入第一传输块的译码数据,包括以下至少一个情况:An implementation in the above step 502, for each coding block in the first transmission block, write the decoded data of the first transmission block to the DDR, including at least one of the following situations:
其一:在编码块的CRC出现错误时,将编码块对应的软比特数据写入DDR。One: When an error occurs in the CRC of the coded block, write the soft bit data corresponding to the coded block into the DDR.
在本实施例中,确定编码块的CRC错误时,在这种情况下,将该编码块对应的压缩后的软比特写入DDR中。此时,DDR的数据访问量由软比特数据确定。In this embodiment, when it is determined that the CRC of the coding block is wrong, in this case, the compressed soft bits corresponding to the coding block are written into the DDR. At this time, the data access amount of DDR is determined by soft bit data.
其二:在编码块CRC正确,且第一传输块中在编码块之前存在CRC错误的编码块时,将编码块对应的硬比特数据写入DDR。Second: when the CRC of the coded block is correct and there is a coded block with a CRC error before the coded block in the first transmission block, write the hard bit data corresponding to the coded block into the DDR.
在本实施例中,在确定编码块的CRC译码正确,且针对编码块所在的传输块,编码块之前存在CRC错误的编码块时,则编码块对应的硬比特写入DDR中,此时,DDR的数据访问量由硬比特数据确定。In this embodiment, when it is determined that the CRC decoding of the coded block is correct, and for the transport block where the coded block is located, when there is a coded block with a CRC error before the coded block, the hard bits corresponding to the coded block are written into the DDR. , the data access amount of DDR is determined by the hard bit data.
其三:在编码块CRC正确,且第一传输块中在编码块之前不存在CRC错误的编码块时,将编码块对应的解密数据写入DDR。Third: when the CRC of the coded block is correct and there is no coded block with a CRC error before the coded block in the first transmission block, write the decrypted data corresponding to the coded block into the DDR.
在本实施例中,在确定编码块的CRC译码正确,且针对编码块所在的第一传输块,编码块之前不存在CRC错误的编码块时,则直接对编码块进行解密,将解密后的译码数据写入DDR中,此时,DDR的数据访问量由译码数据确定。可选地,当所有编码块的CRC正确时,即在初传场景下的DDR的数据传输方法流程图可参考图12所示。In this embodiment, when it is determined that the CRC decoding of the coded block is correct, and for the first transmission block where the coded block is located, if there is no coded block with a CRC error before the coded block, the coded block is directly decrypted, and the decrypted The decoded data of the DDR is written into the DDR, at this time, the data access amount of the DDR is determined by the decoded data. Optionally, when the CRCs of all coded blocks are correct, that is, the flowchart of the DDR data transmission method in the initial transmission scenario may refer to FIG. 12 .
若第一传输块CRC错误,需要对第一传输块进行重传,其中一种场景下,对DDR读取第一传输块的译码数据,包括:If the CRC of the first transmission block is wrong, the first transmission block needs to be retransmitted. In one scenario, the DDR reads the decoded data of the first transmission block, including:
在对第一传输块重传译码的情况下,从DDR读取第一传输块中每个编码块的软比特数据或硬比特数据。In the case of retransmission decoding of the first transport block, the soft bit data or hard bit data of each coded block in the first transport block is read from the DDR.
在本实施例中,在传输块的重传译码过程中,还可以根据该第一传输块之前的传输块是否存在CRC译码错误来确定该第一传输块的DDR的访问操作。In this embodiment, during the retransmission and decoding process of the transport block, the DDR access operation of the first transport block may also be determined according to whether there is a CRC decoding error in the transport block before the first transport block.
在一种场景下,在重传译码的场景下,如图13所示,该方法还包括:In one scenario, in the scenario of retransmission decoding, as shown in Figure 13, the method further includes:
步骤601,若编码块的前一次CRC错误,则从DDR中读取编码块的软比特数据。 Step 601, if the previous CRC of the coded block is wrong, read the soft bit data of the coded block from the DDR.
在本实施例汇总,对编码块再次译码时即为编码块的重传时刻,由上述实施例可知,在编码块存在CRC错误时,会将错误编码块写入片上存储器,在片上存储器空间溢出的情况下,将错误编码块写入DDR中。在这种场景下,示例性的,若一个传输块TB中的编码块CB0和CB1在初传过程中均存在CRC错误,错误CBO的软比特数据存储在片上存储器中,由于片上存储器空间有限,错误CB1的软比特数据存储在DDR中,在进行CB0和CB1的重传过程中,需要从DDR中读取错误CB1的软比特数据,将错误CB1的软比特数据存储至片上存储器中。In summary of this embodiment, when the coded block is decoded again, it is the retransmission time of the coded block. From the above embodiment, it can be seen that when the coded block has a CRC error, the wrong coded block will be written into the on-chip memory, and the on-chip memory space In case of overflow, the wrong coded block is written to DDR. In this scenario, for example, if the coded blocks CB0 and CB1 in a transport block TB both have CRC errors during the initial transmission process, the soft bit data of the wrong CBO is stored in the on-chip memory. Due to the limited space of the on-chip memory, The soft bit data of error CB1 is stored in DDR. During the retransmission process of CB0 and CB1, it is necessary to read the soft bit data of error CB1 from DDR and store the soft bit data of error CB1 into the on-chip memory.
步骤602,基于读取的软比特数据对编码块再次进行CRC。 Step 602, perform CRC on the encoded block again based on the read soft bit data.
在本实施例中,在重传时刻,基于读取的软比特数据对CRC错误的编码块再次进行CRC校验。可选地,在进行CRC校验之前,可以将重传接收到的新的CB0的软比特数据、新的CB1的软比特数据分别与片上存储器中错误CB0的软比特数据、错误CB1的软比特数据进行合并,得到合并之后的CB0和合并之后的CB1。In this embodiment, at the time of retransmission, the CRC check is performed again on the coded block with CRC error based on the read soft bit data. Optionally, before performing the CRC check, the soft bit data of the new CB0 received by retransmission and the soft bit data of the new CB1 can be respectively combined with the soft bit data of the wrong CB0 and the soft bit data of the wrong CB1 in the on-chip memory. The data are merged to obtain the merged CB0 and the merged CB1.
步骤603,在CRC正确时,对编码块进行译码,得到编码块的解密数据。 Step 603, when the CRC is correct, decode the encoded block to obtain decrypted data of the encoded block.
在本实施例中,在CRC正确时,对CRC正确的合并之后的CB0和/或合并之后的CB1进行译码,得到合并之后的CB0和/或合并之后的CB1对应的译码数据,可选地,可以将译码数据写入DDR中。In this embodiment, when the CRC is correct, decode the combined CB0 and/or the combined CB1 with the correct CRC to obtain the decoded data corresponding to the combined CB0 and/or the combined CB1, optional Alternatively, the decoded data can be written into the DDR.
在重传译码过程中,还存在另外一种场景,包括:在对编码块再次译码时,若编码块前一次CRC正确,则从DDR中读取编码块的硬比特数据,对硬比特数据进行解密,得到编码块的译码数据。In the retransmission decoding process, there is another scenario, including: when decoding the coded block again, if the previous CRC of the coded block is correct, then read the hard bit data of the coded block from the DDR. The data is decrypted to obtain the decoded data of the encoded block.
在本实施例中,若在确定了某一个编码块的CRC错误之后,但是该编码块的前一次CRC正确,在这种情况下,可以将CRC正确的编码块对应的硬比特暂存至DDR中,在等待重传时刻,数据面把暂存在DDR的CRC正确的编码块读出来进行解密操作,得到解密数据,可选地,将解密数据写入DDR,本实施例对此不做限定。可选地,重传场景下的DDR的数据传输方法流程图可参考图14所示。In this embodiment, if the CRC error of a certain coding block is determined, but the previous CRC of the coding block is correct, in this case, the hard bits corresponding to the coding block with the correct CRC can be temporarily stored in the DDR Among them, at the time of waiting for retransmission, the data plane reads out the code block with correct CRC temporarily stored in the DDR and performs decryption operation to obtain the decrypted data. Optionally, the decrypted data is written into the DDR, which is not limited in this embodiment. Optionally, the flowchart of the DDR data transmission method in the retransmission scenario may refer to FIG. 14 .
在本实施例中,根据访问DDR的数据传输方法,在译码过程中可以统计每个时隙对DDR访问的总的数据量,基于初传和重传下的场景,分别计算初传和重传所产生的DDR的数据访问量,得到的DDR的数据访问量较为准确。In this embodiment, according to the data transmission method for accessing DDR, the total amount of data accessed by each time slot to DDR can be counted during the decoding process, and based on the scenarios of initial transmission and retransmission, calculate the initial transmission and retransmission respectively. The data access volume of the DDR generated by transmitting the data access volume of the DDR is more accurate.
应该理解的是,虽然图2-14的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-14中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow charts of FIGS. 2-14 are displayed sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in Figures 2-14 may include a plurality of sub-steps or stages, these sub-steps or stages are not necessarily performed at the same time, but may be performed at different times, these sub-steps or stages The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
图15为一个实施例的DDR访问装置的结构框图。如图15所示,该装置包括:Fig. 15 is a structural block diagram of a DDR access device of an embodiment. As shown in Figure 15, the device includes:
调节模块01,用于根据DDR在第一时隙的吞吐率,调节DDR在第一时隙的频率和/或电压,其中,第一时隙为物理下行共享信道PDSCH的时隙;The adjustment module 01 is configured to adjust the frequency and/or voltage of the DDR in the first time slot according to the throughput rate of the DDR in the first time slot, wherein the first time slot is a time slot of the physical downlink shared channel PDSCH;
访问模块02,用于在第一时隙,基于DDR在所述第一时隙的频率和/或电压,对DDR读取和/或写入第一传输块的译码数据,第一传输块是经所述PDSCH传输的。The access module 02 is configured to read and/or write the decoded data of the first transmission block to the DDR based on the frequency and/or voltage of the DDR in the first time slot in the first time slot, the first transmission block is transmitted via the PDSCH.
在其中一个可选的实施例中,调节模块01,用于在DDR在第一时隙的吞吐率变大的情况下,提高DDR在第一时隙的频率和/或电压;在DDR在第一时隙的吞吐率变小的情况下,降低DDR在第一时隙的频率和/或电压。In one of the optional embodiments, the adjustment module 01 is configured to increase the frequency and/or voltage of the DDR in the first time slot when the throughput rate of the DDR in the first time slot becomes larger; When the throughput rate of one slot decreases, the frequency and/or voltage of the DDR in the first slot is lowered.
在其中一个可选的实施例中,调节模块01,还用于根据DDR在第二时隙的数据访问量,确定DDR在第一时隙的数据访问量,第二时隙为第一时隙的前一时隙;基于计算得到的DDR在第一时隙的数据访问量,以及对第一传输块的译码用时,计算得到DDR在第一时隙的吞吐率。In one of the optional embodiments, the adjustment module 01 is also used to determine the data access amount of the DDR in the first time slot according to the data access amount of the DDR in the second time slot, and the second time slot is the first time slot Based on the calculated data access amount of the DDR in the first time slot and the decoding time of the first transport block, the throughput rate of the DDR in the first time slot is calculated.
在其中一个可选的实施例中,计算得到的DDR在第一时隙的数据访问量与DDR在第二时隙的数据访问量之间满足以下公式:De=(1-a)*Dh+a*DlIn one of the optional embodiments, the calculated DDR satisfies the following formula between the data access amount of the first time slot and the data access amount of DDR in the second time slot: De=(1-a)*Dh+ a*Dl
其中,De为计算得到的DDR在第一时隙的数据访问量,Dh为DDR在第二时隙的前一时隙内的数据访问量,Dl为DDR在第二时隙内的数据访问量,a大于0且小于或等于1。Wherein, De is the data access amount of the DDR calculated in the first time slot, Dh is the data access amount of the DDR in the previous time slot of the second time slot, and D1 is the data access amount of the DDR in the second time slot, a is greater than 0 and less than or equal to 1.
在其中一个可选的实施例中,DDR在第二时隙的数据访问量包括在第二时隙中第二传输块的译码数据的数据量,其中,第二传输块为第一传输块的前一传输块,第二传输块的译码数据包括第二传输块中每个编码块的软比特数据或硬比特数据或解密数据。In one of the optional embodiments, the data access amount of the DDR in the second time slot includes the data amount of the decoded data of the second transmission block in the second time slot, wherein the second transmission block is the first transmission block The decoded data of the second transport block includes soft bit data or hard bit data or decrypted data of each encoded block in the second transport block.
在其中一个可选的实施例中,针对第一传输块中的每个编码块,访问模块02,用于在编码块的CRC 出现错误时,将编码块对应的软比特数据写入DDR;和/或,在编码块CRC正确,且第一传输块中在编码块之前存在CRC错误的编码块时,将编码块对应的硬比特数据写入DDR;和/或,在编码块CRC正确,且第一传输块中在编码块之前不存在CRC错误的编码块时,将编码块对应的解密数据写入DDR。In one of the optional embodiments, for each coded block in the first transmission block, the access module 02 is configured to write the soft bit data corresponding to the coded block into the DDR when the CRC of the coded block has an error; and /or, when the coded block CRC is correct, and there is a coded block with a CRC error before the coded block in the first transmission block, write the hard bit data corresponding to the coded block into the DDR; and/or, when the coded block CRC is correct, and When there is no coded block with a CRC error before the coded block in the first transmission block, the decrypted data corresponding to the coded block is written into the DDR.
在其中一个可选的实施例中,访问模块02,用于在对第一传输块重传译码的情况下,从DDR读取第一传输块中每个编码块的软比特数据或硬比特数据。In one of the optional embodiments, the access module 02 is configured to read the soft bit data or hard bits of each coded block in the first transmission block from the DDR when the first transmission block is retransmitted and decoded data.
在其中一个可选的实施例中,PDSCH包括多个载波,每个载波皆用于传输块,调节模块01,用于在第一时隙内各传输块的译码起始时刻与第一时隙的起始时刻之间的时间间隔皆不大于第一阈值时,根据计算得到的DDR在第一时隙的吞吐率,配置DDR在第一时隙的起始时间点的频率和/或电压,并保持DDR在第时隙的频率和/或电压。In one of the optional embodiments, the PDSCH includes multiple carriers, and each carrier is used for a transport block, and the adjustment module 01 is used for decoding the start time and the first time of each transport block in the first time slot When the time interval between the start times of the slots is not greater than the first threshold, configure the frequency and/or voltage of the DDR at the start time of the first time slot according to the calculated throughput of the DDR in the first time slot , and maintain the frequency and/or voltage of the first time slot of the DDR.
在其中一个可选的实施例中,调节模块02,用于在第一时隙内存在第三传输块时,根据计算得到的DDR在第一时隙的吞吐率,配置DDR在第一时隙的起始时间点的频率和/或电压,其中,第三传输块的译码起始时刻与第二时隙的起始时刻之间的间隔大于第一阈值;根据读取和/或写入第三传输块的译码数据的数据量增大DDR在第三传输块的译码起始时刻之后的频率和/或电压。In one of the optional embodiments, the adjustment module 02 is configured to configure the DDR in the first time slot according to the calculated throughput of the DDR in the first time slot when there is a third transmission block in the first time slot. The frequency and/or voltage of the start time point of , wherein the interval between the start time of decoding of the third transport block and the start time of the second time slot is greater than the first threshold; according to reading and/or writing The data volume of the decoded data of the third transport block increases the frequency and/or voltage of the DDR after the decoding start moment of the third transport block.
在其中一个可选的实施例中,计算得到的DDR在第一时隙的吞吐率包括从DDR读取和/或写入每个载波分别对应的传输块的译码数据的吞吐率之和。In an optional embodiment, the calculated throughput rate of the DDR in the first time slot includes a sum of throughput rates of reading and/or writing decoded data of transport blocks respectively corresponding to each carrier from the DDR.
在其中一个可选的实施例中,调节模块01,用于在DDR的吞吐率大于最高门限值时,按照最高门限值调节DDR在第一时隙的频率和/或电压;和/或,在DDR的吞吐率小于最低门限值时,按照最低门限值调节DDR在第一时隙的频率和/或电压。In one of the optional embodiments, the adjustment module 01 is configured to adjust the frequency and/or voltage of the DDR in the first time slot according to the highest threshold value when the throughput rate of the DDR is greater than the highest threshold value; and/or , when the throughput rate of the DDR is less than the minimum threshold value, adjusting the frequency and/or voltage of the DDR in the first time slot according to the minimum threshold value.
在其中一个可选的实施例中,访问模块02,还用于根据时钟门控信号开启或停止对DDR进行读取和/或写入。In one of the optional embodiments, the access module 02 is further configured to start or stop reading and/or writing to the DDR according to the clock gating signal.
图16为一个实施例的基于DDR的数据传输装置的结构框图。如图16所示,该装置包括:Fig. 16 is a structural block diagram of a DDR-based data transmission device according to an embodiment. As shown in Figure 16, the device includes:
译码模块11,用于在第一时隙对第一传输块进行译码,第一传输块是经PDSCH传输的,第一时隙为所述PDSCH的时隙;The decoding module 11 is configured to decode a first transmission block in a first time slot, where the first transmission block is transmitted via a PDSCH, and the first time slot is a time slot of the PDSCH;
访问模块12,用于对DDR读取和/或写入第一传输块的译码数据。The access module 12 is configured to read and/or write decoded data of the first transmission block to the DDR.
在其中一个可选的实施例中,针对第一传输块中的每个编码块,访问模块12,用于在编码块的CRC出现错误时,将编码块对应的软比特数据写入DDR;和/或,在编码块CRC正确,且第一传输块中在编码块之前存在CRC错误的编码块时,将编码块对应的硬比特数据写入DDR;和/或,在编码块CRC正确,且第一传输块中在编码块之前不存在CRC错误的编码块时,将编码块对应的解密数据写入DDR。In one of the optional embodiments, for each coded block in the first transmission block, the access module 12 is configured to write the soft bit data corresponding to the coded block into the DDR when the CRC of the coded block has an error; and /or, when the coded block CRC is correct, and there is a coded block with a CRC error before the coded block in the first transmission block, write the hard bit data corresponding to the coded block into the DDR; and/or, when the coded block CRC is correct, and When there is no coded block with a CRC error before the coded block in the first transmission block, the decrypted data corresponding to the coded block is written into the DDR.
在其中一个可选的实施例中,访问模块12,用于在对第一传输块重传译码的情况下,从DDR读取第一传输块中每个编码块的软比特数据或硬比特数据。In one of the optional embodiments, the access module 12 is configured to read the soft bit data or hard bits of each coded block in the first transmission block from the DDR when the first transmission block is retransmitted and decoded data.
在其中一个可选的实施例中,访问模块12,用于若编码块的前一次CRC错误,则从DDR中读取编码块的软比特数据;基于读取的软比特数据对编码块再次进行CRC;在CRC正确时,对编码块进行译码,得到编码块的解密数据。In one of the optional embodiments, the access module 12 is configured to read the soft bit data of the encoded block from the DDR if the previous CRC of the encoded block is wrong; CRC; when the CRC is correct, decode the coded block to obtain decrypted data of the coded block.
在其中一个可选的实施例中,操作模块12,还用于若编码块的前一次CRC正确,则从DDR中读取编码块的硬比特数据;对硬比特数据进行解密,得到编码块的解密数据。In one of the optional embodiments, the operation module 12 is also used to read the hard bit data of the encoded block from the DDR if the previous CRC of the encoded block is correct; the hard bit data is decrypted to obtain the encoded block Decrypt data.
上述DDR访问装置、基于DDR的数据传输装置中各个模块的划分仅仅用于举例说明,在其他实施例中,可将DDR访问装置、基于DDR的数据传输装置按照需要划分为不同的模块,以完成上述DDR电压率调节装置、基于DDR的数据传输装置的全部或部分功能。The division of each module in the above-mentioned DDR access device and the DDR-based data transmission device is only for illustration. In other embodiments, the DDR access device and the DDR-based data transmission device can be divided into different modules as required to complete All or part of the functions of the above-mentioned DDR voltage rate adjustment device and DDR-based data transmission device.
关于DDR访问装置、基于DDR的数据传输装置的具体限定可以参见上文中对于DDR访问方法、基于DDR的数据传输方法的限定,在此不再赘述。上述DDR访问装置、基于DDR的数据传输装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于中的处理器中,也可以以软件形式存储于中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitations of the DDR access device and the DDR-based data transmission device, refer to the above-mentioned limitations on the DDR access method and the DDR-based data transmission method, which will not be repeated here. Each module in the above-mentioned DDR access device and DDR-based data transmission device can be fully or partially realized by software, hardware and combinations thereof. The above-mentioned modules can be embedded in or independent of the processor in the form of hardware, and can also be stored in the memory in the form of software, so that the processor can call and execute the corresponding operations of the above modules.
本申请实施例中提供的DDR访问装置、基于DDR的数据传输装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在电子设备的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的步骤。The implementation of each module in the DDR access device and the DDR-based data transmission device provided in the embodiment of the present application may be in the form of a computer program. The computer program can run on a terminal or a server. The program modules constituted by the computer program can be stored in the memory of the electronic device. When the computer program is executed by the processor, the steps of the methods described in the embodiments of the present application are realized.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行DDR访问方法的步骤。The embodiment of the present application also provides a computer-readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the DDR access method.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行DDR的数据传输方法的步骤。The embodiment of the present application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, causing the processors to perform the steps of the data transmission method of DDR .
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行DDR访问方法。A computer program product comprising instructions which, when run on a computer, cause the computer to perform a DDR access method.
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行DDR的数据传输方法。A computer program product containing instructions, when running on a computer, causes the computer to execute the data transmission method of DDR.
基于相同的技术构思,本申请实施例还提供一种DDR访问系统,示例性的,如图1和图17所示。该架构包括为DDR供电的IC、控制该IC的处理器(计算机设备)以及DDR。Based on the same technical concept, the embodiment of the present application also provides a DDR access system, as shown in FIG. 1 and FIG. 17 for example. The architecture includes an IC that powers the DDR, a processor (computer device) that controls the IC, and the DDR.
其中,处理器可以通过执行图2-图14实施例所提供的方法,控制为DDR供电的IC,来实现控制DDR的电压和频率的目的,从而使得在满足DDR工作需求的同时,减少DDR的功耗。Among them, the processor can realize the purpose of controlling the voltage and frequency of the DDR by executing the method provided by the embodiment shown in Fig. 2-Fig. power consumption.
可选地,如图17所示,该系统中还可以包括其他模块。其中,其他模块也可以以PDSCH的时隙为单位,来计算第一时隙的吞吐率。系统中decoder译码器和其它模块对DDR在第一时隙的吞吐率进行投票,把预测的吞吐率投票给本模块的本地控制单元LCU,本地控制单元再把本模块的吞吐率投票给系统控制单元SCU。系统控制单元SCU进行判决得到最终的DDR的吞吐率,再根据吞吐率映射DDR的频率值和/或电压值,发送控制字给PMIC(也就是为DDR供电的IC),使得在第一时隙内,DDR可以工作在PMIC设置的频率和/或电压值下。Optionally, as shown in FIG. 17 , other modules may also be included in the system. Wherein, other modules may also use the time slot of the PDSCH as a unit to calculate the throughput rate of the first time slot. The decoder decoder and other modules in the system vote on the throughput rate of DDR in the first time slot, vote the predicted throughput rate to the local control unit LCU of this module, and the local control unit votes the throughput rate of this module to the system Control unit SCU. The system control unit SCU makes a decision to obtain the final DDR throughput, and then maps the frequency value and/or voltage value of the DDR according to the throughput rate, and sends the control word to the PMIC (that is, the IC that supplies power to the DDR), so that in the first time slot Within, the DDR can work at the frequency and/or voltage values set by the PMIC.
若译码器在多个时隙内连续工作没有接收到clock gating信号,译码器会持续一直进行译码操作,也即,会存在多个传输块的译码起始时刻,在这样的情况下,会出现较多的吞吐率变化的时间点,例如图10所示,一共有12个吞吐率变化的时间点(图中以实线圈表示)。为了避免频繁地对吞吐率进行计算,对12个吞吐率变化时间点进行合并,合并后的时间点减少为4个(图中以虚线圈表示),只有在吞吐率变大的情况下才对吞吐率进行预测计算。If the decoder works continuously in multiple time slots and does not receive the clock gating signal, the decoder will continue to perform decoding operations, that is, there will be multiple decoding start times of transport blocks. In this case Below, there will be more time points of throughput rate change, for example, as shown in FIG. 10 , there are 12 time points of throughput rate change (indicated by solid circles in the figure). In order to avoid frequent calculation of the throughput rate, the 12 throughput rate change time points are merged, and the combined time points are reduced to 4 (indicated by the dotted circle in the figure), and only when the throughput rate becomes larger. Throughput for predictive calculations.
示例性的,仍然可参考图10所示,图10给出了一种不同载波的吞吐率变化时间点合并时序示意图,综合上述两种场景,如果每次变化都进行投票,一个时隙内会有3*6=18us的时间无法访问DDR,对系统性能造成很大的影响。因此,需要基于每个载波的传输块的译码起始时刻来对吞吐率变化的时间点进行合并,也即,在译码周期的起始时刻(虚线圈1)调整DDR的电压和/或频率,在CC2 TB1的译码起始时刻,将CC0 TB0、CC1 TB0和CC2 TB1的吞吐率累加得到在虚线圈2时间点的吞吐率值,并基于计算得到的吞吐率值配置DDR的电压和/或频率;由于在实线圈4、5、6、7、8的时刻,CC0 TB0、CC1 TB0和CC2 TB1相继译码结束,从而CC0 TB0、CC1 TB0和CC2 TB1的吞吐率被释放,则实线圈4、5的时刻由于CC0 TB0、CC1 TB0的吞吐率被释放,实线圈4、5的时刻吞吐率下降,所以不会调整DDR的电压和/或频率。在实线圈6、7的时刻,虽然增加了CC0 TB1和CC1 TB1的吞吐率之和,但是由于CC0 TB1的吞吐率等于CC0 TB0的吞吐率,CC1 TB1的吞吐率等于CC1 TB0的吞吐率,所以在实线圈6、7的时刻不会调整DDR的电压和/或频率。在实线圈8的时刻,CC2 TB1的吞吐率被释放,所以也不会调整DDR的电压和/或频率。在实线圈9的时刻的吞吐率为CC0 TB1、CC1 TB1和CC2 TB2的吞吐率之和,由于CC0 TB1的吞吐率等于CC0 TB0的吞吐率,CC1 TB1的吞吐率等于CC1 TB0的吞吐率,且CC2 TB2的吞吐率大于CC2 TB1的吞吐率,所以实线圈9的时刻的吞吐率大于虚线圈2的吞吐率,因此在实线圈9的时刻增加DDR的电压和/或频率。As an example, you can still refer to Figure 10, which shows a schematic diagram of a combination of different carrier throughput change time points. Combining the above two scenarios, if voting is performed for each change, there will be There is a time of 3*6=18us that DDR cannot be accessed, which has a great impact on system performance. Therefore, it is necessary to combine the time points of throughput changes based on the decoding start time of the transport block of each carrier, that is, adjust the DDR voltage and/or Frequency, at the starting moment of decoding of CC2 TB1, the throughput rate of CC0 TB0, CC1 TB0 and CC2 TB1 is accumulated to obtain the throughput value at the time point of dotted circle 2, and the voltage and voltage of DDR are configured based on the calculated throughput value /or frequency; at the moment of real coil 4, 5, 6, 7, 8, CC0 TB0, CC1 TB0 and CC2 TB1 have finished decoding successively, thus the throughput rate of CC0 TB0, CC1 TB0 and CC2 TB1 is released, then the actual At the moment of coil 4 and 5, the throughput rate of CC0 TB0 and CC1 TB0 is released, and the throughput rate of real coil 4 and 5 decreases, so the voltage and/or frequency of DDR will not be adjusted. At the moment of solid coils 6 and 7, although the sum of the throughput rates of CC0 TB1 and CC1 TB1 is increased, since the throughput rate of CC0 TB1 is equal to the throughput rate of CC0 TB0, the throughput rate of CC1 TB1 is equal to the throughput rate of CC1 TB0, so At the moment of the solid coils 6, 7 the voltage and/or frequency of the DDR is not adjusted. At the moment of solid coil 8, the throughput of CC2 TB1 is released, so the voltage and/or frequency of DDR will not be adjusted either. The throughput rate at the moment of the solid coil 9 is the sum of the throughput rates of CC0 TB1, CC1 TB1 and CC2 TB2, because the throughput rate of CC0 TB1 is equal to the throughput rate of CC0 TB0, the throughput rate of CC1 TB1 is equal to the throughput rate of CC1 TB0, and The throughput rate of CC2 TB2 is greater than the throughput rate of CC2 TB1, so the throughput rate at the time of the solid coil 9 is greater than the throughput rate of the dotted coil 2, so the voltage and/or frequency of the DDR is increased at the time of the solid coil 9.
在本年实施中,避免了每个时隙频繁多次地调整DDR的电压和频率的问题,合并配置DDR的频率和电压的次数,降低了配置DDR电压和频率对DDR访问的影响。In this year's implementation, the problem of frequently adjusting the voltage and frequency of DDR for each time slot has been avoided, and the number of frequency and voltage configurations of DDR has been combined to reduce the impact of configuring DDR voltage and frequency on DDR access.
在本系统中,若译码器可以通过是否接收到门控信号clock gating,确定是否进行译码操作。若在译码过程中,译码器接收到门控信号clock gating,则停止当前译码操作。若没有接收到门控信号clock gating,则按照正常时隙与传输块的传输顺序,依次对传输块进行译码操作。通过门控信号clock gating控制译码器停止译码操作,可以在指定场景下或者突发情况下,实现对译码器的及时控制。In this system, if the decoder can determine whether to perform the decoding operation by whether it receives the gating signal clock gating. If during the decoding process, the decoder receives the gating signal clock gating, it will stop the current decoding operation. If the gating signal clock gating is not received, the transmission blocks are decoded sequentially according to the transmission sequence of the normal time slot and transmission block. The decoder is controlled to stop the decoding operation through the gate control signal clock gating, which can realize timely control of the decoder in a specified scene or in an emergency.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (26)

  1. 一种DDR访问方法,其中,包括:A DDR access method, including:
    根据双倍速率同步动态随机存储器DDR在第一时隙的吞吐率,调节所述DDR在所述第一时隙的频率和/或电压,其中,所述第一时隙为物理下行共享信道PDSCH的时隙;Adjust the frequency and/or voltage of the DDR in the first time slot according to the throughput rate of the double rate synchronous dynamic random access memory DDR in the first time slot, wherein the first time slot is the physical downlink shared channel PDSCH time slot;
    在所述第一时隙,基于所述DDR在所述第一时隙的频率和/或电压,对所述DDR读取和/或写入第一传输块的译码数据,所述第一传输块是经所述PDSCH传输的。In the first time slot, based on the frequency and/or voltage of the DDR in the first time slot, read and/or write the decoded data of the first transport block to the DDR, the first Transport blocks are transmitted via the PDSCH.
  2. 根据权利要求1所述的方法,其中,所述根据所述DDR在第一时隙的吞吐率,调节所述DDR在所述第一时隙的频率和/或电压,包括:The method according to claim 1, wherein the adjusting the frequency and/or voltage of the DDR in the first time slot according to the throughput rate of the DDR in the first time slot comprises:
    在所述DDR在所述第一时隙的吞吐率变大的情况下,提高所述DDR在所述第一时隙的频率和/或电压;When the throughput rate of the DDR in the first time slot becomes larger, increase the frequency and/or voltage of the DDR in the first time slot;
    在所述DDR在所述第一时隙的吞吐率变小的情况下,降低所述DDR在所述第一时隙的频率和/或电压。When the throughput rate of the DDR in the first time slot becomes smaller, reduce the frequency and/or voltage of the DDR in the first time slot.
  3. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    根据所述DDR在第二时隙的数据访问量,确定所述DDR在所述第一时隙的数据访问量,所述第二时隙为所述第一时隙的前一时隙;Determine the data access amount of the DDR in the first time slot according to the data access amount of the DDR in the second time slot, the second time slot being a previous time slot of the first time slot;
    基于计算得到的所述DDR在第一时隙的数据访问量,以及对所述第一传输块的译码用时,计算得到所述DDR在所述第一时隙的吞吐率。The throughput rate of the DDR in the first time slot is calculated based on the calculated data access amount of the DDR in the first time slot and the decoding time for the first transport block.
  4. 根据权利要求3所述的方法,其中,计算得到的所述DDR在第一时隙的数据访问量与所述DDR在第二时隙的数据访问量之间满足以下公式:The method according to claim 3, wherein the calculated data access amount of the DDR in the first time slot and the data access amount of the DDR in the second time slot satisfy the following formula:
    De=(1-a)*Dh+a*DlDe=(1-a)*Dh+a*Dl
    其中,De为计算得到的所述DDR在第一时隙的数据访问量,Dh为所述DDR在所述第二时隙的前一时隙内的数据访问量,Dl为所述DDR在第二时隙内的数据访问量,a大于0且小于或等于1。Wherein, De is the calculated data access amount of the DDR in the first time slot, Dh is the data access amount of the DDR in the previous time slot of the second time slot, and D1 is the data access amount of the DDR in the second time slot. The amount of data access in the time slot, a is greater than 0 and less than or equal to 1.
  5. 根据权利要求3所述的方法,其中,所述DDR在第二时隙的数据访问量包括在所述第二时隙中第二传输块的译码数据的数据量,其中,所述第二传输块为所述第一传输块的前一传输块,所述第二传输块的译码数据包括所述第二传输块中每个编码块的软比特数据或硬比特数据或解密数据。The method according to claim 3, wherein the data access amount of the DDR in the second time slot includes the data amount of the decoded data of the second transport block in the second time slot, wherein the second The transport block is a previous transport block of the first transport block, and the decoded data of the second transport block includes soft bit data or hard bit data or decrypted data of each encoded block in the second transport block.
  6. 根据权利要求1所述的方法,其中,针对所述第一传输块中的每个编码块,对所述DDR写入第一传输块的译码数据,包括:The method according to claim 1, wherein, for each coding block in the first transmission block, writing the decoded data of the first transmission block to the DDR includes:
    在所述编码块的CRC出现错误时,将所述编码块对应的软比特数据写入所述DDR;和/或,When an error occurs in the CRC of the coding block, writing the soft bit data corresponding to the coding block into the DDR; and/or,
    在所述编码块CRC正确,且所述第一传输块中在所述编码块之前存在CRC错误的编码块时,将所述编码块对应的硬比特数据写入所述DDR;和/或,When the CRC of the coded block is correct and there is a coded block with a CRC error before the coded block in the first transmission block, writing the hard bit data corresponding to the coded block into the DDR; and/or,
    在所述编码块CRC正确,且所述第一传输块中在所述编码块之前不存在CRC错误的编码块时,将所述编码块对应的解密数据写入所述DDR。When the CRC of the coded block is correct and there is no coded block with a CRC error before the coded block in the first transmission block, write the decrypted data corresponding to the coded block into the DDR.
  7. 根据权利要求1所述的方法,其中,对所述DDR读取第一传输块的译码数据,包括:The method according to claim 1, wherein reading the decoded data of the first transport block to the DDR comprises:
    在对所述第一传输块重传译码的情况下,从所述DDR读取所述第一传输块中每个编码块的软比特数据或硬比特数据。In the case of retransmission decoding of the first transmission block, reading soft bit data or hard bit data of each coded block in the first transmission block from the DDR.
  8. 根据权利要求3所述的方法,其中,所述PDSCH包括多个载波,每个载波皆用于传输传输块,根据所述DDR在第一时隙的吞吐率,调节所述DDR在第一时隙的频率和/或电压,包括:The method according to claim 3, wherein the PDSCH includes a plurality of carriers, each carrier is used to transmit transport blocks, and the DDR is adjusted at the first time slot according to the throughput rate of the DDR at the first time slot. Gap frequency and/or voltage, including:
    在所述第一时隙内各传输块的译码起始时刻与所述第一时隙的起始时刻之间的时间间隔皆不大于第一阈值时,根据计算得到的所述DDR在所述第一时隙的吞吐率,配置所述DDR在第一时隙的起始时间点的频率和/或电压,并保持所述DDR在所述第时隙的频率和/或电压。When the time interval between the decoding start time of each transport block in the first time slot and the start time of the first time slot is not greater than the first threshold, according to the calculated DDR at the The throughput rate of the first time slot, configuring the frequency and/or voltage of the DDR at the start time point of the first time slot, and maintaining the frequency and/or voltage of the DDR in the first time slot.
  9. 根据权利要求8所述的方法,其中,根据所述DDR在第一时隙的吞吐率,调节所述DDR在第一时隙的频率和/或电压,包括:The method according to claim 8, wherein, adjusting the frequency and/or voltage of the DDR in the first time slot according to the throughput rate of the DDR in the first time slot comprises:
    在所述第一时隙内存在第三传输块时,根据计算得到的所述DDR在第一时隙的吞吐率,配置所述DDR在所述第一时隙的起始时间点的频率和/或电压,其中,所述第三传输块的译码起始时刻与第一时隙的起始时刻之间的间隔大于第一阈值;When there is a third transmission block in the first time slot, according to the calculated throughput rate of the DDR in the first time slot, configure the frequency and /or voltage, wherein the interval between the start of decoding of the third transport block and the start of the first time slot is greater than a first threshold;
    根据读取和/或写入所述第三传输块的译码数据的数据量增大所述DDR在所述第三传输块的译码起始时刻之后的频率和/或电压。Increase the frequency and/or voltage of the DDR after the decoding start moment of the third transmission block according to the amount of decoded data read and/or written into the third transmission block.
  10. 根据权利要求8所述的方法,其中,计算得到的所述DDR在所述第一时隙的吞吐率包括从所述DDR读取和/或写入每个载波分别对应的传输块的译码数据的吞吐率之和。The method according to claim 8, wherein the calculated throughput rate of the DDR in the first time slot comprises reading and/or writing decoding of transport blocks respectively corresponding to each carrier from the DDR The sum of data throughput rates.
  11. 根据权利要求3所述的方法,其中,还包括:The method according to claim 3, further comprising:
    若计算得到的所述DDR在所述第一时隙的吞吐率和所述DDR在所述第一时隙的实际吞吐率之间的差值大于第一预设阈值,则对计算得到的第三时隙的吞吐率进行修正,所述第三时隙为所述第一时 隙的下一时隙。If the difference between the calculated throughput of the DDR in the first time slot and the actual throughput of the DDR in the first time slot is greater than the first preset threshold, then the calculated first time slot The throughput rate of three time slots is corrected, and the third time slot is the next time slot of the first time slot.
  12. 根据权利要求10所述的方法,其中,还包括:The method according to claim 10, further comprising:
    在所述DDR的吞吐率大于最高门限值时,按照所述最高门限值调节所述DDR在所述第一时隙的频率和/或电压;和/或,When the throughput rate of the DDR is greater than the highest threshold value, adjusting the frequency and/or voltage of the DDR in the first time slot according to the highest threshold value; and/or,
    在所述DDR的吞吐率小于最低门限值时,按照所述最低门限值调节所述DDR在所述第一时隙的频率和/或电压。When the throughput rate of the DDR is less than a minimum threshold value, adjust the frequency and/or voltage of the DDR in the first time slot according to the minimum threshold value.
  13. 根据权利要求1-11中任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1-11, wherein the method further comprises:
    按照译码周期对所述第一传输块进行译码;Decoding the first transport block according to a decoding cycle;
    在所述译码周期内,根据双倍速率同步动态随机存储器DDR在第一时隙的吞吐率,调节所述DDR在所述第一时隙的频率和/或电压。In the decoding period, the frequency and/or voltage of the DDR in the first time slot is adjusted according to the throughput rate of the double rate synchronous dynamic random access memory DDR in the first time slot.
  14. 根据权利要求13所述的方法,其中,包括:The method of claim 13, comprising:
    在所述第一传输块的译码起始时刻之前,计算所述第一时隙在所述第一传输块译码期间的第一吞吐率;calculating a first throughput rate of the first time slot during decoding of the first transport block before the decoding start moment of the first transport block;
    在所述第一吞吐率大于前一次调整电压和/或频率时对应的吞吐率的情况下,增大所述DDR的频率和/或电压。When the first throughput rate is greater than the corresponding throughput rate when the voltage and/or frequency were adjusted last time, increase the frequency and/or voltage of the DDR.
  15. 根据权利要求14所述的方法,其中,包括:The method of claim 14, comprising:
    在所述第一吞吐率不大于前一次调整电压和/或频率时对应的吞吐率的情况下,保持所述DDR的频率和/或电压。In a case where the first throughput rate is not greater than the corresponding throughput rate when the voltage and/or frequency were adjusted last time, the frequency and/or voltage of the DDR is maintained.
  16. 根据权利要求14所述的方法,其中,包括:The method of claim 14, comprising:
    在前一次调整电压和/或频率时对应的吞吐率减去所述第一吞吐率的差值大于第二预设阈值的情况下,降低所述DDR的频率和/或电压。When the difference between the throughput rate corresponding to the previous voltage and/or frequency adjustment minus the first throughput rate is greater than a second preset threshold, the frequency and/or voltage of the DDR is reduced.
  17. 一种基于DDR的数据传输方法,其中,适用于权利要求1-16中任一项提供的DDR访问方法中,所述方法包括:A DDR-based data transmission method, wherein, applicable to the DDR access method provided by any one of claims 1-16, the method includes:
    在第一时隙对第一传输块进行译码,所述第一传输块是经所述PDSCH传输的,所述第一时隙为所述PDSCH的时隙;Decoding a first transport block in a first time slot, where the first transport block is transmitted via the PDSCH, where the first time slot is a time slot of the PDSCH;
    对所述DDR读取和/或写入所述第一传输块的译码数据。Reading and/or writing decoded data of the first transport block to the DDR.
  18. 根据权利17所述的方法,其中,针对所述第一传输块中的每个编码块,对所述DDR写入所述第一传输块的译码数据,所述方法包括:The method according to claim 17, wherein, for each coded block in the first transport block, writing the decoded data of the first transport block to the DDR, the method comprises:
    在所述编码块的CRC出现错误时,将所述编码块对应的软比特数据写入所述DDR;和/或,When an error occurs in the CRC of the coding block, writing the soft bit data corresponding to the coding block into the DDR; and/or,
    在所述编码块CRC正确,且所述第一传输块中在所述编码块之前存在CRC错误的编码块时,将所述编码块对应的硬比特数据写入所述DDR;和/或,When the CRC of the coded block is correct and there is a coded block with a CRC error before the coded block in the first transmission block, writing the hard bit data corresponding to the coded block into the DDR; and/or,
    在所述编码块CRC正确,且所述第一传输块中在所述编码块之前不存在CRC错误的编码块时,将所述编码块对应的解密数据写入所述DDR。When the CRC of the coded block is correct and there is no coded block with a CRC error before the coded block in the first transmission block, write the decrypted data corresponding to the coded block into the DDR.
  19. 根据权利要求17所述的方法,其中,对所述DDR读取所述第一传输块的译码数据,包括:The method according to claim 17, wherein reading the decoded data of the first transmission block for the DDR comprises:
    在对所述第一传输块重传译码的情况下,从所述DDR读取所述第一传输块中每个编码块的软比特数据或硬比特数据。In the case of retransmission decoding of the first transmission block, reading soft bit data or hard bit data of each coded block in the first transmission block from the DDR.
  20. 根据权利要求19所述的方法,其中,包括:The method of claim 19, comprising:
    若所述编码块的前一次CRC错误,则从所述DDR中读取所述编码块的软比特数据;If the previous CRC of the coded block is wrong, then read the soft bit data of the coded block from the DDR;
    基于读取的软比特数据对所述编码块再次进行CRC;Performing CRC on the encoded block again based on the read soft bit data;
    在所述CRC正确时,对所述编码块进行译码,得到所述编码块的解密数据。When the CRC is correct, decode the encoded block to obtain decrypted data of the encoded block.
  21. 根据权利要求19所述的方法,其中,包括:The method of claim 19, comprising:
    若所述编码块的前一次CRC正确,则从所述DDR中读取所述编码块的硬比特数据;If the previous CRC of the encoded block is correct, then read the hard bit data of the encoded block from the DDR;
    对所述硬比特数据进行解密,得到所述编码块的解密数据。Decrypt the hard bit data to obtain decrypted data of the coded block.
  22. 一种DDR访问装置,其中,所述装置包括:A DDR access device, wherein the device includes:
    调节模块,用于根据所述DDR在第一时隙的吞吐率,调节所述DDR在所述第一时隙的频率和/或电压,其中,所述第一时隙为物理下行共享信道PDSCH的时隙;An adjustment module, configured to adjust the frequency and/or voltage of the DDR in the first time slot according to the throughput rate of the DDR in the first time slot, wherein the first time slot is a physical downlink shared channel PDSCH time slot;
    访问模块,用于在所述第一时隙,基于所述DDR在所述第一时隙的频率和/或电压,对所述DDR读取和/或写入第一传输块的译码数据,所述第一传输块是经所述PDSCH传输的。An access module, configured to read and/or write decoded data of a first transmission block to the DDR based on the frequency and/or voltage of the DDR in the first time slot in the first time slot , the first transport block is transmitted via the PDSCH.
  23. 一种基于DDR的数据传输装置,其中,所述装置包括:A kind of data transmission device based on DDR, wherein, said device comprises:
    译码模块,用于在第一时隙对第一传输块进行译码,所述第一传输块是经所述PDSCH传输的,所述第一时隙为所述PDSCH的时隙;A decoding module, configured to decode a first transport block in a first time slot, the first transport block is transmitted via the PDSCH, and the first time slot is a time slot of the PDSCH;
    访问模块,用于对所述DDR读取和/或写入所述第一传输块的译码数据。An access module, configured to read and/or write decoded data of the first transmission block to the DDR.
  24. 一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,其中,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至21中任一项所述的方法的步骤。An electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, wherein, when the computer program is executed by the processor, the processor executes any one of claims 1 to 21 The steps of the method.
  25. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现如权利要求1至21中任一项所述的方法的步骤。A computer-readable storage medium, on which a computer program is stored, wherein, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 21 are realized.
  26. 一种双倍速率同步动态随机存储器的访问系统,其中,包括控制单元、DDR和供电单元,其中,所述供电单元,用于在所述控制单元的控制下为所述DDR供电;An access system for double rate synchronous dynamic random access memory, including a control unit, a DDR and a power supply unit, wherein the power supply unit is used to supply power to the DDR under the control of the control unit;
    所述控制单元,用于执行如权利要求1至21中任一项所述的方法。The control unit is configured to execute the method according to any one of claims 1-21.
PCT/CN2022/125942 2021-11-10 2022-10-18 Ddr access method and apparatus, electronic device, and system WO2023082954A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111328417.7A CN113900595B (en) 2021-11-10 2021-11-10 DDR access method, device, electronic equipment and system
CN202111328417.7 2021-11-10

Publications (1)

Publication Number Publication Date
WO2023082954A1 true WO2023082954A1 (en) 2023-05-19

Family

ID=79193856

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/125942 WO2023082954A1 (en) 2021-11-10 2022-10-18 Ddr access method and apparatus, electronic device, and system

Country Status (2)

Country Link
CN (1) CN113900595B (en)
WO (1) WO2023082954A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900595B (en) * 2021-11-10 2023-12-15 哲库科技(北京)有限公司 DDR access method, device, electronic equipment and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110446270A (en) * 2019-08-13 2019-11-12 北京理工大学 The dynamic dispatching method of transmission time slot binding in a kind of low orbit satellite voice communication
US20200107340A1 (en) * 2018-09-28 2020-04-02 Apple Inc. Cross-Slot Scheduling for New Radio
CN111294834A (en) * 2019-07-03 2020-06-16 展讯通信(上海)有限公司 PDSCH decoding method and device, storage medium and terminal
US20200218608A1 (en) * 2019-01-09 2020-07-09 Synopsys, Inc. Post-ecc crc for ddr crc retry performance improvement
CN113595708A (en) * 2019-11-15 2021-11-02 Oppo广东移动通信有限公司 Cross-carrier transmission method and device and terminal equipment
CN113900595A (en) * 2021-11-10 2022-01-07 哲库科技(北京)有限公司 DDR access method, device, electronic equipment and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8593902B2 (en) * 2011-09-06 2013-11-26 Mediatek Inc. Controller and access method for DDR PSRAM and operating method thereof
US10477475B2 (en) * 2017-03-23 2019-11-12 Apple Inc. Control indicator for power saving in a mobile wireless communication device
US11589305B2 (en) * 2018-03-12 2023-02-21 Apple Inc. Scheduling profile for UE power savings
US10396940B1 (en) * 2018-04-09 2019-08-27 At&T Intellectual Property I, L.P. Scheduling downlink data with multiple slot feedback channel configuration in wireless communication systems

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200107340A1 (en) * 2018-09-28 2020-04-02 Apple Inc. Cross-Slot Scheduling for New Radio
US20200218608A1 (en) * 2019-01-09 2020-07-09 Synopsys, Inc. Post-ecc crc for ddr crc retry performance improvement
CN111294834A (en) * 2019-07-03 2020-06-16 展讯通信(上海)有限公司 PDSCH decoding method and device, storage medium and terminal
CN110446270A (en) * 2019-08-13 2019-11-12 北京理工大学 The dynamic dispatching method of transmission time slot binding in a kind of low orbit satellite voice communication
CN113595708A (en) * 2019-11-15 2021-11-02 Oppo广东移动通信有限公司 Cross-carrier transmission method and device and terminal equipment
CN113900595A (en) * 2021-11-10 2022-01-07 哲库科技(北京)有限公司 DDR access method, device, electronic equipment and system

Also Published As

Publication number Publication date
CN113900595B (en) 2023-12-15
CN113900595A (en) 2022-01-07

Similar Documents

Publication Publication Date Title
US11784760B2 (en) Method and system for contiguous HARQ memory management with memory splitting
US11005602B2 (en) HARQ buffer size design for communication systems
WO2020221287A1 (en) Threshold value, resource determination method, apparatus, network device, and storage medium
US11190211B2 (en) Method and device of selecting base graph of low-density parity-check code
WO2023082954A1 (en) Ddr access method and apparatus, electronic device, and system
WO2023082872A1 (en) Memory configuration method and apparatus, and terminal
CN111133704A (en) Adaptive two-level downlink control channel structure for fifth generation (5G) or other next generation systems based on code block groups
WO2019091374A1 (en) Information transmission method and communication device
WO2019024696A1 (en) Method, apparatus and device for determining size of transmission block
WO2019100795A1 (en) Encoding method and apparatus, electronic device and storage medium
TWI791468B (en) Modem chip
WO2019062677A1 (en) Channel transmission method, terminal device, and network device
US10230501B2 (en) Technique for storing softbits
WO2021017942A1 (en) Signal transmission method and device, network apparatus, and storage medium
US11489624B2 (en) Error correction in network packets using lookup tables
CN107124772B (en) Resource scheduling method and device
WO2022028166A1 (en) Resource allocation method and apparatus, and communication device
US20220287029A1 (en) Uci transmission and reception methods, device, system, apparatus, and medium
WO2018201903A1 (en) Data transmission method, terminal, and base station
WO2019062153A1 (en) Indication method and apparatus
CN110224788B (en) Data transmission method and device
WO2021000120A1 (en) Communication method and apparatus
TWI811396B (en) Data processing device communicating with memory device and method of communicating with memory device
WO2020134610A1 (en) Data scheduling method and apparatus
CN104168099B (en) A kind of Multi-task Concurrency coding method of Raptor codes

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22891751

Country of ref document: EP

Kind code of ref document: A1