Semiconductor device

The semiconductor device optimizes data transfer in FIFO memory by managing read and write pointers to reduce bus occupancy and enhance efficiency in data handling.

JP2024145662AInactive Publication Date: 2024-10-15LAPIS TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023058112
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

FIFO memory devices with mismatched bit and bus widths cause increased bus occupancy due to repeated read access requests, leading to inefficient data transfer.

Method used

A semiconductor device with a buffer circuit, FIFO memory circuit, and pointer control circuit that manages read and write pointers to optimize data transfer, ensuring efficient bus usage by controlling read instructions based on pointer differences and storage conditions.

Benefits of technology

The solution reduces bus occupancy and enhances data transfer efficiency by minimizing unnecessary bus access and optimizing data handling in FIFO memory operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024145662000001_ABST
    Figure 2024145662000001_ABST
Patent Text Reader

Abstract

To provide a semiconductor device that can prevent a bus occupancy rate from becoming high when data is transferred from a FIFO memory circuit via a bus.SOLUTION: A semiconductor device 11 includes: a buffer circuit 13 having a number of first storage circuits 17 equal to a bus width Wb; an FIFO memory circuit 15 having a bit data width Wd; and a pointer control circuit 17 that controls a read pointer 23 and a write pointer 25 that respectively hold a read pointer value and a write pointer value of the FIFO memory circuit 15. The bus width Wb is n times (n is a natural number of 2 or more) the bit data width Wd. The pointer control circuit 17 responds to an access request to provide a read instruction signal SRD to the buffer circuit 13 when the write pointer value and the read pointer value are different from each other. The buffer circuit 13 stores, in response to receiving the read instruction signal SRD, the data in the FIFO memory circuit at an address of the read pointer value in the first storage circuit.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a semiconductor device. [Background technology]

[0002] Patent Document 1 discloses a FIFO memory device used for data transfer between data processing devices having different data bus widths. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2000-089932 A Summary of the Invention [Problem to be solved by the invention]

[0004] In a FIFO memory having a bit width (e.g., 8 bits) different from the bus width (e.g., 32 bits), the FIFO memory outputs 8-bit data of a FIFO memory circuit at an address indicated by a read pointer as 32-bit read data to the bus in response to a read access request from a central processing unit (CPU) coupled to the bus. This access is repeated until reading of the 8-bit data of the FIFO memory circuit is completed. This access increases the occupancy rate of the bus.

[0005] An object of the present invention is to provide a semiconductor device capable of preventing an increase in bus occupancy rate when data is transferred from a FIFO memory circuit via a bus. [Means for solving the problem]

[0006] A semiconductor device according to a first aspect of the present invention includes a buffer circuit connected to a bus having a bus width Wb to perform at least one of transmission and reception, and having a number of first storage circuits equal to or greater than the bus width Wb; a FIFO memory circuit connected to the buffer circuit, having a bit data width Wd and a number of stages Sf; and a pointer control circuit configured to hold a read pointer value and a write pointer value of the FIFO memory circuit in a read pointer and a write pointer, respectively, and to control the read pointer and the write pointer, wherein the bus width Wb is a value equal to or greater than n times (n is a natural number equal to or greater than 2) the bit data width Wd, and the pointer control circuit controls the read pointer and the write pointer in response to an access request. The buffer circuit is configured to provide a read instruction signal to the buffer circuit when the write pointer value and the read pointer value are different from each other, the read instruction signal including the read pointer value, the pointer control circuit updates the read pointer value after providing the read instruction signal, the buffer circuit stores data of the FIFO memory circuit at the address of the received read pointer value in the first storage circuit in response to receiving the read pointer value, and the pointer control circuit does not provide the read instruction signal to the buffer circuit when at least one of the following is satisfied: the updated read pointer value matches the write pointer value and the first storage circuit of the buffer circuit is full. Effect of the Invention

[0007] According to the above aspect, a semiconductor device is provided that can prevent the bus occupancy rate from becoming high when data is transferred from a FIFO memory circuit via a bus. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 is a diagram illustrating a schematic configuration of a semiconductor device according to the present embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example semiconductor device according to the present embodiment. [Diagram 3]FIG. 3 is a diagram illustrating an example semiconductor device according to the present embodiment. [Figure 4] FIG. 4 is a diagram illustrating an example of writing or reading data using an exemplary FIFO memory circuit. [Diagram 5] FIG. 5 is a diagram showing an example of writing or reading data using an exemplary FIFO memory circuit. [Figure 6] FIG. 6 is a diagram illustrating an example of writing or reading data using an exemplary FIFO memory circuit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, each embodiment of the present invention will be described with reference to the drawings. In the following description, the same or similar parts are designated by the same or similar reference numerals, and duplicated description will be omitted.

[0010] FIG. 1 is a diagram illustrating a schematic configuration of a semiconductor device according to the present embodiment.

[0011] The semiconductor device 11 includes a buffer circuit 13 , a FIFO memory circuit 15 (first-in first-out memory circuit), and a pointer control circuit 17 .

[0012] The buffer circuit 13 is connected to at least one of transmit and receive data on the bus 10 having a bus width Wb, and includes a first storage circuit 19. The first storage circuit 19 has a bit data width Wd that is equal to or greater than the bus width Wb.

[0013] The FIFO memory circuit 15 includes a plurality of memories 21, and is connected to the buffer circuit 13. Each of the memories 21 has a bit data width Wd, and the memories 21 have a plurality of stages Sf arranged to enable first-in, first-out operation.

[0014] The bus width Wb is equal to or greater than n times (n is a natural number equal to or greater than 2) the bit data width Wd.

[0015] The pointer control circuit 17 has a read pointer 23 and a write pointer 25 of the FIFO memory circuit 15 and is configured to control the read pointer 23 and the write pointer 25. The read pointer 23 and the write pointer 25 can store an address associated with the memory 21. The read pointer 23 and the write pointer 25 hold a read pointer value VRP and a write pointer value VWP, respectively. The read pointer value VRP is the address to be read next in the arrangement of the memory 21 of the FIFO memory circuit 15. Hence, the memory 21 pointed to by the read pointer value VRP is in use. The write pointer value VWP is the address to be written next in the arrangement of the memory 21 of the FIFO memory circuit 15. Thus, the memory 21 pointed to by the write pointer value VWP is available for use.

[0016] The pointer control circuit 17 is configured to transmit a read instruction signal SRD to the buffer circuit 13 in response to an access request SACS to the FIFO memory circuit 15 when the write pointer value VWP and the read pointer value VRP are different from each other (the difference between the write pointer value VWP and the read pointer value VRP is not zero). The read instruction signal SRD includes the read pointer value VRP. The difference between the write pointer value VWP and the read pointer value VRP can be identified as follows. Specifically, one of the write pointer value VWP and the read pointer value VRP is subtracted from the other. By calculating the logical sum of the bit values ​​of the obtained operation value, it is possible to identify whether the write pointer value VWP and the read pointer value VRP match / mismatch.

[0017] According to the semiconductor device 11, the pointer control circuit 17 may include a pointer management circuit 20. The pointer management circuit 20 is configured to perform calculations associated with the write pointer value VWP and the read pointer value VRP, and to determine whether the write pointer value VWP and the read pointer value VRP are different.

[0018] The buffer circuit 13 is configured to store, in response to receiving the read pointer value VRP, data in the FIFO memory circuit 15 at the address of the received read pointer value VRP in the first storage circuit 19. As a result, data in the memory 21 pointed to by the current read pointer value VRP is read by the buffer circuit 13 and stored in the first storage circuit 19. This series of processes is performed by providing a read instruction signal SRD to the buffer circuit 13.

[0019] After providing the read instruction signal SRD, the pointer control circuit 17 updates the read pointer value VRP. This update includes adding "1" to the read pointer value VRP before the update or subtracting "1" from the read pointer value VRP before the update.

[0020] The pointer control circuit 17 does not provide the read instruction signal SRD to the buffer circuit 13 when at least one of the following is satisfied: the updated read pointer value VRP matches the write pointer value VWP; and the first storage circuit 19 of the buffer circuit 13 is full.

[0021] Moreover, the pointer control circuit 17 repeats providing the read instruction signal SRD until at least one of the following is satisfied: the updated read pointer value VRP matches the write pointer value VWP; and the first storage circuit 19 of the buffer circuit 13 becomes full.

[0022] Specifically, when the updated read pointer value VRP coincides with the write pointer value VWP as a result of providing the first read instruction signal SRD to the buffer circuit 13, the pointer control circuit 17 does not provide the next read instruction signal SRD to the buffer circuit 13. At this time, the read instruction signal SRD is provided only once.

[0023] Furthermore, if the difference between the write pointer value VWP and the read pointer value VRP is large, the transmission of the read instruction signal SRD and the update of the read pointer value VRP are repeated until the first storage circuit 19 of the buffer circuit 13 becomes full.

[0024] In the semiconductor device 11, in which the bus width Wb is larger than the bit data width Wd of the FIFO memory circuit 15, the number of stored data to be transferred in the FIFO memory circuit 15 can be identified based on the difference between the write pointer value VWP and the read pointer value VRP. The buffer circuit 13 arranges data from the memory 21 in the FIFO memory circuit 15 in the first storage circuit 19. After completing the arrangement, the buffer circuit 13 can provide the received data to the bus 10.

[0025] Specifically, in the semiconductor device 11, the buffer circuit 13 can send a completion signal SCMP indicating "output completion" to the pointer control circuit 17 after providing the data in the first storage circuit 19 to the bus 10. In response to receiving the completion signal SCMP, the pointer control circuit 17 sends a next read instruction signal SRD to the buffer circuit 13 when the write pointer value VWP and the read pointer value VRP are different from each other.

[0026] Before outputting the data in the first storage circuit 19 to the bus 10, the buffer circuit 13 confirms that the bus 10 is not in use.

[0027] According to the semiconductor device 11, in response to receiving the completion signal SCMP from the buffer circuit 13, the pointer control circuit 17 determines whether the write pointer value VWP and the read pointer value VRP match or mismatch. When the write pointer value VWP and the read pointer value VRP are different from each other, the pointer control circuit 17 provides the buffer circuit 13 with a next read instruction signal SRD including the current read pointer value VRP. Following this procedure, the data of the FIFO memory circuit 15 can be output to the bus 10 in sequence according to the number of arrangements of the first storage circuit 19 of the buffer circuit 13, regardless of the bit data width Wd of the memory 21 of the FIFO memory circuit 15.

[0028] Specifically, the buffer circuit 13 receives the access request SACS and can send the received access request SACS to the pointer control circuit 17. In response to the access request SACS, the pointer control circuit 17 specifies the states of the write pointer value VWP and the read pointer value VRP.

[0029] When the write pointer value VWP and the read pointer value VRP match, a first signal S1 indicating "no data" is returned to the buffer circuit 13 instead of the read instruction signal SRD. The buffer circuit 13 returns a signal indicating "no data", for example the first signal S1, to the request source.

[0030] When the write pointer value VWP and the read pointer value VRP are different from each other, the pointer control circuit 17 generates a read instruction signal SRD in response to the access request SACS.

[0031] According to the semiconductor device 11, the difference between the write pointer value VWP and the read pointer value VRP can be used to identify whether or not there is read data in the FIFO memory circuit 15.

[0032] Specifically, in the semiconductor device 11, the pointer control circuit 17 receives a completion signal SCMP indicating "output complete" from the buffer circuit 13 that provided the data in the first storage circuit 19 to the bus 10. When the updated read pointer value VRP and the write pointer value VWP are different, the pointer control circuit 17 resumes sending the read instruction signal SRD to the buffer circuit 13. After this resumption, when the pointer control circuit 17 determines that the updated read pointer value VRP and the write pointer value VWP match, it returns a second signal S2 indicating "no additional data" to the buffer circuit 13 instead of the read instruction signal SRD. In response to receiving the second signal S2, the buffer circuit 13 provides the data in the first storage circuit 19 to the bus 10.

[0033] In response to receiving the second signal S2, the buffer circuit 13 can store a blank code in the first storage circuit 19 in which no data from the FIFO memory circuit 15 is stored.

[0034] According to the semiconductor device 11, before the buffer circuit 13 transmits data having a data width less than the bus width Wb to the bus 10, the buffer circuit 13 transmits a blank code to the first storage circuit 19 in which the data has not been stored yet.

[0035] Alternatively, the buffer circuit 13 may store a blank code in the first storage circuit 19 after the buffer circuit 13 provides the data in the first storage circuit 19 to the bus 10 .

[0036] According to the semiconductor device 11, before the buffer circuit 13 transmits data to the bus 10, the buffer circuit 13 can store a blank code in the first storage circuit 19 and overwrite the first storage circuit 19 with data from the FIFO memory circuit 15.

[0037] The semiconductor device 11 may further include a data input circuit 31 connected to the FIFO memory circuit 15. The data input circuit 31 may be connected to a communication path 12 different from the bus 10. The data input circuit 31 receives data from the communication path 12. The communication path 12 may be connected to another circuit 35 located outside or inside the semiconductor device 11. The communication path 12 may include either a wired or wireless communication path.

[0038] In response to receiving a reception signal SRCV indicating data reception from the data input circuit 31, the pointer control circuit 17 sends a write instruction signal SWR including a write pointer value VWP to the data input circuit 31 and updates the write pointer value VWP. The write pointer value VWP can be updated in the same manner as the read pointer value VRP. The data input circuit 31 stores the received data in the memory 21 of the FIFO memory circuit 15 according to the address indicated by the write pointer value VWP.

[0039] The data input circuit 31 can be connected to a serial bus as the communication path 12. The data input circuit 31 converts the data format, specifically, converts from a serial data format to a parallel data format.

[0040] The data storage by the data input circuit 31 and the data reading by the buffer circuit 13 occur independently. The FIFO memory circuit 15 operates according to accesses from the buffer circuit 13 and the data input circuit 31.

[0041] The exemplary data input circuit 31 may include a plurality of second storage circuits 33. The number of the second storage circuits 33 may be equal to or greater than the bit data width Wd, for example. The data input circuit 31 sequentially stores data from the communication path 12 in the second storage circuits 33. After the data input circuit 31 stores a number of data equal to the bit data width Wd in the second storage circuits 33, the data input circuit 31 transmits a signal indicating "storage completed" to the pointer control circuit 17. When the data input circuit 31 receives further data, it transmits a reception signal SRCV to the pointer control circuit 17 and receives a write instruction signal SWR including an updated write pointer value VWP.

[0042] The buffer circuit 13 is coupled to the central processing unit 41 via the bus 10. According to the semiconductor device 11, the time during which data transmission from the buffer circuit 13 occupies the bus 10 coupled to the central processing unit 41 can be reduced.

[0043] In the buffer circuit 13, the read data from the FIFO memory circuit 15 can be arranged in the direction from the MSB to the LSB of the bus 10. Alternatively, the read data from the FIFO memory circuit 15 can be arranged in the direction from the LSB to the MSB of the bus 10.

[0044] The exemplary buffer circuit 13 may be configured to receive input data from the bus 10. The input data may be stored in storage circuits separate from the first storage circuit 19 in a number equal to or greater than the bus width Wb.

[0045] FIG. 2 is a diagram illustrating an example semiconductor device according to the present embodiment.

[0046] The buffer circuit 13 may include a read buffer 43 having a width equal to the bit data width Wd of the memory 21 of the FIFO memory circuit 15, a first switching circuit 45, and a switching control circuit 47. The buffer circuit 13 receives data from the memory 21 of the FIFO memory circuit 15 designated by the read pointer value VRP in the read buffer 43. The read buffer 43 is connected to the first switching circuit 45. The first switching circuit 45 is connected to the array of the first storage circuit 19 by a plurality of data lines (D1, D2, D3, D4). The switching control circuit 47 distributes the data of the read buffer 43 to one of the data lines (for example, the data lines D1, D2, D3, D4). Specifically, the switching control circuit 47 selects a data line (for example, the data lines D1, D2, D3, D4 in order, or the data lines D4, D3, D2, D1 in order) according to the number of times the read instruction signal SRD is received. The first switching circuit 45 transfers the data in the read buffer 43 to a portion of the array in the first storage circuit 19 in order.

[0047] The buffer circuit 13 can include a second switching circuit 49. The switching control circuit 47 can control the second switching circuit 49 to send either the data in the read buffer 43 or a blank code to the first switching circuit 45. The blank code is stored in, for example, the switching control circuit 47.

[0048] 2, the pointer control circuit 17 may include a first counter circuit 51 and a first comparison circuit 53 in addition to the pointer management circuit 20, the read pointer 23, and the write pointer 25.

[0049] The first counter circuit 51 is configured to count the number of times the read instruction signal SRD is transmitted. The first comparison circuit 53 transmits a signal SINT to the first counter circuit 51 and the pointer management circuit 20 when the number of times the first counter circuit 51 transmits coincides with a value n (=bus width Wb / bit data width Wd).

[0050] The first counter circuit 51 is initialized in response to the signal SINT.

[0051] In response to the signal SINT, the pointer management circuit 20 suspends the transmission of further read instruction signals SRD.

[0052] According to the semiconductor device 11, when data is provided from the FIFO memory circuit 15 to the buffer circuit 13 under the guidance of the pointer control circuit 17, the pointer control circuit 17 manages the number of times data is transmitted to the buffer circuit 13 by the first counter circuit 51. By this management, excessive data transmission to the buffer circuit 13 is avoided.

[0053] FIG. 3 is a diagram illustrating an example semiconductor device according to the present embodiment.

[0054] The buffer circuit 13 may further include a second counter circuit 57 and a second comparison circuit 55 in addition to the read buffer 43, the first switching circuit 45, and the switching control circuit 47.

[0055] The second counter circuit 57 counts the number of times the read instruction signal SRD is received. The buffer circuit 13 stores the data in the FIFO memory circuit 15 in the array of the first storage circuit 19 in order according to the value of the second counter circuit 57.

[0056] When the count value of the second counter circuit 57 indicates that the array of the first storage circuit 19 is full, in other words, when the number of times of the second counter circuit 57 matches the value n (=bus width Wb / bit data width Wd), the second comparison circuit 55 generates a third signal S3 indicating that the array of the first storage circuit 19 is full. The buffer circuit 13 sends the third signal S3 to the pointer control circuit 17. In response to receiving the third signal S3, the pointer control circuit 17 stops sending further read instruction signals SRD to the buffer circuit 13.

[0057] The value of the second counter circuit 57 is provided to the switching control circuit 47 and can be used to control the first switching circuit 45 .

[0058] According to the semiconductor device 11, when data is provided from the FIFO memory circuit 15 to the buffer circuit 13 due to the leading edge of the buffer circuit 13, the third signal S3 can inform the pointer control circuit 17 that the array of the first storage circuit 19 has become full.

[0059] After confirming that the bus 10 is unused, the buffer circuit 13 outputs the data in the first storage circuit 19 to the bus 10. After providing the data in the first storage circuit 19 to the bus 10, the buffer circuit 13 sends a completion signal SCMP indicating "output complete" to the pointer control circuit 17. In response to receiving the completion signal SCMP, the pointer control circuit 17 sends a next read instruction signal SRD to the buffer circuit 13 when the write pointer value VWP and the read pointer value VRP are different from each other.

[0060] According to the semiconductor device 11, when the updated read pointer value VRP and write pointer value VWP are different, this indicates that there is remaining data to be transmitted to the FIFO memory circuit 15. In response to this, the pointer control circuit 17 resumes transmission of the read instruction signal SRD.

[0061] 4 is a diagram showing a specific example of writing or reading data using a conventional FIFO memory circuit. This conventional FIFO memory circuit includes 16 stages of memories, each of which has an 8-bit width. The bus width Wb is 32 bits.

[0062] In ST101, all 16 stages of memory are empty. The read pointer rp and the write pointer wp point to the first stage of the memory.

[0063] In ST102, the FIFO memory circuit receives one piece of data from the communication path, and the first data is written to the first stage of the memory, which stores "data1". The write pointer wp is updated to point to the second stage of the memory. The position of the read pointer rp remains unchanged.

[0064] In ST103, the FIFO memory circuit receives one piece of data from the communication path, and the second piece of data is written to the second stage memory, which stores "data2". The write pointer wp is updated to point to the third stage of the memory. The position of the read pointer rp remains unchanged.

[0065] In ST104, by repeating such sequential data reception and data storage, the FIFO memory circuit receives one piece of data from the communication path, and the 16th data is written to the 16th stage memory, which stores "data16". The position of the read pointer rp does not change. The write pointer wp is updated to point to the first stage of the memory.

[0066] In ST105, in response to an access request from the central processing unit, 32-bit data as shown in Fig. 4(b) is sent to the bus, and this 32-bit data includes "data1" of the first stage memory and three blank codes. The read pointer rp is updated to point to the second stage memory. The position of the write pointer wp remains unchanged.

[0067] In ST106, in response to an access request from the central processing unit, 32-bit data as shown in Fig. 4(c) is sent to the bus, and this 32-bit data includes "data2" in the second stage of memory and three blank codes. The read pointer rp is updated to point to the third stage of memory. The position of the write pointer wp remains unchanged.

[0068] In ST107, by repeating such sequential data transmission, the FIFO memory circuit transmits 32-bit data to the bus as shown in FIG. 4(d), which includes "data16" of the 16th stage memory and three blank codes. The read pointer rp is updated to point to the first stage of the memory. The position of the write pointer wp remains unchanged.

[0069] This FIFO memory circuit repeatedly transfers 8-bit data using a 32-bit bus.

[0070] 5 is a diagram showing a specific example of writing or reading data using an exemplary FIFO memory circuit. This exemplary FIFO memory circuit includes 16 stages of memory, each of which has an 8-bit width. The bus width Wb of the bus is 32 bits.

[0071] In ST201, "data1" to "data16" are stored in all 16 stages of memory, and the read pointer rp and write pointer wp point to the first stage of the memory.

[0072] In ST202, data "data1" to "data4" are read from the first four stages of memory in accordance with the 32-bit width bus, and the read pointer rp is updated to point to the fifth stage of memory. The position of the write pointer wp does not change. The data "data1" to "data4" from these four stages of memory are stored in order in the first storage circuit 19 of the buffer circuit 13, as shown in FIG. 5(b). The buffer circuit 13 outputs the data in the first storage circuit 19 to the bus 10.

[0073] In ST203, data "data5" to "data8" are read from the next four stages of memory in accordance with the 32-bit bus, and the read pointer rp is updated to point to the ninth stage of memory. The position of the write pointer wp does not change. The data "data5" to "data8" from these four stages of memory are stored in order in the first storage circuit 19 of the buffer circuit 13, as shown in FIG. 5(c). The buffer circuit 13 outputs the data in the first storage circuit 19 to the bus 10.

[0074] In ST204, data "data9" to "data12" are read from the next four stages of memory in accordance with the 32-bit bus, and the read pointer rp is updated to point to the 13th stage of memory. The position of the write pointer wp does not change. The data "data9" to "data12" from these four stages of memory are stored in order in the first storage circuit 19 of the buffer circuit 13, as shown in FIG. 5(d). The buffer circuit 13 outputs the data in the first storage circuit 19 to the bus 10.

[0075] In ST205, data "data13" to "data16" from the next four stages of memory are read in accordance with the 32-bit bus width, and the read pointer rp is updated to point to the first stage of memory. The position of the write pointer wp does not change. The data "data13" to "data16" from these four stages of memory are stored in order in the first storage circuit 19 of the buffer circuit 13, as shown in FIG. 5(e). The buffer circuit 13 outputs the data in the first storage circuit 19 to the bus 10.

[0076] This FIFO memory circuit repeatedly transfers four 8-bit data items using a 32-bit bus.

[0077] 6 is a diagram showing a specific example of writing or reading data using an exemplary FIFO memory circuit. This exemplary FIFO memory circuit includes 16 stages of memory, each of which has an 8-bit width. The bus width Wb of the bus is 32 bits.

[0078] In ST301, "data1" to "data10" are stored in the 10th stage of the 16 stages of memory, and the write pointer wp points to the 11th stage of the memory. The read pointer rp points to the 1st stage of the memory.

[0079] In ST302, data "data1" to "data4" are read from the first four stages of memory in accordance with the 32-bit bus width, and the read pointer rp is updated to point to the fifth stage of memory. The position of the write pointer wp does not change. The data "data1" to "data4" from these four stages of memory are stored in order in the first storage circuit 19 of the buffer circuit 13, as shown in FIG. 6(b). The buffer circuit 13 outputs the data in the first storage circuit 19 to the bus 10.

[0080] In ST303, data "data5" to "data8" from the next four stages of memory are read in accordance with the 32-bit bus, and the read pointer rp is updated to point to the ninth stage of memory. The position of the write pointer wp does not change. The data "data5" to "data8" from these four stages of memory are stored in order in the first storage circuit 19 of the buffer circuit 13, as shown in FIG. 6(c). The buffer circuit 13 outputs the data in the first storage circuit 19 to the bus 10.

[0081] In ST304, data "data9" and "data10" from the next two stages of memory are read out in accordance with the 32-bit bus width, and the read pointer rp is updated to point to the 11th stage of memory. The position of the write pointer wp does not change. The data "data9" to "data10" from the next two stages of memory are stored in order in the first storage circuit 19 of the buffer circuit 13 as shown in FIG. 5(d), and blank codes are stored in the unused first storage circuits 19. The buffer circuit 13 outputs the data and blank codes in the first storage circuits 19 to the bus 10.

[0082] This FIFO memory circuit repeatedly transfers four 8-bit data and a blank code using a 32-bit wide bus.

[0083] According to the embodiment described above, a semiconductor device is provided that can prevent the bus occupancy rate from becoming high when data is transferred from a FIFO memory circuit via a bus.

[0084] This embodiment has several aspects as shown below.

[0085] A first aspect of the present embodiment includes a semiconductor device. The semiconductor device includes a buffer circuit connected to a bus having a bus width Wb to perform at least one of transmission and reception and having a number of first storage circuits equal to or greater than the bus width Wb, a FIFO memory circuit connected to the buffer circuit and having a bit data width Wd and a number of stages Sf, and a pointer control circuit configured to hold a read pointer value and a write pointer value of the FIFO memory circuit in a read pointer and a write pointer, respectively, and to control the read pointer and the write pointer, the bus width Wb being a value equal to or greater than n times the bit data width Wd (n is a natural number equal to or greater than 2), and the pointer control circuit controls the write pointer in response to an access request. and providing a read instruction signal to the buffer circuit when a write pointer value and the read pointer value are different from each other, the read instruction signal including the read pointer value, the pointer control circuit updating the read pointer value after providing the read instruction signal, the buffer circuit storing data of the FIFO memory circuit at the address of the received read pointer value in the first storage circuit in response to receiving the read pointer value, and the pointer control circuit not providing the read instruction signal to the buffer circuit when at least one of the following is satisfied: the updated read pointer value matches the write pointer value and the first storage circuit of the buffer circuit is full.

[0086] In a semiconductor device of a second aspect according to the first aspect, after the buffer circuit provides the data of the first storage circuit to the bus, it sends a completion signal indicating "output completed" to the pointer control circuit, and in response to receiving the completion signal, the pointer control circuit sends the read instruction signal to the buffer circuit when the write pointer value and the read pointer value are different from each other.

[0087] In a semiconductor device of a third aspect according to the first or second aspect, the buffer circuit receives the access request and sends the received access request to the pointer control circuit, and in response to the access request, when the write pointer value and the read pointer value match, the pointer control circuit returns a first signal indicating "no data" to the buffer circuit, and the buffer circuit can transmit a response indicating "no data" to the sender of the access request.

[0088] In a semiconductor device of a fourth aspect according to any one of the first to third aspects, when the updated read pointer value matches the write pointer value, the pointer control circuit returns a second signal indicating "no additional data" to the buffer circuit, and the buffer circuit can provide data from the first storage circuit to the bus.

[0089] In a semiconductor device of a fifth aspect according to the fourth aspect, the buffer circuit can store a blank code in the first storage circuit in which no data from the FIFO memory circuit is stored in response to receiving the second signal.

[0090] In a semiconductor device of a sixth aspect according to any one of the first to third aspects, the buffer circuit can store a blank code in the first storage circuit after the buffer circuit provides data of the first storage circuit to the bus.

[0091] A semiconductor device of a seventh aspect according to any one of the first to sixth aspects further includes a data input circuit connected to the FIFO memory circuit, and in response to receiving a reception signal indicating data reception from the data input circuit, the pointer control circuit sends the write pointer value to the data input circuit and updates the write pointer value, and the data input circuit can send the received data to the FIFO memory circuit in accordance with the address indicated by the write pointer value.

[0092] In the semiconductor device of an eighth aspect according to the seventh aspect, the data input circuit can be connected to a serial bus.

[0093] In a semiconductor device according to a ninth aspect in accordance with any one of the first to eighth aspects, the buffer circuit may be coupled to a central processing unit via the bus.

[0094] The present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the spirit and scope of the present invention, all of which are included in the technical concept of the present invention. [Explanation of symbols]

[0095] 10 bus, 11 semiconductor device, 12 communication path, 13 buffer circuit, 15 FIFO memory circuit, 17 pointer control circuit, 19 first storage circuit, 20 pointer management circuit, 21 memory, 23 read pointer, 25 write pointer, 31 data input circuit, 33 second storage circuit, 41 central processing unit, 43 read buffer, 45 first switching circuit, 47 switching control circuit, 49 second switching circuit, 51 first counter circuit, 53 First comparison circuit, 55...second comparison circuit, 57...second counter circuit, D1, D2, D3, D4...data line, S1...first signal, S2...second signal, S3...third signal, SACS...access request, SCMP...completion signal, SRCV...received signal, SRD...read instruction signal, SWR...write instruction signal, Sf...number of stages, VRP...read pointer value, VWP...write pointer value, Wb...bus width, Wd...bit data width, rp...read pointer, wp...write pointer.

Claims

1. a buffer circuit connected to a bus having a bus width Wb to perform at least one of transmission and reception, the buffer circuit having a number of first storage circuits equal to or greater than the bus width Wb; a FIFO memory circuit connected to the buffer circuit and having a bit data width Wd and a number of stages Sf; a pointer control circuit configured to hold a read pointer value and a write pointer value of the FIFO memory circuit in a read pointer and a write pointer, respectively, and to control the read pointer and the write pointer; Equipped with The bus width Wb is equal to or greater than n times (n is a natural number equal to or greater than 2) the bit data width Wd, the pointer control circuit is configured to provide a read instruction signal to the buffer circuit when the write pointer value and the read pointer value differ from each other in response to an access request; the read instruction signal includes the read pointer value, the pointer control circuit updates the read pointer value after providing the read instruction signal; the buffer circuit, in response to receiving the read pointer value, stores data in the FIFO memory circuit at the address of the received read pointer value in the first storage circuit; The pointer control circuit includes: the updated read pointer value matches the write pointer value; and the first storage circuit of the buffer circuit becoming full; when at least one of the above conditions is satisfied, the read instruction signal is not provided to the buffer circuit. Semiconductor device.

2. the buffer circuit, after providing the data in the first storage circuit to the bus, sends a completion signal indicating "output completion" to the pointer control circuit; the pointer control circuit, in response to receiving the completion signal, sends the read instruction signal to the buffer circuit when the write pointer value and the read pointer value are different from each other; 2. The semiconductor device according to claim 1.

3. the buffer circuit receives the access request and transmits the received access request to the pointer control circuit; the pointer control circuit, in response to the access request, returns a first signal indicating "no data" to the buffer circuit when the write pointer value and the read pointer value match; the buffer circuit transmits a response indicating "no data" to the source of the access request; 2. The semiconductor device according to claim 1.

4. the pointer control circuit returns a second signal indicating "no additional data" to the buffer circuit when the updated read pointer value matches the write pointer value; the buffer circuit provides data from the first storage circuit to the bus; The semiconductor device according to claim 1 .

5. the buffer circuit, in response to receiving the second signal, stores a blank code in the first storage circuit in which no data from the FIFO memory circuit is stored.

5. The semiconductor device according to claim 4.

6. the buffer circuit stores a blank code in the first storage circuit after the buffer circuit provides the data in the first storage circuit to the bus; The semiconductor device according to claim 1 .

7. a data input circuit connected to the FIFO memory circuit; the pointer control circuit, in response to receiving a reception signal indicating data reception from the data input circuit, sends the write pointer value to the data input circuit and updates the write pointer value; the data input circuit sends the received data to the FIFO memory circuit according to the address indicated by the write pointer value; The semiconductor device according to claim 1 .

8. the data input circuit is connected to a serial bus; 8. The semiconductor device according to claim 7.

9. the buffer circuit is coupled to a central processing unit via the bus; The semiconductor device according to claim 1 .

Citation Information

Patent Citations

  • Fifo memory device and its controlling method

    JP2000089932A