Asymmetric access method for indefinite length data in ASIC

By using multiple read and write pointers and algorithm circuits in ASIC to calculate the data bit width, the problem of variable-length data storage is solved, and flexible data processing and storage and forwarding in complex circuit systems are realized, which is suitable for a variety of application scenarios. Data bit width mismatch.

CN117194281BActive Publication Date: 2024-09-24SHANGHAI XINQIZHI TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311133614.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-05
Publication Date
2024-09-24
Estimated Expiration
2043-09-05

AI Technical Summary

Technical Problem

In complex circuit systems, when the data bit width is constantly changing, it is difficult for the existing technology to effectively process and store variable-length data, especially in the oversampling mode in the MIPI-PAL GPIO circuit, resulting in uncertain data bit width and unable to Achieve continuous uninterruptible storage and reading.

Method used

Multiple read and write pointers are used to operate on variable-length data. Each clock cycle determines the maximum bit width of the data. The algorithm circuit calculates the bit width of each read and write operation, controls the length of written and read data, and uses multiple A storage unit realizes storage and forwarding of variable-length data.

Benefits of technology

It realizes flexible processing of variable-length data in each clock cycle, and is suitable for data bit width mismatch in different application scenarios. It replaces the traditional bit width conversion circuit, avoids storage overflow problems, and improves the flexibility and efficiency of data storage. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

The present invention discloses an asymmetric access method for indefinite-length data in ASIC, which belongs to the field of storage. It uses multiple read-write pointers to perform read-write operations on indefinite-length data, and each pointer corresponds to a storage unit in the operation storage circuit; the maximum bit width of data written and read out in each clock cycle is clearly defined, and the result of dividing the maximum bit width of each written data by the bit width of each storage unit is the number of write pointers, and the maximum bit width of each read-out data is the number of read pointers. The present invention is suitable for storing and forwarding indefinite-length data whose bit width changes in each clock cycle or several clock cycles, and can realize the situation where the interactive data bit width of two systems in various different application scenarios does not match. At the same time, it can also be used to replace the traditional bit width conversion circuit, and realize data storage and forwarding in various scenarios by changing the read pointer and the write pointer to process indefinite-length or fixed-length data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of storage technology, and in particular to an asymmetric access method for indefinite-length data in an ASIC (Application Specific Integrated Circuit). Background Art

[0002] In some complex circuit systems, the interaction between data is particularly complex. For data interaction between two circuits with mismatched data bit widths, data needs to be stored, intercepted, spliced, shifted, and other operations; however, for the case where the data bit width to be processed is constantly changing, a new circuit and method are needed to solve this problem. The following is a typical application example in the MIPI-PAL GPIO (General-purpose input / output) circuit.

[0003] like Figure 1 The figure shows a schematic diagram of sampling multiple GPIO signals. For different configurations of PAL GPIO (Protocol Adaptation Layer) in oversampling mode, the data bit width captured at each sampling point is different. The data needs to be stored during the continuous sampling process. Sampling in oversampling mode is a continuous and uninterruptible process. A large amount of data generated during the process needs to be temporarily stored. The captured data is temporarily stored at each sampling point. Since the data bit width captured at each sampling point is of indefinite length, that is, the data bit width stored in each clock cycle is uncertain, and the bit width of the stored data read out in each clock cycle is also uncertain, there is an urgent need for a method for storing indefinite length data. Summary of the invention

[0004] The object of the present invention is to provide an asymmetric access method for indefinite-length data in ASIC to solve the problems in the background technology.

[0005] To solve the above technical problems, the present invention provides an asymmetric access method for indefinite-length data in an ASIC, comprising:

[0006] Multiple read and write pointers are used to perform read and write operations on data of indefinite length, and each pointer corresponds to a storage unit in the operation storage circuit;

[0007] Clarify the maximum bit width of data written and read in each clock cycle. The maximum bit width of each written data divided by the bit width of each storage unit is the number of write pointers, and the maximum bit width of each read data is the number of read pointers.

[0008] In one embodiment, the actual bit width of each written or read data is uncertain, and the bit width of each written or read data is calculated by an algorithm circuit, and an additional algorithm circuit is required to provide the data bit width of each read and write operation;

[0009] The data write operation in the storage circuit writes data of a specific length into the storage by controlling a specific number of write pointers in each clock cycle;

[0010] In the data read operation in the storage circuit, data of a specific length is read from the storage unit in each clock cycle by controlling the number of read pointers that match the read data bit width.

[0011] In one implementation, the serial numbers of the read / write pointers correspond from small to large to the low to high bits of data in a clock cycle; the number of storage units in the storage circuit, that is, the depth of the storage circuit needs to be calculated according to the actual read / write speed.

[0012] In one embodiment, the storage unit of the storage circuit has a bit width of 1 bit, and the maximum bit width of data written simultaneously in one clock cycle is 4 bits;

[0013] In the first cycle, bit 0 and bit 3 of the valid bit positions are both 1, which are valid data stored in the storage circuit, so the four write pointers are operated at the same time. The values ​​of the first three write pointers are all 1, and the value of the fourth write pointer is 2, indicating that two bits of data are written into the storage unit 0 and the storage unit 1 of the storage circuit respectively. When the next write operation is executed, the following data is ready to be written from the storage unit 2;

[0014] In the second cycle, since bit 2 and bit 3 in the valid bit positions are both 1, which are valid data stored in the storage circuit, the four write pointers will be operated simultaneously. The value of the first write pointer is 3, and the values ​​of the next three write pointers are all 4, indicating that 2 bits of data are written into storage unit 2 and storage unit 3 of the storage circuit respectively. When the next write operation is executed, the following data write operation will be prepared from storage unit 4.

[0015] The present invention provides an asymmetric access method for indefinite-length data in an ASIC, which is suitable for storing and forwarding indefinite-length data whose bit width changes every clock cycle or several clock cycles, and can realize the situation where the interactive data bit width of two systems in various application scenarios does not match. At the same time, it can also be used to replace the traditional bit width conversion circuit, and realize data storage and forwarding in various scenarios by changing the read pointer and the write pointer to process indefinite-length or fixed-length data. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1This is a schematic diagram of GPIO signal sampling.

[0017] Figure 2 It is a structural diagram of a general storage circuit.

[0018] Figure 3 It is a schematic diagram of the structure of the indefinite-length data storage circuit provided by the present invention.

[0019] Figure 4 The present invention is a schematic diagram of a circuit for writing indefinite-length data into a storage device. DETAILED DESCRIPTION

[0020] The following is a further detailed description of an asymmetric access method for indefinite length data in an ASIC proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer according to the following description. It should be noted that the accompanying drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0021] like Figure 2 The figure shows a universal storage circuit, in which there is a read pointer and a write pointer. Each time the read and write pointers are incremented by 1, data of a fixed bit width will be read from or written to the storage. The reading and writing of variable-length data cannot be completed using this universal storage.

[0022] The present invention provides a storage circuit for storing and forwarding indefinite length data, such as Figure 3 The figure shows a storage circuit for storing data of indefinite length. The storage circuit uses multiple read and write pointers to perform read and write operations on data of indefinite length. Each pointer corresponds to a storage unit in the operation storage circuit. It is necessary to clearly define the maximum bit width of the data to be written and read in each clock cycle. The result of dividing the maximum bit width of the data to be written each time by the bit width of each storage unit is the number of write pointers, and the maximum bit width of the data to be read each time is the number of read pointers.

[0023] The actual bit width of each data write or read is uncertain. The bit width of each data write or read is calculated by the algorithm circuit, so an additional algorithm circuit is needed to provide the data bit width for each read and write operation. For the write data operation in the storage circuit, each clock cycle controls a specific number of write pointers to write data of a specific length into the storage. Similarly, for the storage read data operation, each clock cycle controls the number of read pointers that match the read data bit width to read data of a specific length from the storage unit. The serial numbers of the read and write pointers correspond from small to large to the low to high bits of the data in a clock cycle. The number of storage units in the storage circuit, that is, the depth of the storage circuit, needs to be calculated according to the actual read and write speed. The designed storage needs to be based on the actual application to ensure that the storage circuit will not have overflow and overflow problems during the read and write process.

[0024] like Figure 4 The example of writing indefinite length data into a storage circuit is shown. The storage unit of the storage circuit in the figure has a bit width of 1 bit, and the maximum bit width of data that can be written simultaneously in one clock cycle is 4 bits. In the first cycle, since bit 0 and bit 3 in the valid bit positions are both 1, which are valid data stored in the storage circuit, the four write pointers will be operated at the same time. The values ​​of the first three write pointers are all 1, and the value of the fourth write pointer is 2, indicating that 2 bits of data are written into the storage unit 0 and storage unit 1 of the storage circuit respectively, and the next write operation is performed from storage unit 2 to prepare for the write operation of the following data. In the second cycle, since bit 2 and bit 3 in the valid bit positions are both 1, which are valid data stored in the storage circuit, the four write pointers will also be operated at the same time. The value of the first write pointer is 3, and the values ​​of the next three write pointers are all 4, indicating that 2 bits of data are written into the storage unit 2 and storage unit 3 of the storage circuit respectively, and the next write operation is performed from storage unit 4 to prepare for the write operation of the following data.

[0025] In an asymmetric access method for indefinite-length data in an ASIC provided by the present invention, a storage circuit uses multiple pointers to perform read and write operations simultaneously within a clock cycle, each read and write pointer corresponds to valid data at an address, and the number of valid pointers used in each clock cycle multiplied by the data bit width at an address is the valid bit width of the corresponding data; the bit width of a storage unit corresponding to an address in the storage circuit can be changed, but it is required that all bits are valid at the same time, and their states are bound together; by changing the storage depth, the fixed width of a storage unit, and the maximum number of read and write pointers, the storage problem of indefinite-length data in different application scenarios is dealt with; by changing the behavior of the read and write pointers, three different circuit behaviors are controlled: reading data is indefinite length and writing data is fixed length, writing data is indefinite length and reading data is fixed length, and reading and writing data are both indefinite length.

[0026] The present invention provides a method for storing and forwarding data of indefinite length through a storage circuit of a special structure, solving the problem that general storage can only read and write fixed-bit-width data in each clock cycle, but cannot store data of indefinite bit-width that may change in each clock cycle.

[0027] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.

Claims

1. A method for asymmetric access of indefinite length data in ASIC, characterized in that: include: Multiple read and write pointers are used to perform read and write operations on data of indefinite length, and each pointer corresponds to a storage unit in the operation storage circuit; Specify the maximum bit width of data written and read in each clock cycle. The maximum bit width of data written each time divided by the bit width of each storage unit is the number of write pointers. The maximum bit width of data read each time is the number of read pointers. The actual bit width of each written or read data is uncertain. The bit width of each written or read data is calculated by the algorithm circuit. An additional algorithm circuit is required to provide the data bit width for each read and write operation. The data write operation in the storage circuit writes data of a specific length into the storage by controlling a specific number of write pointers in each clock cycle; The data read operation in the storage circuit reads data of a specific length from the storage unit in each clock cycle by controlling the number of read pointers that match the read data bit width; The serial numbers of the read / write pointers correspond from small to large to the low to high bits of data in a clock cycle; the number of storage units in the storage circuit, that is, the depth of the storage circuit needs to be calculated according to the actual read / write speed; The storage unit of the storage circuit has a bit width of 1 bit, and the maximum bit width of data written simultaneously in one clock cycle is 4 bits; In the first cycle, bit 0 and bit 3 of the valid bit positions are both 1, which are valid data stored in the storage circuit, so the four write pointers are operated at the same time. The values ​​of the first three write pointers are all 1, and the value of the fourth write pointer is 2, indicating that two bits of data are written into the storage unit 0 and the storage unit 1 of the storage circuit respectively. When the next write operation is executed, the following data is ready to be written from the storage unit 2; In the second cycle, since bit 2 and bit 3 in the valid bit positions are both 1, which are valid data stored in the storage circuit, the four write pointers will be operated simultaneously. The value of the first write pointer is 3, and the values ​​of the next three write pointers are all 4, indicating that 2 bits of data are written into storage unit 2 and storage unit 3 of the storage circuit respectively. When the next write operation is executed, the following data write operation will be prepared from storage unit 4.