[go: up one dir, main page]

CN116166178A - Basic storage unit management circuit and basic storage unit management method - Google Patents

Basic storage unit management circuit and basic storage unit management method Download PDF

Info

Publication number
CN116166178A
CN116166178A CN202111412802.XA CN202111412802A CN116166178A CN 116166178 A CN116166178 A CN 116166178A CN 202111412802 A CN202111412802 A CN 202111412802A CN 116166178 A CN116166178 A CN 116166178A
Authority
CN
China
Prior art keywords
storage unit
basic storage
idle
bit
buffer
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111412802.XA
Other languages
Chinese (zh)
Inventor
陆志豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Realtek Semiconductor Corp
Original Assignee
Realtek Semiconductor Corp
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 Realtek Semiconductor Corp filed Critical Realtek Semiconductor Corp
Priority to CN202111412802.XA priority Critical patent/CN116166178A/en
Publication of CN116166178A publication Critical patent/CN116166178A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0614Improving the reliability of storage systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种基本存储单元管理电路以及一种基本存储单元管理方法。该基本存储单元管理电路包含有一接收电路、一传输电路、一第一缓冲器以及一闲置基本存储单元控制器。第一缓冲器用以存储一位元表,其中位元表包含有多个第一位元,其分别对应多个基本存储单元,以及多个第一位元中的每一第一位元用以标示一相对应的基本存储单元是否为一闲置基本存储单元。闲置基本存储单元控制器耦接于接收电路、传输电路以及第一缓冲器,并且用以管理第一缓冲器所存储的位元表,以及依据位元表来处理对应接收电路所接收或传输电路所传输的至少一封包的至少一基本存储单元。

Figure 202111412802

A basic storage unit management circuit and a basic storage unit management method. The basic storage unit management circuit includes a receiving circuit, a transmission circuit, a first buffer and an idle basic storage unit controller. The first buffer is used to store a bit table, wherein the bit table includes a plurality of first bits, which respectively correspond to a plurality of basic storage units, and each first bit in the plurality of first bits is used for Indicating whether a corresponding basic storage unit is an idle basic storage unit. The idle basic storage unit controller is coupled to the receiving circuit, the transmitting circuit and the first buffer, and is used to manage the bit table stored in the first buffer, and process the corresponding receiving circuit or transmitting circuit according to the bit table At least one basic storage unit of at least one packet transmitted.

Figure 202111412802

Description

基本存储单元管理电路以及基本存储单元管理方法Basic storage unit management circuit and basic storage unit management method

技术领域technical field

本发明涉及数据管理,特别涉及针对闲置(idle)基本存储单元(basic storageunit)的基本存储单元管理电路以及基本存储单元管理方法。The invention relates to data management, in particular to a basic storage unit management circuit and a basic storage unit management method for idle basic storage units.

背景技术Background technique

在传统的交换器(switch)、路由器(router)或媒体存取控制(media accesscontrol,MAC)中,一存储器,诸如静态随机存取存储器(static random access memory,SRAM),通常会被划分为多个基本存储单元,并且可利用多位元(multi-bit)的闲置基本存储单元链结列表(link list)来管理多个基本存储单元中的闲置基本存储单元,然而,一些问题可能会发生。由于在多位元的闲置基本存储单元链结列表中的一闲置基本存储单元的位址是被存储在前一个闲置基本存储单元中,因此有着多位元的闲置基本存储单元链结列表的一存储器(例如静态随机存取存储器)的大小可能会因为基本存储单元数量而增加,其可能会增加成本以及读取时间,此外,取得/释放(get/release)闲置基本存储单元的流通量(throughput)可能会被该存储器的频宽限制,因此,极需一种新颖的架构来取代闲置基本存储单元链结列表。In a traditional switch, router or media access control (MAC), a memory, such as a static random access memory (SRAM), is usually divided into multiple A basic storage unit, and a multi-bit (multi-bit) free basic storage unit link list (link list) can be used to manage idle basic storage units in a plurality of basic storage units, however, some problems may occur. Since the address of a free basic storage unit in the multi-bit free basic storage unit linked list is stored in the previous free basic storage unit, there is one part of the multi-bit free basic storage unit linked list. The size of memory (such as SRAM) may increase due to the number of basic storage units, which may increase cost and read time. In addition, the throughput of get/release (get/release) idle basic storage units ) may be limited by the bandwidth of the memory, therefore, a novel architecture is highly desired to replace the linked list of idle basic storage units.

发明内容Contents of the invention

因此,本发明的目的之一在于提供一种基本存储单元管理电路以及相关基本存储单元管理方法,以解决上述问题。Therefore, one object of the present invention is to provide a basic storage unit management circuit and a related basic storage unit management method to solve the above problems.

本发明的至少一实施例提供了一种基本存储单元管理电路,其中该基本存储单元管理电路可包含有一接收电路、一传输电路、一第一缓冲器以及一闲置基本存储单元控制器。第一缓冲器可用以存储一位元表,其中位元表包含有多个第一位元,其分别对应多个基本存储单元,以及多个第一位元中的每一第一位元用以标示一相对应的基本存储单元是否为一闲置基本存储单元。闲置基本存储单元控制器可耦接于接收电路、传输电路以及第一缓冲器,并且可用以管理第一缓冲器所存储的位元表,以及依据位元表来处理对应接收电路所接收或传输电路所传输的至少一封包的至少一基本存储单元,其中当多个基本存储单元的一基本存储单元是一闲置基本存储单元时,闲置基本存储单元控制器将该基本存储单元所对应的一第一位元设为一第一逻辑值;以及当多个基本存储单元的该基本存储单元不是闲置基本存储单元时,闲置基本存储单元控制器将该基本存储单元所对应的第一位元设为一第二逻辑值。At least one embodiment of the present invention provides a basic storage unit management circuit, wherein the basic storage unit management circuit may include a receiving circuit, a transmission circuit, a first buffer and an idle basic storage unit controller. The first buffer can be used to store a bit table, wherein the bit table includes a plurality of first bits, which respectively correspond to a plurality of basic storage units, and each first bit in the plurality of first bits is used for To indicate whether a corresponding basic storage unit is an idle basic storage unit. The idle basic storage unit controller can be coupled to the receiving circuit, the transmitting circuit and the first buffer, and can be used to manage the bit table stored in the first buffer, and process the received or transmitted data received by the corresponding receiving circuit according to the bit table. At least one basic storage unit of at least one packet transmitted by the circuit, wherein when a basic storage unit of the plurality of basic storage units is an idle basic storage unit, the idle basic storage unit controller assigns a first basic storage unit corresponding to the basic storage unit One bit is set to a first logical value; and when the basic storage unit of the plurality of basic storage units is not an idle basic storage unit, the idle basic storage unit controller sets the first bit corresponding to the basic storage unit to a second logical value.

本发明的至少一实施例提供了一种基本存储单元管理方法。该基本存储单元管理方法可包含有:存储一位元表,其中位元表包含有多个第一位元,其分别对应多个基本存储单元,以及多个第一位元中的每一第一位元用以指示一相对应基本存储单元是否为一闲置基本存储单元;以及使用一闲置基本存储单元控制器来依据位元表处理对应一接收电路所接收或一传输电路所传输的至少一封包的至少一基本存储单元,并且管理位元表,其中当多个基本存储单元的一基本存储单元是一闲置基本存储单元时,闲置基本存储单元控制器将该基本存储单元所对应的一第一位元设为一第一逻辑值,以及当多个基本存储单元的该基本存储单元不是闲置基本存储单元时,闲置基本存储单元控制器将该基本存储单元所对应的第一位元设为一第二逻辑值。At least one embodiment of the present invention provides a basic storage unit management method. The basic storage unit management method may include: storing a bit table, wherein the bit table includes a plurality of first bits, which respectively correspond to a plurality of basic storage units, and each of the plurality of first bits One bit is used to indicate whether a corresponding basic storage unit is an idle basic storage unit; and using an idle basic storage unit controller to process at least one corresponding to a receiving circuit received or a transmitting circuit transmitted according to the bit table Packet at least one basic storage unit, and manage the bit table, wherein when a basic storage unit of the plurality of basic storage units is an idle basic storage unit, the idle basic storage unit controller sets a first corresponding to the basic storage unit One bit is set to a first logical value, and when the basic storage unit of the plurality of basic storage units is not an idle basic storage unit, the idle basic storage unit controller sets the first bit corresponding to the basic storage unit to a second logical value.

本发明的好处之一是,本发明所提供的基本存储单元管理电路可以利用存储着位元表的存储器缓冲器以及暂存器缓冲器来管理闲置基本存储单元,基本存储单元管理电路的闲置基本存储单元控制器先从暂存器缓冲器的多个第二位元中找出具有第一逻辑值(例如1)的一目标第二位元来取得一读取位址,且根据读取位址来读取存储器缓冲器的位元表中的一目标有效闲置存储单元标示栏位,并自目标有效闲置存储单元标示栏位中找出具有第一逻辑值(例如1)的至少一个目标第一位元来取得至少一个闲置基本存储单元,如此一来,可以大幅地减少读取存储器缓冲器的时间,此外,为了减少存储器缓冲器的功率消耗以及节省存储器缓冲器的频宽,本发明还提供了一种基本存储单元管理电路,其包含有一释放基本存储单元缓冲器,其中释放基本存储单元缓冲器可用以减少存储器缓冲器的存取次数。One of the benefits of the present invention is that the basic storage unit management circuit provided by the present invention can utilize the memory buffer and the temporary register buffer storing the bit table to manage idle basic storage units, and the idle basic storage unit of the basic storage unit management circuit The storage unit controller first finds out a target second bit with a first logic value (for example, 1) from a plurality of second bits of the register buffer to obtain a read address, and according to the read bit address to read a target effective free storage unit flag field in the bit table of the memory buffer, and find out at least one target No. One bit is used to obtain at least one idle basic storage unit. In this way, the time for reading the memory buffer can be greatly reduced. In addition, in order to reduce the power consumption of the memory buffer and save the bandwidth of the memory buffer, the present invention also A basic storage unit management circuit is provided, which includes a free basic storage unit buffer, wherein the free basic storage unit buffer can be used to reduce the access times of the memory buffer.

附图说明Description of drawings

图1为依据本发明一实施例的存储器缓冲器中的位元以及暂存器缓冲器中的位元之间的对应关系的示意图。FIG. 1 is a schematic diagram of the corresponding relationship between bits in a memory buffer and bits in a register buffer according to an embodiment of the invention.

图2为依据本发明一实施例的基本存储单元管理电路的示意图。FIG. 2 is a schematic diagram of a basic storage unit management circuit according to an embodiment of the invention.

图3为依据本发明另一实施例的基本存储单元管理电路的示意图。FIG. 3 is a schematic diagram of a basic storage unit management circuit according to another embodiment of the invention.

图4为依据本发明一实施例的基本存储单元管理方法的流程图。FIG. 4 is a flow chart of a basic storage unit management method according to an embodiment of the invention.

符号说明Symbol Description

100,200,300:静态随机存取存储器缓冲器100,200,300: SRAM buffers

101,201,301:位元表101,201,301: bit table

110,210,310:暂存器缓冲器110,210,310: scratchpad buffer

a~d:有效闲置存储单元标示栏位a~d: valid idle storage unit flag field

e~h:第二位元e~h: the second digit

20,30:基本存储单元管理电路20,30: Basic storage unit management circuit

220,320:闲置基本存储单元控制器220,320: idle basic storage unit controller

230,330:接收电路230,330: receiving circuit

240,340:传输电路240,340: transmission circuit

350:释放基本存储单元缓冲器350: Free basic storage unit buffer

B10,B21,B22,B27:第一位元B10,B21,B22,B27: the first digit

S400,S402:步骤S400, S402: steps

具体实施方式Detailed ways

图1为依据本发明一实施例的存储器缓冲器中的位元以及暂存器缓冲器中的位元之间的对应关系的示意图。如图1所示,一存储器缓冲器(例如静态随机存取存储器缓冲器100;为简洁起见,在图1中标记为“SRAM缓冲器”)可用以存储一位元表101,其中位元表101可包含有32个第一位元(其分别对应至32个基本存储单元),以及32个第一位元中的每一个第一位元可用以标示一相对应的基本存储单元是否为一闲置基本存储单元,举例来说,当32个基本存储单元中的一基本存储单元是一闲置基本存储单元时,则该基本存储单元所对应的一第一位元是第一逻辑值(例如1);以及当32个基本存储单元中的一基本存储单元不是闲置基本存储单元时,则该基本存储单元所对应的一第一位元是第二逻辑值(例如0)。此外,为了节省读取存储器缓冲器的时间并且能更快速地找出闲置基本存储单元,可以将位元表以多个位元为单位来划分为多个有效闲置存储单元标示栏位(field),举例来说,位元表101中的MxN(例如MxN=32)个第一位元可以M(例如M=8)个位元为单位来划分为N(例如N=4)个有效闲置存储单元标示栏位(例如有效闲置存储单元标示栏位a~有效闲置存储单元标示栏位d)。FIG. 1 is a schematic diagram of the corresponding relationship between bits in a memory buffer and bits in a register buffer according to an embodiment of the invention. As shown in FIG. 1, a memory buffer (such as a static random access memory buffer 100; labeled "SRAM buffer" in FIG. 1 for brevity) may be used to store a bit table 101, wherein the bit table 101 can include 32 first bits (which correspond to 32 basic storage units respectively), and each first bit in the 32 first bits can be used to indicate whether a corresponding basic storage unit is a Idle basic storage unit, for example, when a basic storage unit in 32 basic storage units is an idle basic storage unit, then a first bit corresponding to the basic storage unit is a first logic value (such as 1 ); and when a basic storage unit among the 32 basic storage units is not an idle basic storage unit, then a first bit corresponding to the basic storage unit is a second logic value (for example, 0). In addition, in order to save the time of reading the memory buffer and to find out the free basic storage unit more quickly, the bit table can be divided into a plurality of effective free storage unit identification fields (field) in units of bits For example, the MxN (for example MxN=32) first bits in the bit table 101 can be divided into N (for example N=4) effective idle storage units of M (for example M=8) bits A unit identification field (for example, an effective idle storage unit identification field a to an effective idle storage unit identification field d).

暂存器缓冲器110可用以存储4个第二位元(例如第二位元e~第二位元h,其分别对应至位元表101中的有效闲置存储单元标示栏位a~有效闲置存储单元标示栏位d),其中4个第二位元中的每一个第二位元可用以指示一相对应的有效闲置存储单元标示栏位中是否包含具有第一逻辑值(例如1)的至少一个第一位元(亦即指示相对应的有效闲置存储单元标示栏位中的8个第一位元所对应的8个基本存储单元中是否包含至少一个闲置基本存储单元)。当4个有效闲置存储单元标示栏位中的一有效闲置存储单元标示栏位包含具有第一逻辑值(例如1)的至少一个第一位元时,则该有效闲置存储单元标示栏位所对应的第二位元是第一逻辑值(例如1);以及当4个有效闲置存储单元标示栏位中的一有效闲置存储单元标示栏位所包含的所有第一位元均具有第二逻辑值(例如0)时(亦即该有效闲置存储单元标示栏位中的8个第一位元所对应的8个基本存储单元中没有闲置基本存储单元),则该有效闲置存储单元标示栏位所对应的第二位元是第二逻辑值(例如0)。举例来说,由于位元表101中的有效闲置存储单元标示栏位a包含有4个具有第一逻辑值(例如1)的第一位元,因此有效闲置存储单元标示栏位a所对应的第二位元e是第一逻辑值(例如1)。又例如,由于位元表101中的有效闲置存储单元标示栏位c所包含的所有第一位元均具有第二逻辑值(例如0),因此有效闲置存储单元标示栏位c所对应的第二位元g是第二逻辑值(例如0)。The register buffer 110 can be used to store 4 second bits (for example, the second bit e ~ the second bit h, which respectively correspond to the effective idle storage unit flag field a ~ effectively idle in the bit table 101 Storage unit identification field d), wherein each of the 4 second bits can be used to indicate whether a corresponding valid idle storage unit identification field contains a first logic value (for example, 1) At least one first bit (that is, indicating whether at least one idle basic storage unit is included in the 8 basic storage units corresponding to the 8 first bits in the corresponding effective idle storage unit identification field). When an effective idle storage unit identification field in the four effective idle storage unit identification fields includes at least one first bit with a first logical value (such as 1), then the corresponding effective idle storage unit identification field The second bit of is the first logical value (for example, 1); and when all the first bits contained in one of the four valid free memory unit flag fields have the second logical value (such as 0) (that is, there is no idle basic storage unit in the 8 basic storage units corresponding to the 8 first bits in the effective idle storage unit indication field), then the effective idle storage unit indication field The corresponding second bit is a second logical value (eg, 0). For example, since the valid free storage unit flag field a in the bit table 101 includes 4 first bits with a first logical value (for example, 1), the valid free memory unit flag field a corresponds to The second bit e is a first logical value (eg, 1). For another example, since all the first bits contained in the effective free storage unit flag field c in the bit table 101 have the second logic value (for example, 0), the first bit corresponding to the effective spare memory unit flag field c The bit g is a second logic value (eg, 0).

图2为依据本发明一实施例的基本存储单元管理电路20的示意图。如图2所示,基本存储单元管理电路20可包含有一存储器缓冲器(例如静态随机存取存储器缓冲器200;为简洁起见,在图2中标记为“SRAM缓冲器”)、暂存器缓冲器210、闲置基本存储单元控制器220、接收电路230以及传输电路240,其中静态随机存取存储器缓冲器200以及暂存器缓冲器210可分别由图1所示的静态随机存取存储器缓冲器100以及暂存器缓冲器110来实现。静态随机存取存储器缓冲器200可用以存储一位元表201,本实施例中,位元表201可包含有32个第一位元(其分别对应至32个基本存储单元),以及位元表201中的32个第一位元可以8个位元为单位来划分为4个有效闲置存储单元标示栏位(例如有效闲置存储单元标示栏位a~有效闲置存储单元标示栏位d),然而,此仅作为范例说明,而非本发明的限制条件,实作上,位元表201的大小以及有效闲置存储单元标示栏位划分可根据需求来调整。暂存器缓冲器210可用以存储4个第二位元(例如第二位元e~第二位元h,其分别对应至位元表201中的有效闲置存储单元标示栏位a~有效闲置存储单元标示栏位d),然而,此仅作为范例说明,而非本发明的限制条件,实作上,暂存器缓冲器210所存储的第二位元的个数会取决于位元表201的有效闲置存储单元标示栏位个数。为简洁起见,于本实施例中针对静态随机存取存储器缓冲器200以及暂存器缓冲器210的类似内容在此不重复赘述。FIG. 2 is a schematic diagram of a basic storage unit management circuit 20 according to an embodiment of the invention. As shown in FIG. 2, the basic storage unit management circuit 20 may include a memory buffer (such as a static random access memory buffer 200; for brevity, labeled as "SRAM buffer" in FIG. 2), a register buffer device 210, an idle basic storage unit controller 220, a receiving circuit 230, and a transmitting circuit 240, wherein the SRAM buffer 200 and the temporary register buffer 210 can be respectively composed of the SRAM buffer shown in FIG. 1 100 and scratchpad buffer 110 to achieve. The SRAM buffer 200 can be used to store a bit table 201. In this embodiment, the bit table 201 can include 32 first bits (which respectively correspond to 32 basic storage units), and bit The 32 first bits in table 201 can be divided into 4 effective idle storage unit identification fields (such as effective idle storage unit identification field a ~ effective idle storage unit identification field d) in units of 8 bits, However, this is only an example rather than a limitation of the present invention. In practice, the size of the bit table 201 and the field division of the effective free storage unit flag can be adjusted according to requirements. The temporary register buffer 210 can be used to store 4 second bits (for example, the second bit e ~ the second bit h, which respectively correspond to the effective idle storage unit flag field a ~ effectively idle in the bit table 201 storage unit designation field d), however, this is only used as an example, rather than a limitation of the present invention, in practice, the number of second bits stored in the register buffer 210 will depend on the bit table 201 is the number of effective free storage unit indication fields. For the sake of brevity, the similar content of the SRAM buffer 200 and the register buffer 210 in this embodiment will not be repeated here.

闲置基本存储单元控制器220可耦接于静态随机存取存储器缓冲器200、接收电路230以及传输电路240,并且可用以管理静态随机存取存储器缓冲器200所存储的位元表201,以及依据位元表201来处理对应接收电路230所接收或传输电路240所传输的至少一封包的至少一基本存储单元,其中当位元表201的32个第一位元所对应的32个基本存储单元中的一基本存储单元是闲置基本存储单元时,闲置基本存储单元控制器220可将该基本存储单元所对应的第一位元设为第一逻辑值(例如1);以及当位元表201的32个第一位元所对应的32个基本存储单元中的一基本存储单元不是闲置基本存储单元时,闲置基本存储单元控制器220可将该基本存储单元所对应的第一位元设为第二逻辑值(例如0)。此外,闲置基本存储单元控制器220另可耦接于暂存器缓冲器210,其中当位元表201的4个有效闲置存储单元标示栏位中的一有效闲置存储单元标示栏位包含具有第一逻辑值(例如1)的至少一个第一位元时,闲置基本存储单元控制器220可将该有效闲置存储单元标示栏位所对应的第二位元设为第一逻辑值(例如1);以及当位元表201的4个有效闲置存储单元标示栏位中的一有效闲置存储单元标示栏位所包含的所有第一位元均具有第二逻辑值(例如0)时,闲置基本存储单元控制器220可将该有效闲置存储单元标示栏位所对应的第二位元设为第二逻辑值(例如0)。The idle basic storage unit controller 220 can be coupled to the SRAM buffer 200, the receiving circuit 230 and the transmitting circuit 240, and can be used to manage the bit table 201 stored in the SRAM buffer 200, and according to The bit table 201 is used to process at least one basic storage unit corresponding to at least one packet received by the receiving circuit 230 or transmitted by the transmission circuit 240, wherein the 32 basic storage units corresponding to the 32 first bits of the bit table 201 When a basic storage unit in is an idle basic storage unit, the idle basic storage unit controller 220 can set the first bit corresponding to the basic storage unit as a first logic value (such as 1); and when the bit table 201 When a basic storage unit among the 32 basic storage units corresponding to the 32 first bits is not an idle basic storage unit, the idle basic storage unit controller 220 can set the corresponding first bit of the basic storage unit to Second logical value (eg 0). In addition, the free basic storage unit controller 220 can also be coupled to the register buffer 210, wherein when one of the four valid free storage unit identification fields of the bit table 201 includes the When there is at least one first bit of a logical value (such as 1), the idle basic storage unit controller 220 can set the second bit corresponding to the effectively idle storage unit flag field to the first logical value (such as 1). ; and when all the first bits included in one of the 4 valid idle storage unit identification fields of the bit table 201 have a second logical value (such as 0), the basic storage is idle The cell controller 220 may set the second bit corresponding to the valid free storage cell flag field to a second logical value (eg, 0).

当接收电路230接收到一接收封包时,闲置基本存储单元控制器220可通过静态随机存取存储器缓冲器200以及暂存器缓冲器210来取得至少一个闲置基本存储单元以供暂存该接收封包,举例来说,闲置基本存储单元控制器220会先自暂存器缓冲器210的4个第二位元(例如第二位元e~第二位元h)中找出具有第一逻辑值(例如1)的一目标第二位元(例如第二位元e、第二位元f或第二位元h)来取得一读取位址,并且根据该读取位址来读取静态随机存取存储器缓冲器200的位元表201中的一目标有效闲置存储单元标示栏位(例如对应于第二位元e的有效闲置存储单元标示栏位a、对应于第二位元f的有效闲置存储单元标示栏位b或对应于第二位元h的有效闲置存储单元标示栏位d),最后再自该目标有效闲置存储单元标示栏位中找出具有第一逻辑值(例如1)的至少一个目标第一位元来取得至少一个闲置基本存储单元。When the receiving circuit 230 receives a received packet, the idle basic storage unit controller 220 can obtain at least one idle basic storage unit for temporarily storing the received packet through the SRAM buffer 200 and the register buffer 210 , for example, the idle basic storage unit controller 220 will first find out the 4 second bits (such as the second bit e to the second bit h) of the register buffer 210 that have the first logic value (eg 1) of a target second bit (eg second bit e, second bit f or second bit h) to obtain a read address, and read static A target effective free storage unit flag field in the bit table 201 of the random access memory buffer 200 (for example, an effective free memory unit flag field a corresponding to the second bit e, a field corresponding to the second bit f The valid free storage unit flag field b or the valid spare memory unit flag field d) corresponding to the second bit h, and finally find the first logic value (such as 1) from the target valid free memory unit flag field ) to obtain at least one free basic storage unit.

应注意的是,在该至少一个闲置基本存储单元被用来暂存该接收封包之后,闲置基本存储单元控制器220还可用以将对应于该至少一个闲置基本存储单元的该至少一个目标第一位元从第一逻辑值(例如1)更新为第二逻辑值(例如0),此外,当闲置基本存储单元控制器220更新完对应于该至少一个闲置基本存储单元的该至少一个目标第一位元之后,包含有该至少一个目标第一位元的该目标有效闲置存储单元标示栏位内所有的第一位元均具有第二逻辑值(例如0)时,闲置基本存储单元控制器220还可用以将暂存器缓冲器210中对应于该目标有效闲置存储单元标示栏位的第二位元从第一逻辑值(例如1)更新为第二逻辑值(例如0),另一方面,当闲置基本存储单元控制器220更新完对应于该至少一个闲置基本存储单元的该至少一个目标第一位元之后,包含有该至少一个目标第一位元的该目标有效闲置存储单元标示栏位内仍包含具有第一逻辑值(例如1)的至少一个第一位元时,闲置基本存储单元控制器220可另用以将暂存器缓冲器210中对应于该目标有效闲置存储单元标示栏位的第二位元维持为第一逻辑值(例如1)。闲置基本存储单元控制器220可通过管线(pipeline)的方式来实现对于静态随机存取存储器缓冲器200的位元表中的32个第一位元以及暂存器缓冲器210的4个第二位元的更新,但是本发明不限于此。It should be noted that, after the at least one idle basic storage unit is used to temporarily store the received packet, the idle basic storage unit controller 220 can also be used to set the at least one target corresponding to the at least one idle basic storage unit first The bit is updated from a first logic value (such as 1) to a second logic value (such as 0). In addition, when the idle basic storage unit controller 220 updates the at least one target first corresponding to the at least one idle basic storage unit After the bit, when all the first bits in the target valid idle cell flag field including the at least one target first bit have a second logic value (for example, 0), the basic cell controller 220 is idle It can also be used to update the second bit of the register buffer 210 corresponding to the target effective free storage unit flag field from a first logic value (such as 1) to a second logic value (such as 0), on the other hand After the idle basic storage unit controller 220 has updated the at least one target first bit corresponding to the at least one idle basic storage unit, the target valid idle storage unit flag column containing the at least one target first bit When the bit still contains at least one first bit with a first logic value (for example, 1), the idle basic storage unit controller 220 can additionally be used to mark the effective idle storage unit corresponding to the target in the register buffer 210 The second bit of the field remains at the first logical value (eg, 1). The idle basic storage unit controller 220 can implement the 32 first bits in the bit table of the SRAM buffer 200 and the 4 second bits of the register buffer 210 through a pipeline (pipeline) mode. bit update, but the present invention is not limited thereto.

当传输电路240传输一传输封包完毕时,传输电路240释放(release)对应于该传输封包的至少一个基本存储单元至闲置基本存储单元控制器220,闲置基本存储单元控制器220可用以根据该传输封包的该至少一个基本存储单元来将静态随机存取存储器缓冲器200的位元表201中的至少一个目标有效闲置存储单元标示栏位中的至少一个目标第一位元由第二逻辑值(例如0)更新为第一逻辑值(例如1),也就是说,对应于该至少一个目标第一位元的至少一个基本存储单元是至少一个闲置基本存储单元。此外,在原本的至少一个目标有效闲置存储单元标示栏位中的至少一个目标第一位元均具有第二逻辑值(例如0)的情况下(亦即原本的至少一个目标有效闲置存储单元标示栏位中不具有闲置基本存储单元),当闲置基本存储单元控制器220更新完该至少一个目标第一位元之后,包含有该至少一个目标第一位元的该至少一个目标有效闲置存储单元标示栏位内包含具有第一逻辑值(例如1)的至少一个第一位元时,闲置基本存储单元控制器220还可用以将暂存器缓冲器210中对应于该至少一个目标有效闲置存储单元标示栏位的至少一个第二位元从第二逻辑值(例如0)更新为第一逻辑值(例如1),另一方面,在原本的至少一个目标有效闲置存储单元标示栏位中已经包含具有第一逻辑值(例如1)的至少一个第一位元的情况下(亦即原本的至少一个目标有效闲置存储单元标示栏位中已经具有闲置基本存储单元),闲置基本存储单元控制器220可还用以将暂存器缓冲器210中对应于该至少一个目标有效闲置存储单元标示栏位的至少一个第二位元维持为第一逻辑值(例如1)。When the transmission circuit 240 finishes transmitting a transmission packet, the transmission circuit 240 releases (releases) at least one basic storage unit corresponding to the transmission packet to the idle basic storage unit controller 220, and the idle basic storage unit controller 220 can be used to The at least one basic storage unit of the packet is used to change at least one target first bit in the at least one target effective idle storage unit flag field in the bit table 201 of the SRAM buffer 200 by a second logic value ( For example, 0) is updated to a first logic value (for example, 1), that is, at least one basic storage unit corresponding to the at least one target first bit is at least one idle basic storage unit. In addition, in the case that at least one target first bit in the originally at least one target valid free storage unit flag field has a second logical value (for example, 0) (that is, the original at least one target valid free storage unit flag There is no idle basic storage unit in the field), after the idle basic storage unit controller 220 has updated the at least one target first bit, the at least one target effective idle storage unit containing the at least one target first bit When the flag field contains at least one first bit with a first logical value (for example, 1), the idle basic storage unit controller 220 can also be used to effectively idle the memory corresponding to the at least one object in the register buffer 210 At least one second bit of the unit identification field is updated from a second logic value (such as 0) to a first logic value (such as 1). In the case of including at least one first bit with a first logic value (for example, 1) (that is, the original at least one target effective free storage unit flag field already has a free basic storage unit), the idle basic storage unit controller 220 may also be used to maintain at least one second bit corresponding to the at least one target valid free storage unit flag field in the register buffer 210 as a first logical value (eg, 1).

此外,为了减少存储器缓冲器的功率消耗以及节省存储器缓冲器的频宽,可利用一释放基本存储单元缓冲器来减少存储器缓冲器的存取次数,图3为依据本发明另一实施例的基本存储单元管理电路30的示意图。如图3所示,基本存储单元管理电路30可包含有一存储器缓冲器(例如静态随机存取存储器缓冲器300;为简洁起见,在图3中标记为“SRAM缓冲器”)、暂存器缓冲器310、闲置基本存储单元控制器320、接收电路330、传输电路340以及释放基本存储单元缓冲器350,其中图3所示的基本存储单元管理电路30与图2所示的基本存储单元管理电路20的不同之处在于基本存储单元管理电路30可还包含有释放基本存储单元缓冲器350。释放基本存储单元缓冲器350可耦接于闲置基本存储单元控制器320以及传输电路340,并且可用以暂存传输电路340传输一传输封包完毕时所释放的对应于传输封包的至少一个基本存储单元,其中闲置基本存储单元控制器320可自释放基本存储单元缓冲器350取得对应于传输封包的至少一个基本存储单元来作为闲置基本存储单元。如此一来,当接收电路330接收一接收封包时,闲置基本存储单元控制器320可预先读取释放基本存储单元缓冲器350中所暂存的对应于传输封包的至少一个基本存储单元,以供接收封包使用,而无需通过静态随机存取存储器缓冲器300以及暂存器缓冲器310来取得闲置基本存储单元(其减少了静态随机存取存储器缓冲器300的存取次数)。In addition, in order to reduce the power consumption of the memory buffer and save the bandwidth of the memory buffer, a free basic storage unit buffer can be used to reduce the number of access times of the memory buffer. FIG. 3 is a basic memory buffer according to another embodiment of the present invention. A schematic diagram of the memory cell management circuit 30 . As shown in FIG. 3, the basic storage unit management circuit 30 may include a memory buffer (such as a static random access memory buffer 300; for brevity, labeled as "SRAM buffer" in FIG. 3), a register buffer controller 310, idle basic storage unit controller 320, receiving circuit 330, transmission circuit 340, and release basic storage unit buffer 350, wherein the basic storage unit management circuit 30 shown in FIG. 3 is the same as the basic storage unit management circuit shown in FIG. 2 20 is that the basic storage unit management circuit 30 may further include a release basic storage unit buffer 350 . The release basic storage unit buffer 350 can be coupled to the idle basic storage unit controller 320 and the transmission circuit 340, and can be used to temporarily store at least one basic storage unit corresponding to the transmission packet released when the transmission circuit 340 finishes transmitting a transmission packet , wherein the free basic storage unit controller 320 can acquire at least one basic storage unit corresponding to the transmission packet from the released basic storage unit buffer 350 as the free basic storage unit. In this way, when the receiving circuit 330 receives a received packet, the idle basic storage unit controller 320 can pre-read at least one basic storage unit corresponding to the transmission packet temporarily stored in the released basic storage unit buffer 350 for use The received packet is used without going through the SRAM buffer 300 and the register buffer 310 to obtain idle basic storage units (which reduces the access times of the SRAM buffer 300 ).

在本实施例中,释放基本存储单元缓冲器350中暂存了静态随机存取存储器缓冲器300中对应于第一位元B10的闲置基本存储单元(其以十进制值为10的5位元来暂存至释放基本存储单元缓冲器350中,并且在图3中标记为“5’d10”)、对应于第一位元B21的闲置基本存储单元(其以十进制值为21的5位元来暂存至释放基本存储单元缓冲器350中,并且在图3中标记为“5’d21”)、对应于第一位元B22的闲置基本存储单元(其以十进制值为22的5位元来暂存至释放基本存储单元缓冲器350中,并且在图3中标记为“5’d22”)以及对应于第一位元B27的闲置基本存储单元(其以十进制值为27的5位元来暂存至释放基本存储单元缓冲器350中,并且在图3中标记为“5’d27”)。应注意的是,当释放基本存储单元缓冲器350中所暂存的对应于传输封包的至少一个基本存储单元皆被占用(亦即释放基本存储单元缓冲器350中没有闲置基本存储单元)时,闲置基本存储单元控制器320可自暂存器缓冲器310的4个第二位元中找出具有第一逻辑值(例如1)的一目标第二位元来取得一读取位址,且根据读取位址来读取静态随机存取存储器缓冲器300的位元表301中的一目标有效闲置存储单元标示栏位,并自目标有效闲置存储单元标示栏位中找出具有第一逻辑值(例如1)的至少一个目标第一位元来取得至少一个闲置基本存储单元,以供接收封包使用。换言之,若释放基本存储单元缓冲器350具有闲置基本存储单元可供使用,则闲置基本存储单元控制器320会优先读取释放基本存储单元缓冲器350,若无法自释放基本存储单元缓冲器350取得所要的闲置基本存储单元,闲置基本存储单元控制器320再通过暂存器缓冲器310以及静态随机存取存储器缓冲器300来取得闲置基本存储单元。In this embodiment, the idle basic storage unit corresponding to the first bit B10 in the SRAM buffer 300 (which is represented by 5 bits whose decimal value is 10) is temporarily stored in the basic storage unit buffer 350 for release. into free basic storage unit buffer 350, and labeled "5'd10" in FIG. into free basic storage unit buffer 350, and labeled "5'd21" in FIG. into the free basic storage unit buffer 350, and is labeled "5'd22" in FIG. into the freed basic cell buffer 350, and is labeled "5'd27" in FIG. 3). It should be noted that when at least one basic storage unit corresponding to the transmission packet temporarily stored in the released basic storage unit buffer 350 is occupied (that is, there is no idle basic storage unit in the released basic storage unit buffer 350), The idle basic storage unit controller 320 can find out a target second bit with a first logic value (for example, 1) from the 4 second bits of the register buffer 310 to obtain a read address, and According to the read address, read a target effective free storage unit flag field in the bit table 301 of the SRAM buffer 300, and find out the first logic from the target effective free memory unit flag field At least one target first bit of a value (eg, 1) is used to obtain at least one free basic storage unit for receiving packets. In other words, if the free basic storage unit buffer 350 has an idle basic storage unit available for use, the idle basic storage unit controller 320 will preferentially read the released basic storage unit buffer 350, if it cannot be obtained from the released basic storage unit buffer 350 For the desired free basic storage unit, the free basic storage unit controller 320 obtains the free basic storage unit through the register buffer 310 and the SRAM buffer 300 .

于上述实施例中,闲置基本存储单元控制器220(或闲置基本存储单元控制器320)可通过暂存器缓冲器210(或暂存器缓冲器310)所存储的第二位元来快速地自静态随机存取存储器缓冲器200(或静态随机存取存储器缓冲器300)的位元表中找到标示闲置基本存储单元的第一位元,然而,暂存器缓冲器可以是选择性(optional)元件,举例来说,于本发明的一些实施例中,数据管理电路20(或数据管理电路30)可省略暂存器缓冲器210(或暂存器缓冲器310),而直接于静态随机存取存储器缓冲器200(或静态随机存取存储器缓冲器300)的位元表中进行搜索来找到标示闲置基本存储单元的第一位元。综上所述,任何采用位元表所记录的位元来标示相对应基本存储单元是否为闲置基本存储单元的数据管理电路均落入本发明的范围。In the above-mentioned embodiment, the idle basic storage unit controller 220 (or the idle basic storage unit controller 320) can quickly use the second bit stored in the register buffer 210 (or the register buffer 310) From the bit table of the SRAM buffer 200 (or the SRAM buffer 300), find the first bit indicating a free basic storage unit, however, the scratchpad buffer may be optional ) components, for example, in some embodiments of the present invention, the data management circuit 20 (or the data management circuit 30) can omit the register buffer 210 (or the register buffer 310), and directly A search is performed in the bit table of the RAM buffer 200 (or the SRAM buffer 300 ) to find the first bit indicating a free basic memory unit. To sum up, any data management circuit that uses the bits recorded in the bit table to indicate whether the corresponding basic storage unit is an idle basic storage unit falls within the scope of the present invention.

图4为依据本发明一实施例的基本存储单元管理方法的流程图。假若可以得到相同的结果,则步骤不一定要完全遵照图4所示的流程来按序执行,举例来说,于图4所示的基本存储单元管理方法可由图2所示的数据管理电路20或图3所示的数据管理电路30来加以实现。FIG. 4 is a flow chart of a basic storage unit management method according to an embodiment of the invention. If the same result can be obtained, the steps do not have to be executed sequentially according to the flow shown in FIG. 4. For example, the basic storage unit management method shown in FIG. Or the data management circuit 30 shown in FIG. 3 is implemented.

在步骤S400中,静态随机存取存储器缓冲器可存储一位元表,其中位元表可包含有多个第一位元,其分别对应于多个基本存储单元,以及多个第一位元中的每一个第一位元可用以标示相对应的基本存储单元是否为一闲置基本存储单元。In step S400, the static random access memory buffer can store a bit table, wherein the bit table can include a plurality of first bits, which respectively correspond to a plurality of basic storage units, and a plurality of first bits Each first bit in can be used to indicate whether the corresponding basic storage unit is an idle basic storage unit.

在步骤S402中,可使用一闲置基本存储单元控制器来管理位元表,并且依据位元表处理对应一接收电路所接收或一传输电路所传输的至少一封包的至少一基本存储单元,其中当多个基本存储单元的一基本存储单元是一闲置基本存储单元时,闲置基本存储单元控制器可将该基本存储单元所对应的一第一位元设为一第一逻辑值,以及当多个基本存储单元的该基本存储单元不是闲置基本存储单元时,闲置基本存储单元控制器可将该基本存储单元所对应的第一位元设为一第二逻辑值。In step S402, an idle basic storage unit controller may be used to manage the bit table, and at least one basic storage unit corresponding to at least one packet received by a receiving circuit or transmitted by a transmitting circuit is processed according to the bit table, wherein When a basic storage unit of the plurality of basic storage units is an idle basic storage unit, the idle basic storage unit controller may set a first bit corresponding to the basic storage unit to a first logic value, and when the plurality of basic storage units When the basic storage unit of the basic storage units is not an idle basic storage unit, the idle basic storage unit controller can set the first bit corresponding to the basic storage unit to a second logical value.

由于技术人员可通过上述说明书内容而轻易了解图4所示各步骤的操作,为了简洁起见,于本实施例中类似的内容在此不重复赘述。Since a skilled person can easily understand the operation of each step shown in FIG. 4 through the content of the above description, for the sake of brevity, the similar content in this embodiment will not be repeated here.

以上所述仅为本发明的优选实施例,凡依本发明权利要求所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.

Claims (10)

1.一种基本存储单元管理电路,包含有:1. A basic storage unit management circuit, comprising: 一接收电路;a receiving circuit; 一传输电路;a transmission circuit; 一第一缓冲器,用以存储一位元表,其中该位元表包含有多个第一位元,其分别对应多个基本存储单元,以及该多个第一位元中的每一第一位元用以标示一相对应的基本存储单元是否为一闲置基本存储单元;A first buffer for storing a bit table, wherein the bit table includes a plurality of first bits, which respectively correspond to a plurality of basic storage units, and each of the plurality of first bits One bit is used to indicate whether a corresponding basic storage unit is an idle basic storage unit; 一闲置基本存储单元控制器,耦接于该接收电路、该传输电路以及该第一缓冲器,并且用以管理该第一缓冲器所存储的该位元表,以及依据该位元表来处理对应该接收电路所接收或该传输电路所传输的至少一封包的至少一基本存储单元,其中当该多个基本存储单元的一基本存储单元是一闲置基本存储单元时,该闲置基本存储单元控制器将该基本存储单元所对应的一第一位元设为一第一逻辑值;以及当该多个基本存储单元的该基本存储单元不是该闲置基本存储单元时,该闲置基本存储单元控制器将该基本存储单元所对应的该第一位元设为一第二逻辑值。an idle basic storage unit controller, coupled to the receiving circuit, the transmitting circuit and the first buffer, and used for managing the bit table stored in the first buffer, and processing according to the bit table At least one basic storage unit corresponding to at least one packet received by the receiving circuit or transmitted by the transmitting circuit, wherein when a basic storage unit of the plurality of basic storage units is an idle basic storage unit, the idle basic storage unit controls The controller sets a first bit corresponding to the basic storage unit to a first logical value; and when the basic storage unit of the plurality of basic storage units is not the idle basic storage unit, the idle basic storage unit controller The first bit corresponding to the basic storage unit is set as a second logic value. 2.如权利要求1所述的基本存储单元管理电路,其中该位元表中的该多个第一位元被划分为多个有效闲置存储单元标示栏位,以及该基本存储单元管理电路还包含:2. The basic storage unit management circuit as claimed in claim 1, wherein the plurality of first bits in the bit table are divided into a plurality of valid idle storage unit flag fields, and the basic storage unit management circuit further Include: 一第二缓冲器,耦接于该闲置基本存储单元控制器,并且用以存储多个第二位元,其分别对应该多个有效闲置存储单元标示栏位,其中该多个第二位元中的每一第二位元用以指示一相对应的有效闲置存储单元标示栏位中是否包含具有该第一逻辑值的至少一第一位元;A second buffer, coupled to the idle basic storage unit controller, and used to store a plurality of second bits, which respectively correspond to the plurality of effective idle storage unit flag fields, wherein the plurality of second bits Each second bit in is used to indicate whether at least one first bit with the first logical value is contained in a corresponding valid free storage unit flag field; 其中当该多个有效闲置存储单元标示栏位的一有效闲置存储单元标示栏位包含具有该第一逻辑值的该至少一第一位元时,该闲置基本存储单元控制器将该有效闲置存储单元标示栏位所对应的一第二位元设为该第一逻辑值与该第二逻辑值的其中的一逻辑值;以及当该多个有效闲置存储单元标示栏位的该有效闲置存储单元标示栏位所包含的所有第一位元均具有该第二逻辑值时,该闲置基本存储单元控制器将该有效闲置存储单元标示栏位所对应的该第二位元设为该第一逻辑值与该第二逻辑值的其中的另一逻辑值。Wherein when a valid idle storage unit identification field of the plurality of valid idle storage unit identification fields includes the at least one first bit with the first logic value, the idle basic storage unit controller stores the effective idle storage unit A second bit corresponding to the unit flag field is set as a logic value among the first logic value and the second logic value; When all the first bits included in the flag field have the second logic value, the idle basic storage unit controller sets the second bit corresponding to the effective idle memory unit flag field to the first logic value value and the other logical value of the second logical value. 3.如权利要求2所述的基本存储单元管理电路,其中当该接收电路接收一接收封包时,该闲置基本存储单元控制器先自该第二缓冲器的该多个第二位元中找出具有该逻辑值的一目标第二位元来取得一读取位址,且根据该读取位址来读取该第一缓冲器的该位元表中的一目标有效闲置存储单元标示栏位,并自该目标有效闲置存储单元标示栏位中找出具有该第一逻辑值的至少一目标第一位元来取得至少一闲置基本存储单元。3. The basic storage unit management circuit as claimed in claim 2, wherein when the receiving circuit receives a received packet, the idle basic storage unit controller first finds out from the plurality of second bits of the second buffer A target second bit with the logical value is obtained to obtain a read address, and a target valid free storage unit flag column in the bit table of the first buffer is read according to the read address bits, and find out at least one target first bit with the first logic value from the target effective free storage unit flag field to obtain at least one free basic storage unit. 4.如权利要求3所述的基本存储单元管理电路,其中该闲置基本存储单元控制器还用以将该至少一目标第一位元从该第一逻辑值更新为该第二逻辑值。4. The basic storage unit management circuit as claimed in claim 3, wherein the idle basic storage unit controller is further configured to update the at least one target first bit from the first logic value to the second logic value. 5.如权利要求2所述的基本存储单元管理电路,其中当该传输电路传输一传输封包完毕时,该传输电路释放对应于该传输封包的至少一基本存储单元至该闲置基本存储单元控制器。5. The basic storage unit management circuit as claimed in claim 2, wherein when the transmission circuit finishes transmitting a transmission packet, the transmission circuit releases at least one basic storage unit corresponding to the transmission packet to the idle basic storage unit controller . 6.如权利要求5所述的基本存储单元管理电路,其中该闲置基本存储单元控制器还用以根据该传输封包的该至少一基本存储单元来将该第一缓冲器的该位元表中的至少一目标有效闲置存储单元标示栏位中的至少一目标第一位元由该第二逻辑值更新为该第一逻辑值。6. The basic storage unit management circuit as claimed in claim 5, wherein the idle basic storage unit controller is further configured to list the bits in the first buffer according to the at least one basic storage unit of the transport packet At least one target first bit in the at least one target valid free storage unit flag field is updated from the second logic value to the first logic value. 7.如权利要求2所述的基本存储单元管理电路,还包含有:7. The basic storage unit management circuit as claimed in claim 2, further comprising: 一释放基本存储单元缓冲器,耦接于该传输电路以及该闲置基本存储单元控制器,并且用以暂存该传输电路传输一传输封包完毕时所释放的对应于该传输封包的至少一基本存储单元,其中该闲置基本存储单元控制器自该释放基本存储单元缓冲器取得对应于该传输封包的该至少一基本存储单元来作为闲置基本存储单元。a release basic storage unit buffer, coupled to the transmission circuit and the idle basic storage unit controller, and used to temporarily store at least one basic storage corresponding to the transmission packet released when the transmission circuit finishes transmitting a transmission packet unit, wherein the free basic storage unit controller acquires the at least one basic storage unit corresponding to the transport packet from the released basic storage unit buffer as a free basic storage unit. 8.如权利要求7所述的基本存储单元管理电路,其中当该接收电路接收一接收封包时,该闲置基本存储单元控制器读取该释放基本存储单元缓冲器中所暂存的对应于该传输封包的该至少一基本存储单元,以供该接收封包使用。8. The basic storage unit management circuit as claimed in claim 7, wherein when the receiving circuit receives a received packet, the idle basic storage unit controller reads the buffer corresponding to the free basic storage unit The at least one basic storage unit of the transmitted packet is used by the received packet. 9.如权利要求8所述的基本存储单元管理电路,其中当该释放基本存储单元缓冲器中所暂存的对应于该传输封包的该至少一基本存储单元皆被占用时,该闲置基本存储单元控制器自该第二缓冲器的该多个第二位元中找出具有该逻辑值的一目标第二位元来取得一读取位址,且根据该读取位址来读取该第一缓冲器的该位元表中的一目标有效闲置存储单元标示栏位,并自该目标有效闲置存储单元标示栏位中找出具有该第一逻辑值的至少一目标第一位元来取得至少一闲置基本存储单元,以供该接收封包使用。9. The basic storage unit management circuit as claimed in claim 8, wherein when the at least one basic storage unit corresponding to the transmission packet temporarily stored in the released basic storage unit buffer is occupied, the idle basic storage unit The unit controller finds a target second bit with the logic value from the plurality of second bits of the second buffer to obtain a read address, and reads the read address according to the read address. a target valid free storage unit flag field in the bit table of the first buffer, and at least one target first bit with the first logical value is found from the target valid free memory unit flag field to Obtain at least one free basic storage unit for use by the received packet. 10.一种基本存储单元管理方法,包含有:10. A basic storage unit management method, comprising: 存储一位元表,其中该位元表包含有多个第一位元,其分别对应多个基本存储单元,以及该多个第一位元中的每一第一位元用以指示一相对应基本存储单元是否为一闲置基本存储单元;以及storing a bit table, wherein the bit table includes a plurality of first bits corresponding to a plurality of basic storage units, and each first bit in the plurality of first bits is used to indicate a phase whether the corresponding basic storage unit is an idle basic storage unit; and 使用一闲置基本存储单元控制器来管理该位元表,并且依据该位元表处理对应一接收电路所接收或一传输电路所传输的至少一封包的至少一基本存储单元,其中当该多个基本存储单元的一基本存储单元是一闲置基本存储单元时,该闲置基本存储单元控制器将该基本存储单元所对应的一第一位元设为一第一逻辑值,以及当该多个基本存储单元的该基本存储单元不是该闲置基本存储单元时,该闲置基本存储单元控制器将该基本存储单元所对应的该第一位元设为一第二逻辑值。Use an idle basic storage unit controller to manage the bit table, and process at least one basic storage unit corresponding to at least one packet received by a receiving circuit or transmitted by a transmitting circuit according to the bit table, wherein when the plurality of When a basic storage unit of the basic storage unit is an idle basic storage unit, the idle basic storage unit controller sets a first bit corresponding to the basic storage unit to a first logic value, and when the plurality of basic storage units When the basic storage unit of the storage unit is not the idle basic storage unit, the idle basic storage unit controller sets the first bit corresponding to the basic storage unit to a second logic value.
CN202111412802.XA 2021-11-25 2021-11-25 Basic storage unit management circuit and basic storage unit management method Pending CN116166178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111412802.XA CN116166178A (en) 2021-11-25 2021-11-25 Basic storage unit management circuit and basic storage unit management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111412802.XA CN116166178A (en) 2021-11-25 2021-11-25 Basic storage unit management circuit and basic storage unit management method

Publications (1)

Publication Number Publication Date
CN116166178A true CN116166178A (en) 2023-05-26

Family

ID=86411874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111412802.XA Pending CN116166178A (en) 2021-11-25 2021-11-25 Basic storage unit management circuit and basic storage unit management method

Country Status (1)

Country Link
CN (1) CN116166178A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100211755A1 (en) * 2009-02-13 2010-08-19 Huawei Technologies Co., Ltd. Method and apparatus for allocating storage addresses
US20120278530A1 (en) * 2011-04-28 2012-11-01 Seagate Technology Llc Enforcing system intentions during memory scheduling
CN112825063A (en) * 2019-11-20 2021-05-21 瑞昱半导体股份有限公司 Joint test work group transmission system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100211755A1 (en) * 2009-02-13 2010-08-19 Huawei Technologies Co., Ltd. Method and apparatus for allocating storage addresses
US20120278530A1 (en) * 2011-04-28 2012-11-01 Seagate Technology Llc Enforcing system intentions during memory scheduling
CN112825063A (en) * 2019-11-20 2021-05-21 瑞昱半导体股份有限公司 Joint test work group transmission system

Similar Documents

Publication Publication Date Title
TWI744457B (en) Method for accessing metadata in hybrid memory module and hybrid memory module
US6502163B1 (en) Method and apparatus for ordering entries in a ternary content addressable memory
US11563683B2 (en) SRv6 with micro segment identifiers
JP2013507022A (en) Method for processing data packets within a flow-aware network node
US7082499B2 (en) External memory control device regularly reading ahead data from external memory for storage in cache memory, and data driven type information processing apparatus including the same
JP2005198285A (en) Apparatus and method for using hashing to efficiently implement an IP lookup solution in hardware
US20070028033A1 (en) Method for identifying data characteristics for flash memory
JP2001216194A (en) Arithmetic processing unit
US7694068B1 (en) Re-entrant processing in a content addressable memory
US8694707B2 (en) Memory data transfer method and system
CN100487815C (en) Method and system for maximizing DRAM memory bandwidth
CN116166178A (en) Basic storage unit management circuit and basic storage unit management method
US8363653B2 (en) Packet forwarding method and device
US7154892B2 (en) Method and apparatus for managing LPM-based CAM look-up table, and recording medium therefor
US7555593B1 (en) Simultaneous multi-threading in a content addressable memory
TWI769111B (en) Basic storage unit management circuit and basic storage unit management method
CN104125169B (en) Chain table processing device, chain table processing method and related network switch
US20130235235A1 (en) Data transfer apparatus and data transfer method
CN101425962B (en) Packet forwarding method and apparatus
US20110179236A1 (en) Memory Block Reclaiming Judging Apparatus and Memory Block Managing System
US7818476B2 (en) Direct memory access controller with dynamic data transfer width adjustment, method thereof, and computer accessible storage media
JP2006246488A (en) Network router, address processing method, and computer program
US20190163640A1 (en) Bandwidth efficient techniques for enabling tagged memories
US7783796B2 (en) Method for releasing data of storage apparatus
US7167942B1 (en) Dynamic random access memory controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination