TW390098B - Memory manager for MPEG decoder - Google Patents
Memory manager for MPEG decoder Download PDFInfo
- Publication number
- TW390098B TW390098B TW87105589A TW87105589A TW390098B TW 390098 B TW390098 B TW 390098B TW 87105589 A TW87105589 A TW 87105589A TW 87105589 A TW87105589 A TW 87105589A TW 390098 B TW390098 B TW 390098B
- Authority
- TW
- Taiwan
- Prior art keywords
- memory
- data
- video
- ladder
- finger
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
- G06T9/007—Transform coding, e.g. discrete cosine transform
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Discrete Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Description
娌濟部中决標準局負工消费合作社印掣 Α7 Β7 五、發明説明(1 ) 本發明之發明領域係有關於視訊解壓縮。尤本 發明與一視訊解碼器有關,特別是在一視訊解碼器之影 像格^式器中用於餚存解碼之視訊畫面(frame)圈像的記 憶髋管理。 在美國專利第5,212,742號案中可了解多種不同的 視訊資料壓縮梯準,如JPEG·,MPEG及H.261等。一種 重要的壓縮梯準為移動囷像專家群協定 ('’MPEG")(Moving Picture Expert Convention),尤其 是MPEG-2(ISO-IEC 13818)更為重要。例如在歐洲專利 申請第92306038.8號案中說明用於MPEG-2編碼視訊資 料之解碼器中的電路,該案與本發明之受讓人相同。 MPEG編喝包含3種不同的圈像型式:系統内 ("I")(Intra),預測("F")及雙向内插("B")。B圈像係 基於來自兩圈像的預測,該預測分別由過去及未來圖像 達成。I圖像不需經_時域解碍器(Temporal Decoder)進 行進一步的解碼,但是需要儲存在兩圖像緩衝器中之 一,用以在之後解碼P及B圖像中使用。在編碼器中修 改圖像順序,使得在需要解碼B圖像之前,I及p圖像 可從編碼的資料中解碼。解碼的P圈像需要從一先前 的P或I圖像中形成預測值。解碼的P圈像餚存在圈像 緩衝器中,以用於解碼p及B圖像。 B圖像需要來自圈像緩衝器的預測值。如同使用p 圈像’半像素(pixel)移動向量解析度的準球度需要圖 像資訊之晶片上(on chip)内插。b圖像不儲存在緩衝 本紙张尺度適用中國國家標卑((’NS ) Λ4規格(210X 297公 —TITI-iAT—----訂------T (锖先閱讀背面之注意事項再填寫本頁) 經濟部中央標皁局負工消费合作社印聚 -_ Α7 χ ~~---_ Β7 五、發明説~—--—— 中’而只是暫態圖像而已。 在mpeg解碼中,基本上提供一時域及一空間分配 解磚器。本發明中使用的空間分配解碼器在單一圖像内 執行所有需要的處理,其減少一圖像内多餘的運算。時 域解碼器減少一目的圖像及在目的圖像到達前到達之 圈像、及在目的圈像到達後才到達之圖像之間的多餘的 運算。 圖一示一 I圖像2如何儲存在圖像緩衝器4中的然 後加以輪出。圖二顯示如何從一囷像緩衝器8中形成一 P圏像6,储存在一第二圏像緩衝器1〇,及接著輸出的 方式。圖三說明如何從兩圖像緩衝器14中的資訊架構 一 B囷像I2,且随後输出而不加以餚存。 當解碼I及Ρ圖像時,通常這些解碼圈像並不從時 域解瑪器輸出,而是將I及Ρ圖像寫入複數個圖像緩衝 器中之一緩衝器。並且只在當下一個1或1>圈像到達進 行解喝時才讀取。另言之,時域解碼器依賴下一個1>或 I圖像以從兩個圖像緩衝器中清除前一個圈像。空間分 配解蝎器可在視訊序列結束時,提供一虛設的1或?圏 像以將最後的Ρ或I圈像清除乾淨。另一方面,當下一 個視訊序列開始時,清除此虛設的鬮像。 當解碼Β圖像時,會發生峰值記憶體頻寬負載問 題。在一此“最壤情沉”預定樣本之範_中,可應用兩個 覊像緩衝器中得到所有預測形成Β畫面。表工中列出使 用一代表性動態随機存取記憶體("DRAM")之性能資 本紙張尺度適用中國國家標瑋.(CNS > Λ4規格(210X297公釐) 1^---τ----—— (請先閲讀背面之注意事項再填寫本頁) 訂Printed by the Consumers' Cooperatives of the Bureau of Decision and Standards of the Ministry of Economic Affairs A7 B7 V. Description of the Invention (1) The field of invention of the present invention relates to video decompression. The present invention relates to a video decoder, and particularly to memory hip management of video frame frames used for video decoding in a video decoder of a video decoder. A variety of video compression standards such as JPEG, MPEG, and H.261 are known in US Patent No. 5,212,742. An important compression ladder is the Moving Picture Expert Convention ('MPEG "), especially MPEG-2 (ISO-IEC 13818). For example, a circuit in a decoder for MPEG-2 encoded video data is described in European Patent Application No. 92306038.8, which is the same as the assignee of the present invention. MPEG editing includes 3 different types of circles: In-System (" I ") (Intra), Prediction (" F ") and Bidirectional Interpolation (" B "). The B-circle image is based on predictions from two-circle images, which are achieved by past and future images, respectively. The I picture does not need to be further decoded by the Temporal Decoder, but it needs to be stored in one of the two picture buffers for later use in decoding P and B pictures. The order of the pictures is modified in the encoder so that I and p pictures can be decoded from the encoded material before the B picture needs to be decoded. The decoded P-circle image needs to form a prediction value from a previous P or I image. The decoded P circle image is stored in the circle image buffer for decoding p and B images. B-pictures require predictions from the circle buffer. The quasi-sphericity of the resolution of a p-ring image's half-pixel (pixel) motion vector requires on-chip interpolation of image information. b The image is not stored in the buffer. The paper size is applicable to the Chinese national standard (('NS) Λ4 specification (210X 297 male — TITI-iAT — — order — — T (锖 Please read the note on the back first) (Please fill in this page again for the matters)) Yin Ju -_ Α7 χ ~~ --- Β7 of the Ministry of Economic Affairs, Central Bureau of Standards and Societies Consumers Cooperatives V. Invention ~ ----Medium 'and it is only a transient image. In mpeg decoding, a time domain and a space allocation deblocker are basically provided. The space allocation decoder used in the present invention performs all required processing in a single image, which reduces redundant operations in an image. Time domain decoding The device reduces redundant operations between a destination image and a circle image that arrives before the destination image arrives, and an image that arrives after the destination circle image arrives. Figure 1 shows how an I image 2 is stored in the image. The buffer 4 is then rotated out. Figure 2 shows how to form a P image 6 from one image buffer 8, store it in a second image buffer 10, and then output it. Figure 3 illustrates How to get a picture I2 from the information structure in the two image buffers 14 and then output it without considering When decoding I and P images, usually these decoding circle images are not output from the time domain demapping device, but I and P images are written into one of the plurality of image buffers. And only It is read only when the next 1 or 1 > circle image arrives for decoupling. In other words, the time domain decoder relies on the next 1 > or I image to clear the previous circle image from the two image buffers. The space allocation scorpion remover can provide a dummy 1 or? Image at the end of the video sequence to clear the last P or I circle image. On the other hand, when the next video sequence starts, clear this dummy image When decoding a B image, a peak memory bandwidth load problem may occur. In this "most soiled" predetermined sample range, two prediction buffers can be applied to obtain all predictions to form a B frame. The watch industry listed the performance capital paper size using a representative dynamic random access memory (" DRAM ") for the Chinese national standard. (CNS > Λ4 specification (210X297 mm) 1 ^ --- τ -------- (Please read the notes on the back before filling this page)
A A7 B7 五、發明説明(3 ) 料。 資料匯'流排寬度 (bits) 讀取或窝入S X 8方瑰 形成預測(半像 素準確度) 形成預測(全 像素準確度) 8 3657 ns 4907 ns 3963 ns 16 1880 ns 2907 ns 2185 ns 32 991 ns 1907 ns 1741 ns 表1 V m I In el if n.- 1;、 (請先閱讀背面之注意事項真填寫本頁) 經濟部中央標準局貝工消费合作社印黧 從表1的資料可看出對於兩個準確的半像素準確預 測(經由32位元寬度的介面)解碼器的DRAM介面需要 381δ ns的時間讀取資料。時域解碼器可夂援之解析度 由可在一圈像時間内執行之預測的數目所決定。在此範 例中,時域解碼器可在單一的33ms圖像周期(例如用於 3〇Hz的視訊)中處理8737個8 X 8方塊。 如果所需要的視訊格式為704 X 480,則各|5像包 括792〇個8X 8方塊(考量4 : 2 : 0之色彩濃度取樣)。 可看到視訊格式消耗約91 %的可用DRAM介面頻寬(如 DRAM更新等其他因素列入考量之前)。因此,時域解碍 器可支援此視訊格式。 當使用MPEG圈像再排序時,最壞情沉預定樣本發 生在同時解礪P圈像的時候。此時,在DRAM介面上有3 個負載:(1)型式預測;(2)寫回結果;以及(3)讀出前 面的P或I圖像。 *ir Λ... 本紙張尺度適州中國國家標潭.((、NS) Λ4規格(210χ 297公釐) 五、發明益明(4 ) A7 B7 經濟部中央摞牟局員工消费合作社印聚 j用來自表1的資料•當一 32位元寬度的介面使 用時,可決定各項工作每一項所需要的時間。形成預測 需费# 1907 ns/n,而讀取及寫入作業各需要991 ns, 所以總共需要3889 ns的時間。如此可允許在33 ms的 周期内,時域解碼器處理8485個8X8之方塊。因此, 處理704 X 480個視訊需要使用約可用記憶體頻寬(忽 略再更新所需要的頻寬)中約93 %的容量。 圖四中顯示一傳統中使用的解碼器系統16之方塊 圖。現在一般使用一同步DRAM作為在視訊格式器20中 使用的DRAM 18 »空間分配解碼器22及時域解碼器24 分別地使用DRAM 26,28。在MPEG解碼期間,最多可 有3個盡面需要儲存在DRAM 18中》DRAM介面30在達 成可接受特性方面尤其重要。在熟知的美國電視系統協 會("NTSC")協定中•對於總和12佰萬位元的資料而言, 需要4佰萬位元/畫面的數量處理。對相位交替線("pal") 協定中,畫面大小約5佰萬位元畫面,因此在DRAM 18 中需要I5佰萬位元的記憶體。商用解碼器系統配置DRAM IS作為16佰萬位元之随機存取記憶饉("RAM"),其原 因係為達到確實有效性之需求。但是在最壞情沉的例子 中,只有一佰萬位元的RAM保持在視訊格式器20的其 他處理功能,當然此容量不敷使用。提供足量的記憶體 導致在一 "4·3盡面铕存模式"下操作^ g此有必要提供 另一 RAM(圈中沒有顧示)》通常4佰萬位元的大小可適 應視訊格式器20。4信萬位元比所需要的容量大,但 (請先閱讀背面之注意事項再填寫本頁) -9 本紙張尺度適用中國围家標準(CNS ) Λ4規格(210 X 297公楚) 經濟部中央標準局貝-x消費合作社印裝 A7 ______B7 五、發明説明(5 ) 是仍使用此容量的記憶馥,因爲當16佰萬位元的RAM 之例子中,其為一不使用之组件。在一由超大型積髖電 路("visi")實現的解碼器中·在成本、功率耗損及空間 需要的一般考量下有必要減少記憶艘的容量。 視訊格式器2〇處理來自空間分配解碼器22及時域 解碼器24的資料。處理一數位視訊畫面形成一蠲像元 素栅,或像素。像素為8X8之方塊群,且方塊更進一 步集合成2X2之單元,稱為巨集方塊(macr〇bl〇ck)。 因此,巨集方塊表現16 X 16像素的群組或2χ 2方塊 的群組。一 PAL圖像為45 X 36個巨集方塊所架構,且 一 NTSC圖像為45 X 3〇個巨集方塊所架構。現在請參考 囷五,每一個巨集方塊32包含四個亮度方塊34,及二 個彩度方塊36,且包含用於原始16χ 群像素之資 訊。四個亮度方塊34及二個彩度方塊36中各方塊的大 小為8X8像素。四個亮度方塊34包括來自像素之原始 1β X I6群之亮度(Υ)資訊的1像素與i像素的對映。一 彩度方塊36包含代表藍色色彩信號(Cu/b)之彩度位準 的表示且其他彩度方塊36包含代表紅色色彩信號(Cv/r) 之彩度位準的表示。各彩度位準為部份取樣,使得各個 8X8的彩度方塊36包括用於整個原始16χ 16方塊像 素之彩色信號的彩度位準。 最近在技街上已可能將上述三個畫面儲存("Β畫面 儲存,,)中之一畫面加以壓縮。當執行此功能時,則稱將 解褐器在"2.5畫面館存模式"下操作。其原因為因為在 ((挪)八4規格(21〇/297公釐) !—:----XJ—— (請先閲讀背面之注意事項再填寫本頁)A A7 B7 5. Description of the invention (3). Data pool's width (bits) Read or nest SX 8 squares formation prediction (half pixel accuracy) formation prediction (full pixel accuracy) 8 3657 ns 4907 ns 3963 ns 16 1880 ns 2907 ns 2185 ns 32 991 ns 1907 ns 1741 ns Table 1 V m I In el if n.- 1; (Please read the precautions on the back and fill in this page first.) The seal of the Bayer Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs can be seen from the information in Table 1. The DRAM interface of the decoder for two accurate half-pixel accurate predictions (via a 32-bit wide interface) requires 381δ ns to read the data. The resolution that can be supported by the time domain decoder is determined by the number of predictions that can be performed in a single image time. In this example, the time-domain decoder can process 8,737 8 × 8 blocks in a single 33ms image period (for example, for 30Hz video). If the required video format is 704 X 480, each | 5 image includes 7920 8X 8 blocks (considering 4: 2: 0 color density sampling). You can see that the video format consumes about 91% of the available DRAM interface bandwidth (before other factors such as DRAM updates are considered). Therefore, the time domain resolver can support this video format. When using MPEG circle image reordering, the worst case scenario samples occur when the P circle image is resolved at the same time. At this time, there are three loads on the DRAM interface: (1) type prediction; (2) writing back the result; and (3) reading the previous P or I image. * ir Λ ... The paper size is suitable for China National Standard Pool. ((, NS) Λ4 size (210 x 297 mm) V. Invention Yiming (4) A7 B7 Printed by the Consumers' Cooperative of the Central Ministry of Economic Affairs of the Ministry of Economic Affairs Use the data from Table 1 • When a 32-bit wide interface is used, the time required for each task can be determined. The forecast cost is # 1907 ns / n, and the read and write operations are each It takes 991 ns, so it takes a total of 3889 ns. This allows the time-domain decoder to process 8485 8X8 blocks in a period of 33 ms. Therefore, processing 704 X 480 videos requires approximately available memory bandwidth ( Ignore the bandwidth required for re-updating) about 93% of the capacity. Figure 4 shows a block diagram of a conventional decoder system 16. A synchronous DRAM is now generally used as the DRAM 18 in the video formatter 20. »The space allocation decoder 22 and the time domain decoder 24 respectively use DRAM 26, 28. During MPEG decoding, up to 3 aspects can be stored in DRAM 18. DRAM interface 30 is particularly important in achieving acceptable characteristics. In the well-known American Electric According to the NTSC agreement, for the data of 12 million bits in total, 4 million bits per picture are required. For the phase alternate line (" pal ") agreement, the picture The size is about 5 million bits, so I5 million bits of memory are required in DRAM 18. The commercial decoder system is configured with DRAM IS as a 16 million bit random access memory card (" RAM ") The reason is to achieve the need for true effectiveness. However, in the worst case, only one million bits of RAM are kept in other processing functions of the video formatter 20, of course this capacity is not enough. Provide enough The amount of memory results in a "4/3 full save mode" operation ^ g it is necessary to provide another RAM (not shown in the circle) "usually 4 million bits in size can adapt to the video format The device has a capacity of 24.0 million digits, which is larger than the required capacity, but (please read the precautions on the back before filling this page) -9 This paper size is applicable to the Chinese standard (CNS) Λ4 specification (210 X 297 cm) ) Central Standards Bureau of the Ministry of Economic Affairs ______B7 V. Invention description (5) is still using this capacity memory, because when the 16 million bit RAM example, it is an unused component. A super-large integrated circuit (" visi ") In the implemented decoder, it is necessary to reduce the capacity of the memory boat under the general considerations of cost, power consumption and space requirements. The video formatter 20 processes the data from the space allocation decoder 22 and the time domain decoder 24. Process a digital video frame to form a grid of pixels, or pixels. The pixels are 8X8 cube groups, and the cubes are further integrated into 2X2 units, which are called macroblocks. Therefore, a macro block represents a group of 16 x 16 pixels or a group of 2 x 2 blocks. A PAL image is constructed by 45 X 36 macro blocks, and an NTSC image is constructed by 45 X 30 macro blocks. Now refer to Example 5. Each macro block 32 contains four luminance blocks 34 and two chroma blocks 36, and contains information for the original 16x group of pixels. The size of each of the four luminance squares 34 and the two chroma squares 36 is 8 × 8 pixels. The four brightness squares 34 include a mapping of 1 pixel to i pixels from the brightness (Υ) information of the original 1β X I6 group of pixels. One chroma box 36 contains a representation of the chroma level representing the blue color signal (Cu / b) and the other chroma box 36 contains a representation of the chroma level representing the red color signal (Cv / r). Each chroma level is a partial sample, so that each 8X8 chroma square 36 includes the chroma level of the color signal for the entire original 16x16 square pixels. Recently, it has been possible to compress one of the above three pictures (" B picture save ,, ") on Jijie. When this function is executed, it is said to operate the browner in the "2.5 picture storage mode". The reason is because in ((Nor)) 4 specifications (21〇 / 297 mm)! —: ---- XJ—— (Please read the precautions on the back before filling this page)
,1T 五、發明説明(6 A7 B7 經濟部中央標準局男工消费合作社印掣 ^ dram 18 ^i〇 的記德雄,而在PAL的例子中,則需要125信萬位元 的記樣想。而實膠上的重要之處再於在單一 16佰 元記憶體中,解碼PAL圈像的能力。但是,在2 5畫面 館存模式中,因為_演算法需要視訊格式器2〇處理 I、P及像中擴充的混合序列,記㈣管理變得相 當的困難。各類型的圈像接受個別的處理。而且如果 解碼一連續串列圖像的處理作業延遲,則 或多個現在fl像中的棚位,如此則需要更進—步進_ 碼器的記憶體管理。 因此,本發明的主要目的係改進在一 MpEG解碼器 之視訊格式器中記憶體管理的效率。 本發明的另一目的為提供一用於MPEG解场器之記 憶體管理器,此管理器允許在2.S畫面儲存模式下進行 快速而有效的操作。 本發明尚有一目的即使得在一 MPEG解崎器中,記 憶饉單元之大小、成本及功率耗損達到最小。 本發明中,經由提供一在2·5畫面儲存模式下改進 MPEG解嘴器的操成而達成上述及其他的目的,且孩解碑 器中具有一有效的記憶禮管理,此管理允許錄存及類示 一國像,尤其是B圈像,且同時使用一部份的畫面餘存 記憶體。處理該視訊盡面使如一格子("grid "),此格子 具有8 X 8之像素方塊列,下文稱為記憶體"切片 "(slice)或"方塊列(block rows) ”。在互耦合緩衝器中 錆 先 閱 背 Ϊ& 注, 1T V. Description of the invention (6 A7 B7 Printed by the male workers' consumer cooperative of the Central Standards Bureau of the Ministry of Economic Affairs ^ dram 18 ^ i〇's Dexiong, but in the case of PAL, you need 125 credits worth of samples The important point in real rubber is the ability to decode the PAL circle image in a single 16 yuan memory. However, in the 25-picture storage mode, because the _ algorithm requires the video formatter 20 to process I , P, and the extended mixed sequence in the image, it becomes quite difficult to manage the records. Each type of circle image is individually processed. And if the processing operation to decode a continuous series of images is delayed, then multiple or existing images In this case, it is necessary to go further—the memory management of the stepper encoder. Therefore, the main purpose of the present invention is to improve the efficiency of memory management in a video formatter of an MpEG decoder. An object is to provide a memory manager for an MPEG de-scatterer, which allows fast and efficient operation in a 2.S picture storage mode. The present invention also has an object to enable , The size of the memory unit The cost and power consumption are minimized. In the present invention, the above and other objectives are achieved by providing an improved operation of the MPEG mouthpiece in the 2.5 image storage mode, and an effective memory gift is provided in the child mouthpiece. Management, this management allows to record and display a country image, especially the B-circle image, and at the same time use a part of the remaining memory of the screen. Processing this video is like a grid (" grid "), this The grid has 8 X 8 pixel square rows, hereinafter referred to as "slice" or "block rows". In the mutual coupling buffer, please read the back note & Note
I 旁 訂 I Λ 本紙張尺度適用中國國家標卑(CNS ) Λ4規格(210X297公釐) A7 B7 經濟部中央標準局負工消費合作社印裝 五、發明説明(7 ) 操作該切片,各個綵衝器配置成先進先出("FIFO ")型 式*且在密閉迴珞中橫向連接。在一記憶髖中操作兩項 其為:(1)視訊重建處理,係將資料窝回記憶髖 (··窝回’’),及(2)一顧示程序,係存取記憶體且將視訊 畫面寫入另一記憶想,其為迴柵格式(raster)的外部記 憶雜。在—較佳實施例中,有3.個互耦合FIFO,一 FIFO 用於寫回操作,而其他兩個FIFO用於讀取2 : 1之交 錄迴栅资料。該兩個用於迴柵操作的FIFO以圖像的交 替線方式分配。 依據本發明,一視訊解碼器包含一空間分配解碍 器、一時域解碼器、一視訊格式器及用於儲存接收資料 的資料記憶體。該視訊格式器接收來自時域解碼器及空 間分配解碼器中至少一解碼器的资料。一用於視訊格式 器的記憶體管理器,其使用一寫回參考、一第一迴柵記 憶體及一第二迴柵記憶體,其中在寫回記憶體中儲存指 向資料記憶體的指梯。在寫回記憶饉中位置的數目少於 在第一迴柵記憶體及第二迴柵記憶髖中位置數目的總 合。一記億體介面,其耦合前述第一迴柵記憶體、第二 迴柵記憶體、资料源,資料記憶馥及寫回記億饉。提供 一寫回控制電路以從寫回記憶體中取回指標,最好該指 梯為一虛擬記憶髏指標,其中该取回的指梯呈現在記憶 饉介面中,且接收的資料餚存在由取回指'梯所指定之資 料記憶體的位置中。取回的指梯轉移到迴柵記憶體。提 供一迴柵控制電路以從迴柵記憶艘中再取回轉移的指 (锖先閱讀背面之注意事項再填寫本頁) -Q.I Side order I Λ This paper size applies to China National Standards (CNS) Λ4 specifications (210X297 mm) A7 B7 Printing by the Central Consumers Bureau of the Ministry of Economic Affairs of the Consumers ’Cooperatives V. Description of the invention (7) Operation of the slice, each color punch The device is configured as a first-in-first-out (FIFO) type * and is connected horizontally in a closed loop. Two operations are performed in a memory hip: (1) video reconstruction processing, which returns the data to the memory hip (...), and (2) a procedure for accessing memory and accessing the video The picture is written into another memory, which is a raster external memory. In the preferred embodiment, there are 3. mutual coupling FIFOs, one FIFO is used for write back operation, and the other two FIFOs are used to read the 2: 1 log back raster data. The two FIFOs for back-grid operation are allocated in the form of alternate lines of images. According to the present invention, a video decoder includes a space allocation solver, a time domain decoder, a video formatter, and a data memory for storing received data. The video formatter receives data from at least one of a time domain decoder and a space allocation decoder. A memory manager for a video formatter, which uses a write-back reference, a first back-gate memory, and a second back-gate memory, in which a finger pointing to the data memory is stored in the write-back memory . The number of positions in the write-back memory volume is less than the sum of the number of positions in the first and second cascade memory hips. A billion-body interface, which is coupled to the first cascade memory, the second cascade memory, the data source, the data memory, and the write-back memory. Provide a write-back control circuit to retrieve the index from the write-back memory. Preferably, the finger ladder is a virtual memory skull indicator, wherein the retrieved finger ladder is presented in the memory card interface, and the received data is stored by Retrieval means the location of the data memory specified by the ladder. The retrieved finger ladder is transferred to the cascade memory. Provide a back-grid control circuit to retrieve the transferred fingers from the back-grid memory boat (锖 Read the precautions on the back before filling this page) -Q.
,1T .大 本紙張尺度適用中國國家標嗥(CNS ) Λ4規格(210X297公釐〉 經濟部中央標率局員工消费合作社印裝 A7 B7 五、發明説明(8 ) 梯,因此可表現出記憶艎介面,其中從资料記憶體中讀 取接收資料,且將再取回的指梯回復,以指向原來的窝 回記憶|體。 最好寫回記憶«、第一迴柵記悚體及第二迴柵記憶 逋為FIFO ’在一實施例中,這些可使用统計方式配置 其形態,且可以單一的RAM實現。 依據本發明的另一設計理念,可提供控制電路以動 態釔置FIFO的形態。 依據本發明的另一設計理念•可實現寫回記憶體、 第一迴栅記憶體、第二迴柵記憶艘成為可定址内容的記 憶饉〇 依據本發明的另一設計理念,可實現該窝回記憶 ·. 髏、该第一迴柵記憶體、及第二迴栅記憶艘成為一暫存 器檔。 依據本發明的另一設計理念,具有複數排資料記憶 饉。 依據本發明的另一設計理念,前述窝回記憶馥、第 一迴柵記憶饉及该第二迴栅記憶艘為用於將指梯儲存 在资料記憶嬤的互耦合FIFO記憶髏内。各FIFO記憶 嬗均具有一讀取指梯、一寫入指梯及一狀態旗梯,且具 有一控制電路用於初始化FIFO記憶«的讀取指梯、寫 入指梯及狀態旗梯,其中在一封閉系統¥,將該指標在 窝回記憶體及迴柵記憶體之間轉移。 依據本發明之一設計理念,本發明提供一控制電 本紙張尺度適用中國围家標率((:NS ) M規格(2丨〇χ297公嫠) - '—(v訂Λ (請先閲讀背面之注意事項再填寫本頁) 經濟部中央標率局員工消费合作社印製 A7 B7 五、發明説明(9 ) 路,當解碼視訊攔位需要由視訊格式器再顧示時,孩電 路可確定一鎖定信號,而使得该迴柵FIFO的寫入指褲 可維持猙態。 本發明提供一種管理一記億艘的方法,該記憶雔維 持解碼視訊資料以加以顯示。该方法之執行方式為:在 該空間分配解碼器及该時域解碼器中至少一解碼器 内,解碼MPEG的編碼資料,其中解碼的資料表示頰示 的一圖像;在一資料記憶體中儲存解碼的視訊資料;儲 存指梯於一寫回記憶體中資料記憶馥的位置内;從寫回 記憶馥中取回儲存的指梯;將接收的視訊寫入由取回指 梯指定之资料記憶體的位置中;將取回的指梯轉移至至 少一迴柵記憶馥中,其中儲存在第一迴柵記憶體中的指 梯對應第一視訊顯示棚位中解碼的視訊資料,且儲存在 第二迴柵記憶髖的指梯對應第二視訊顯示攔位中解碼 的視訊資料;從資料記偉《中的位置讀取資料,該資料 記愫濮係由.轉移的指梯指定;输出讀取的資料以加以顯 示;且將轉移指梯回復至包括迴栅記憶體中。 執行取回指梯且將接收視訊資料寫入的步骅,而同 時轉移取回的指標、讀取資料、,輸出讀取的資料,且 回復取回的指梯。 為了使讀者可更進一步了解本發明的上述及其他 未說明之目的,下文中的實施例說明實旋)例的細節,在 研讀實施例的說明文中,須一併參考附於文末之圈,其 中各圖為: 本紙張尺度適用中國國家榡嘩(CNS ) Λ4規格(210X297公釐) — ^ .- (¾訂 ^ •-S請先聞讀背面之注意事項再填寫本頁) 經濟部中央標準局貝工消费合作社印裝 A7 B7_ 五、發明説明(:10 ) 圖一係為用於說明本發明解碼器之mpeg "I"圖像 之餚存; si二係為用於說明本發明解碼器之mpeg "P"囷像 之儲存; 圈三係為用於說明本發明解碼器之MPEG "B"囷像 之儲存; 圖四係為習知技術中MPEG解碼器的方塊圖; 圖五係為示習知技術中MPEG及JPEG巨集方塊結 構; 圖六表示本發明之MPEG解碼器的視訊格式器中, 記憶饉管理器的巨集方塊圖; 圖七表示圖六之記憶饉管理器的電路示意圖; 圈八表示圈七所示之記憶濮管理器中,用於與一外 部記憶體介接之控制電路的電路示意圈; 圖九表示圖八所示之控制電路中,記憶體控制器 的詳細電路示意囷; 圈十係為圈九之電路所說明之回讀FIFO控制器 更詳細的電珞示意圈; 圖十一為圖九之電路所說明之寫回FIFO控制器 更詳細的電路示意圖;以及 圖十二為圖八電路中,一狀態機器更進一步的電 路示意圈。 ' 現在請參考圖六,一 VLSI MPEG解碼器的視訊格式 器38可接收線4〇上一給定的圖像,以作為兩解交錯攔 人請先閱讀背面之注意事項再填寫本頁) 本紙張尺度適用中國囷家標哗((:NS ) A*規格(2]〇χ297公釐) A7 B7 五、發明説明(11) 經濟部中央標準局貝工消费合作社印掣 I n n n n n n I IT n · (請先聞讀背面之注意事項再填寫本頁) 位踴像,或者作為交錯資料的單一i面明像。視訊格式 器38的說明請參考PAL ,因為此協此為現今使用的最 新圖像尺寸;但是此協定亦可與NTSC 一起操作,且適 於其他的視訊協定。以兩分段顯示(segment) 一視訊 畫面,或者稱為兩個襴位(field ),即一上攔位及一 下攔位。一 PAL圖像以一連續串列的巨集方塊到達線 40,且儲存在外部記憶饉42中,其中對於各巨集方塊 之列在兩方塊列中组織該圓像。資料可以一交錯之畫面 圖像形式(即45 X 36巨集方塊)到達,或者是如兩連續 的解交錯攔位圔像之形式(即2 X 45 X 18巨集方塊)到 達。一畫面巨集方塊包括來自各視訊顧示攔位的資料, 來自上欄位之兩個方塊、及來自下棚位的兩個方塊的资 料。一欄位®像巨集方塊包括4方塊的資料,該資料均 由相同的攔位產生。為了有效地操作外部記憶饉42, 各攔位儲存分割成記憶體切片(slice),其對應8 χ 8 方塊列。因此各切片為一個90方塊的.一列,各方塊均 由相同的視訊攔位產生。現在所使用的最大圈像尺寸為 45 X 36巨集方塊,其對應90 X 72之方塊。因此在外 部記憶《 42中的各攔位餚存需要配合資料的36方塊列 的資料。 依據本發明,由三個橫向耦合的FIFO管理外部記 憶體42,該FIFO的速接如圖六所示/須注意外部記 憶雄42最好為虛擬記憶II,但是在特定的應用中也可 以是一實質記憶體。 本紙張尺度適州中國國家標準(C'NS ) Λ4規格(2丨〇 X 297公釐) A7 B7 經濟部中央標準局貝工消費合作社印掣 五、發明説明(12 ) 外部記憶禮42包括兩排,其為第〇排bank〇44及第 一排此二排記憶禮可經記憶禮介面仙存取。 來自上襴位之资料餚存在第0排以吐。44中,來自下攔 位的資料儲存在第一排bankl46中。第一晶片上 (cmchip)FIF0 ,窝回FIF〇5〇將虛擬指梯(下文簡稱為 ••指梯’’)維持在外部記憶髖42的自由位置處。外部記憶 嬤42的自由位里因此可具有寫入其内的視訊資料。由 在位置52上的第一指標定址的第〇bank。排44之第一方 塊列54及在位置56處上的第二指梯定址的第一排 bankde中之第二方塊列58表現出外部記憶體42中儲 存的每一個36列巨集方塊。因此共有(36 χ 2)個指梯, 且因此寫回FIF〇5〇的深度如72所示。有必要使用排狀 的外部記憶艘42與記憶馥介面48相結合以在視訊格式 器38之記憶髖操作期間,使得頻寬達到最大。須要強 調的是寫回FIFO 50的長度在微處理器60的控制下係 為可程式化,因此可減少記憶體的操作β 其他兩個FIFO為"迴柵式FIFO "或"使用記憶體 FIFO ·_,其一個FIFO用於每一個視訊攔位。迴栅式 FIFO 62及迴柵式FIFO 64分別位於上視訊攔位及下視 訊襴位。前述FIFO維持對外部記憶髖42切片的指梯 值,在這些切片中已寫入視訊资料。每一個迴柵式FIFO 62及迴栅式FIFO 64維持達54個指梯(1.5 X 36方塊 列),其原因係為使指梯變得更加明顯。 在操作循環期間及存取外部記憶《之前,啟動窝回 1^—^-----nm丨-^ (請先閲讀背面之注意事項再填寫本頁), 1T. The size of the large paper is applicable to the Chinese National Standard (CNS) Λ4 specification (210X297 mm). Printed on the A7 B7 by the Consumer Cooperatives of the Central Standards Bureau of the Ministry of Economic Affairs. 5. The description of the invention (8). Interface, which reads and receives data from the data memory, and restores the retrieved finger ladder to point to the original nest memory | body. It is best to write back the memory «, the first back to the horror and the second Grid-backed memory is FIFO. In one embodiment, these can be configured in a statistical manner and can be implemented by a single RAM. According to another design concept of the present invention, a control circuit can be provided to dynamically form the yttrium. According to another design concept of the present invention, a write-back memory, a first back-gate memory, and a second back-gate memory can be realized as an addressable content memory. According to another design idea of the present invention, the nest can be realized. Memory back .. The skull, the first back-grid memory, and the second back-grid memory ship become a temporary register file. According to another design concept of the present invention, there is a plurality of rows of data memory. Design concept, the aforementioned nested back memory 馥, the first back grid memory 回 and the second back grid memory ship are used to store the finger ladder in the data 嬷 memory's mutual coupling FIFO memory skeleton. Each FIFO memory transmutation has a read The fetching ladder, a writing finger ladder and a status flag ladder, and a control circuit for initializing the FIFO memory «reading finger ladder, writing finger ladder and status flag ladder, of which in a closed system ¥, the The index is transferred between the fossa memory and the back-grid memory. According to one of the design concepts of the present invention, the present invention provides a control paper size that is applicable to the Chinese house standard rate ((: NS) M specification (2 丨 〇χ297). (Public order)-'— (vOrder Λ (please read the notes on the back before filling in this page) Printed by the Consumers' Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs A7 B7 V. Description of the invention (9) Road when decoding video block When the video formatter needs to revisit the instruction, the child circuit can determine a lock signal, so that the write fingers of the back-grid FIFO can maintain the state. The invention provides a method for managing a hundred million ships, and the memory is maintained. Decode video data for display. The method is implemented as follows: decoding the MPEG coded data in at least one of the space allocation decoder and the time domain decoder, wherein the decoded data represents an image shown on the cheek; stored in a data memory Decoded video data; store the finger in the position of the data memory in the write-back memory; retrieve the stored finger from the write-back memory; write the received video to the data memory specified by the retrieve finger The retrieved finger ladder is transferred to at least one back-grid memory, where the finger ladder stored in the first back-grid memory corresponds to the video data decoded in the first video display booth, and stored in The second back-grip memory ladder corresponds to the video data decoded in the second video display block; the data is read from the position in the data record Wei, which is specified by the transferred finger ladder; the output read The data is displayed for display; and the transfer finger is restored to the memory including the back grid. Perform the steps of retrieving the pointing ladder and writing the received video data, while transferring the retrieved indicators, reading the data, outputting the read data, and returning the retrieved pointing ladder. In order to allow the reader to further understand the above and other unexplained purposes of the present invention, the following examples explain the details of the actual examples. In the description of the study examples, reference must be made to the circle at the end of the text, where The drawings are as follows: This paper size applies to the Chinese National Standard (CNS) Λ4 specification (210X297 mm) — ^ .- (¾Order ^ • -S Please read the notes on the back before filling out this page) Central Standards of the Ministry of Economic Affairs A7 B7_ printed by the Bureau Cooperative Consumer Cooperative. V. Description of the invention (: 10) Figure 1 is a mpeg " I " image of the decoder used to illustrate the decoder of the present invention; the second series is used to illustrate the decoding of the present invention. The storage of mpeg " P " artifacts of the device; circle three is used to explain the storage of MPEG " B " artifacts of the decoder of the present invention; Figure 4 is a block diagram of the MPEG decoder in the conventional technology; The fifth series shows the block structure of MPEG and JPEG macros in the conventional technology; Figure 6 shows the macro block diagram of the memory card manager in the video formatter of the MPEG decoder of the present invention; Figure 7 shows the memory card management of Figure 6 Circuit diagram of the device; In the memory 濮 manager shown in circle 7, the schematic circuit of the control circuit used to interface with an external memory is shown in Figure 9. Figure 9 shows the detailed circuit diagram of the memory controller in the control circuit shown in Figure 8. Circle 10 is a more detailed schematic circuit diagram of the read-back FIFO controller described by the circuit of circle 9; Figure 11 is a more detailed circuit diagram of the write-back FIFO controller described by the circuit of FIG. 9; The second is a schematic circuit of a further state circuit in the circuit of FIG. 'Now please refer to Figure 6. A video formatter 38 of a VLSI MPEG decoder can receive a given image on line 40 as two de-interlacers. Please read the notes on the back before filling this page) The paper size is applicable to the Chinese standard ((: NS) A * size (2) 0297 mm) A7 B7 V. Description of the invention (11) Printed by the Bayer Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs I nnnnnn I IT n · (Please read the notes on the back before filling out this page) Bitmap images, or single i-side bright images as interlaced data. Please refer to PAL for the description of video formatter 38, because this is the latest image used today Size; however, this protocol can also operate with NTSC, and is suitable for other video protocols. It displays two video segments in two segments, or two fields, one upper stop and one lower Stop. A PAL image arrives at line 40 as a continuous series of macro blocks, and is stored in external memory 馑 42, where the circle image is organized in two square rows for each macro block row. The data can be An interlaced picture image format (ie 45 X 3 6 macro blocks), or arrive in the form of two consecutive de-interlaced blocking artifacts (ie, 2 X 45 X 18 macro blocks). A one-picture macro block includes data from each video viewing block, Data from the two boxes in the upper field and two boxes in the lower field. One field® like a macro box includes 4 blocks of data, all of which are generated by the same block. In order to effectively operate the outside Memory 馑 42, each block storage is divided into memory slices (corresponding to 8 x 8 square rows. Therefore, each slice is a 90 block. A row, each block is generated by the same video block. Now used The largest circle image size is 45 X 36 macro cubes, which corresponds to 90 X 72 cubes. Therefore, in the external memory, each of the stalls in 42 needs to store the data of 36 square rows of data. According to the present invention, three A horizontally coupled FIFO manages the external memory 42. The quick connection of the FIFO is shown in Figure 6. It should be noted that the external memory male 42 is preferably a virtual memory II, but it can also be a physical memory in specific applications. Paper size in Shizhou National Standard (C'NS) Λ4 Specification (2 丨 〇X 297 mm) A7 B7 Printed by the Central Standards Bureau of the Ministry of Economic Affairs, Shellfish Consumer Cooperatives V. Description of the Invention (12) The external memory ceremony 42 includes two rows, which are the first 〇 bank 〇44 and the first two rows of memory rites can be accessed through the memory ritual interface. The data from the upper position is stored in row 0 to spit. In 44, the data from the lower stop is stored in the first Row bankl46. The first chip (cmchip) FIF0 and nest back FIF050 maintain the virtual finger ladder (hereinafter referred to as “•• finger ladder”) at the free position of the external memory hip 42. The free memory of the external memory 嬷 42 can therefore have video data written in it. The 0th bank addressed by the first indicator at position 52. The first square block row 54 of row 44 and the second square row 58 of the first row bankde addressed by the second finger at position 56 represent each of the 36-row macro blocks stored in external memory 42. Therefore, there are (36 χ 2) finger ladders, and therefore the depth of writing back FIF050 is shown as 72. It is necessary to use a row-shaped external memory boat 42 in combination with a memory interface 48 to maximize the bandwidth during the memory hip operation of the video formatter 38. It should be emphasized that the length of the write-back FIFO 50 is programmable under the control of the microprocessor 60, so that the operation of the memory can be reduced. The other two FIFOs are " back-grid FIFO " or " use memory Body FIFO · _, one of its FIFOs is used for each video block. The cascading FIFO 62 and the cascading FIFO 64 are respectively located in the upper video block and the lower video bit. The aforementioned FIFO maintains the finger ladder value for the hip 42 slices of external memory, and video data has been written in these slices. Each back-grid FIFO 62 and back-grid FIFO 64 maintains up to 54 finger ladders (1.5 x 36 square columns). The reason is to make the finger ladders more obvious. During the operation cycle and before accessing the external memory, start to nest 1 ^ — ^ ----- nm 丨-^ (Please read the precautions on the back before filling this page)
-1T 本紙浪尺度通用中國國家標隼((:NS ) Λ4規格(210.X297公釐) -+3- Α7-1T The standard of the paper wave is the Chinese national standard ((: NS) Λ4 specification (210.X297 mm)-+ 3- Α7
五、發明説明(13 ) FIFO 5〇.,或者是將指梯載入外部記億饉42的自由切片 中。如果所有的72個切片均使用予圖像餚存,則寫回V. Description of the invention (13) FIFO 50. Or load the finger ladder into the free slice of the external memory 42. If all 72 slices are used for image storage, write back
I FIFO 50載入72指梯。清除迴柵式62、64,且 因此該迴柵式FIFO内沒有任何資料,表示沒有任何資 料寫入以作為顯示之用。 配罝為狀態機器的窝回程序66開始時從寫回fifo 50中取回兩個指梯68,7〇,且然後對記憶體介面“ 提出一要求以將到達困像的前兩個方塊列错存在位置 72,74中的外部記憶體42,這些位置由指梯68、7〇 所指示。當已館存兩方塊列時,寫回程序66將兩指樑 68、7〇轉移至迴柵式FIFO62、64中之一項或兩項, 其程序如下: 情沉一:在位置72、74中的視訊資料為一交錯畫 面圖像,且一方塊列包括上攔位资料,且另一方塊列包 括下攔位資料。寫回程序砧將指梯68轉移至上襴位迴 柵式FIFO 62的位置Μ處,且將指梯?〇轉移至下襴位 迴柵式FIFO 64的位置78處。 情沉二:在位置72、74的視訊資料表示一襴位国 像’且兩方塊列表示用於相同棚位的資料。如果棚位為 上攔位’則將兩指梯均在位置76及位置8〇中置於上棚 位迴柵式FIFO 62。如果攔位為下襴位的話,則進行類 似的處理,唯其存取在下欄位迴柵式FIF〇 64。 與寫回程序6β平行處理的程序為一迴柵程序以, 其應用類似如一狀態機器的作法實施。此程序從迴柵式 本紙張尺度適用中國國家標準(CNS ) Λ4規格(210X297公釐) I:—Γ---ίΛ.7 (請先聞讀背面之注^¢.項再填寫本頁) 訂 J「r- 經濟部中央標隼局員工消費合作社印裝 經濟部中央榡隼局貝工消费合作社印褽 A7 B7 五、發明説明(14) — FIFO 62,64中之一項取回一指梯。迴柵程序82在某 一時間於對應一視訊攔位的指梯上操作’且持續存取資 料攔位,直到整個棚位均從外部記憶體42中取出為止。 假設顧示時需要一上棚位,則從迴柵式FIFO 62中的位 置84處取回一指梯。此取回的指梯用於從外部記憶體 42中取出一方塊列。在方塊列取出後,迴栅程序82將 取回的指梯從位置84轉移至寫回fifo 50的位置86。 然後迴柵程序82從迴柵式FIFO 62的位置88處取回下 一指梯,且以類似的方式持續處理,直到從外部記憶避 42中取出整個上畫面為止。經由記憶體介面48存取的 視訊资料,且在線90上輸出。 寫回FIFO 50及迴柵式FIFO 62,64互耦合,其中 如上所述一項之輪出反饋入另一項之输入。该系統被封 閉,其中在任何時間中所有三個FIFO之指梯的總合為 開始時進入寫回FIFO 50之指梯數目。其原因為館存在 FIFO中的指梯提供内建速率控制,且反抵觸(ant卜 clash)功能。如果寫回FIFO so變成空白時,係因為所 有可使用的記憶逋切片均用於保持資料之故。然後窝回 程序66無法取回更多的资料,而停止動作,直到從寫 回FIFO 50的指梯變成可用為止。同樣地,當迴概式 FIFO 62,64已取出所有的指梯時,迴栅程序寫回82 停止動作。 有可能依據由解碼器處理之特定的視訊協定或者 是茱些協定的結合而在單一 RAM中實施窝回fIF〇 5〇及 本紙張尺度通用中國國家標準(rNS ) Λ4規格< 210X297公釐) I — I-:-----οί----ΐτ------f (請先聞讀背面之注意事項再填寫本頁) 經濟部中央標隼局貝工消費合作社印製 A7 __B7_ 五、發明説明(15 ) 迴柵式FIFO 62,64,且依據統計方式或動態方式配 置。在較佳實施例中,在寫回FIFO 50及迴柵式FIFO 62、64中需提供共180個位置,且為了方便起見,可 用一 192位置的RAM實施。因為外部記憶想42的存取 必需一段相當長的時間,所以如此架構可得到令人滿意 的結果,藉此使得寫回FIFO 50及迴柵式FIFO 62需要 的頻寬相對降低。由控制微處理器60完成動態配置。 經由調整讀取及寫入指標及讀取不寫入旗梯的順 序可使得FIFO顯示為空白者,而每個B圖像序列開始 時,啟動寫回FIFO 50及迴柵式FIFO 62 、64。當B 圖像到達時,載入FIFO 50、62、64且以非決定或方 式卸載。當完成B圖像序列,且視訊格式器38移動到P 圖像的處理時,FIFO凍結在其最後狀態,且當B圖像 的下一序列到達時,可重載入或卸載。但是在較佳實施 例中,在每一個B圖像序列開始時,選定重新初始化寫 回FIFO 50及迴柵式FIFO 62 、64,以對無法預測的 錯誤提供更多的保護。 有可能需要顯示一攔位多次,例如在從24Hz移動 圖像影片轉換為30Hz的NTSC之畫面速率轉換期間(文 中稱為"3 :’2 降頻操作"(3 : 2pulldownoperation))。 迴柵式FIFO 62、64實施讀取及寫入指梯,且在攔位 回復的開始時儲存FIFO讀取指梯的複製。當從外部記 億體42中取出整個攔位時,可使用儲存的讀取指梯以 重設FIFO讀取指梯回到攔位開始處,藉此使攔位可在 1_^---^丨--- -- (請先閲讀背面之注意事項再填寫本頁) 訂 本紙張尺度適州中國國家標哗(CNS ) Λ4規格(210X297公釐〉 經濟部中央標準局貝工消费合作社印繁 A7 -----------Β7 五、發明説明(16 ) 第二次存取。迴柵程序82必煩檢驗到在虚擬指梯並未 從迴柵式FIFO 62、64傳送到窝回FIFO 50的倩況下, 重複類示方會發生。只有當最後一次存取攔位發生時, 才將指梯轉移到寫回FIFO 50。 以至少7位元的資料配置FIFO 62,64,該7位元 資料為編碼之72方塊列指梯所需要的最大數目。在較 佳實施例中,為了方便起見本發明使用8位元的ram。 如果由視訊格式器38只接收單獨的畫面圖像序列 或只接收單獨的攔位圖像序列,則各個迴柵式FIFO 62、64可實施每一 36個位置。但是,實際上另外一半 的攔位儲存係用以防止寫回程序66的記憶體溢位或閉 置容量過多。此係因為依據MPEG協定,視訊格式器38 必需妥善處理與各攔位圖像不規則混合的畫面圈像。而 且,實際上迴柵式程序82可藉由需要儲存一棚位(一 半畫面資料)所需要的一段時間,下文稱為"攔位時間 ",停止或延遲寫回程序66。 導致最大記憶體負載的情沉為B圖像的下一序列: 前一攔位圖像及現在的攔位圖像。在此狀態下,因為寫 回程序66尚未在前一攔位B圈像上完成其操作,對於 現在畫面圈像中個棚位中的一個攔位必須在每一個 FIFO 62、64中提供儲存空間。 假設不論一畫面圈像或雙盡面圈像:整個視訊圖像 已解碼且儲存在外部記憶體42中,而不必取得任何資 料以加以顯示。在此狀態下,寫回FIFO 50為空白,且 本紙張尺度適用中國國家標準(C:NS ) Λ4規格(210 X 29"7公釐) I:---^----^--(ΊI-^-----訂------Λ (請先閱讀背面之注意事項再填寫本頁) 五、 發明説明( 17 A7 B7 經濟部中央榡率局負工消費合作社印製 (請先閲讀背面之注意事項再填寫本頁) 訂 各個迴柵式FIFO 62、64均包含36個指梯。現在系统 仍鎖住,直到指示迴柵程序82可有效顯示一圈像為止。 一但有效顯示圖像的程序開始後,藉由迴柵程序82及 轉移到寫回FIFO 5〇的指梯,使得在迴柵式FIFO 62、 64中的記憶體切片釋放。更進一步假設使用上攔位迴柵 式FIFO 62,使得迴柵程序82顯示現在攔位圈像的上 攔位,且將寫入的下一圖像為一畫面圈像。從現在圖像 的上欄位中取出资料,使得36個方塊列釋放出來下來, 以供寫回程序66中使用《»窝回程序66及迴柵使用82 以約略相同的速率操作,因此可將這兩個程序有效地耦 合在一起。因此,在儲存整個圖像的時間時,可顯示該 兩襴位。但是因為欄位躅像之取得以平行的方式儲存一 畫面圖像’所以對於下一畫面圈像的上方攔位需要18 個方塊列,而對於下攔位則也需要18個方塊列。因為 由迴柵程序82使得上摒位迴栅式FIFO 62空白,所以 有足夠的空間使得寫回程序66中可與相g於下一畫面 圖像之上方攔位相關的再使用指梯放回迴柵式FIF〇 62 中°但是因為尚未存取下方攔位迴柵式FIF0 64,且已 包括36個指梯以用於各個現在攔位國像的下方攔位, 因此必需在迴柵式FIF〇 64中提供足夠的空間以儲存其 中的18個指梯,此18個指梯在其解碼下一畫面闽像 時’將在寫回程序66的控制下到埤。否則寫回程序66 將不動作,且最後整個MPEG解碼器均鑌上。因此,為 提供最壞情沉之所有可能的组合,Fif〇 62 、64需要 經濟部中央標準局員工消费合作社.印褽 A7 --------67__ 五、發明説明(18 ) " ~ 二:-— 可儲存54個指梯(54=36+18)。 在梯準的27佰萬赫茲的顧示速率下,由一視訊時 序產生器(圈中沒有顯示)驅動迴柵程序82。寫回程序 66以大約相同的速率操作,且有效地將其本身與迴栅程 序82耦合,使得指梯以其可類示的最快速率寫入寫回 FIFO 5〇及FIFO 62、64。提供上述最壤情況的解決方 法暗示在任何時間中,寫回FIF〇均不會超過2/3。 現在請參考圖七,八及九,其中顯示本發明較佳 實施例的示意圖,其中本發明實施在一積體電路中β在 192Χ 8位元RAM94中配置上述三個互耦合打印。方塊 96包括用於存取RAM94的控制邏輯,且在圖八中更詳 細地顯示出來。記憶髏控制器98如上所述在RAM94中 FIFO内的存取位置。方塊1〇〇及方塊1〇2為狀態機器 用於上述的分別地窝回程序及迴柵程序。 圖九中更進一步顯示記憶體控制器98的結構。解 碼邏辑網路1〇4從狀態機器100,102中接收其输入, 且更進一步解碼輪入资訊。電路106包含兩雙位元計數 器108,此計數器產生一四狀態輸出11〇,其為用於RAM 控制器的狀態機器,且用於判定由寫回及迴柵程序間之 存取要求。因此記憶體控制器98由寫回程序可執行讀 取及寫入作業,且依據输出110的狀態由迴柵程序所執 行讀取及寫入作業。由寫回或迴柵程序所進行的實陳記 憶體存取因此必需等待輸出110的適當狀態。對於寫回 FIFO妁FIFO控制器112在兩個相同的電路(用於上及 本紙張尺度適用中國國家標準(C’NS ) A4規格(2丨0'〆297公釐) * νλ .-· 丨^;-----— (請先閱讀背面之注意事項再填寫本頁) 訂 .Λ... 經濟部中央樣準局貝工消費会作社印袈 A7 B7 五、發明説明(19 ) 一'"一~ 下,位迴柵式FIFO的FIF〇控制器U4 ' lie)中提供 用於3個各別FIF0的指梯之位址表示實例。因為控制 器需要提供72位址,一 7位元匯流排連接到FIFO控制 器112。在FIFO控制器114、116的例子中,連接至 其上的匯流排118及匯流排120各具有6個位元,係因 為該控制器只需要在迴柵式FIFO中定址54個位置。多 工電路122解碼記愫體控制器98的狀態•及正要求之 該記憶體存取的型式。然後使用來自FIFO控制器 112 、114及116中之一控制器的相關指梯用於存取 RAM94(參見圈七)。 圖十中顯示回讀FIFO控制器II4、116的結構。 兩個6位元暫存器I24、Ι2β產生各別的寫入及讀取指 梯。與暫存器I26相聯的邏辑包括一增量器128、一計 數器13〇及一反及閘132,用於當讀取指梯到達其最後 之數值時,清除暫存器I26 »相聯在暫存器136的遇輯 與上述暫存器類似並具有相同功能,因此為了簡化起 見*在此不赘述其細節。使用計數器134、130以配置 迴柵式FIFO62、64之一的尺寸及存取之控制(參見圖 六)〇 在某些情沉下,使用附加暫存器1祁以取回且維持 暫存器126的數值,下文將對此暫存器簡短地加以說 明。在電珞中出現兩比較器I38、U0以比較保留在暫 存器124、126、136中的數值。比較器138用於比較 兩個計數暫存器I24、的輪出值。比較器140將在 本紙張尺度適用中國國家標皁(CNS ) Λ4規格(2〗〇Χ297公釐) (請先閲讀背面之注意事項再填寫本頁) I,^策 訂------Λ m —I- - ...... 暫存器136内保留的讀取指梯之取回或維持數值與由暫 存器I24產生之FIFO寫入指梯的輸出作比較。比較器 I38的輸出與讀取非窝入旗梯共用,其實施如一單一之 正反器142。使用閘144、U6產生兩個狀態信號148、 15〇 ,指示FIFO為全滿或空白。由邏辑網路14〇使用 這些狀態信號以控制FIFO的存取方式,且當FIF〇全 滿時防止窝入操作,而當FIFO空白時,防止讀取操作。 比較器14〇的輸出用於產生一"鎖住"信號Nl〇ck 1S2。當一攔位圈像顯示重複時,使用該信號nl〇(:k152 以控制對迴柵式FIFO的存取。此事件發生於以3 : 2 之下拉操作或畫面速率轉換執行解碼器的情況·此時需 要有效地經由顯示一额外的攔位以標示出時間。亦可不 需要一次顯示視訊藺像的兩攔位,而以在兩個攔位均已 顯示之後,再顯示且重複第一攔位方式。例如顯示第一 個上方攔位,然後顯示下攔位,且然後再一次顯示上襴 位。在此情沉下,有必要保留外部記憶髖的内容,以再 顯示多個視訊攔位中的一棚位。為了使得在外部記悚髏 中的资料沒有固定,且一旦當顯示之後則為過寫入’鎖 住信號NLOCKI52凍結迴柵式FIF0的寫入指梯,使得寫 入指梯在顯示時可重新載入。當再顧示第一欄位的時間 時’在f存器I36中抓取的數值載入暫存器I26中,此 暫存器的功能為將讀取指梯重設回第一襴位的開始 處,使得其可進行第二次的存取。邏辑網路1〇4編譯信 號NL0CK 152為一指示,其指示保留在暫存器I24中的 經濟部中央標隼局負工消费合作社印製 A7 B7 五、發明説I明(21) 寫入指梯與在暫存器1犯中取回的讀取指梯相同,且如 果將再顯示該攔位,則須要封鎖額外FIFO窝入操作· 以防止‘第一資料棚位被過窝入。因此在外部記憶饉中保 留第一棚位资料,直到第二次再類示為止。 現在請參考圖六,八及九,與信號NL0CK 152結 合操作信號NWSINK154»在3: 2下拉或龛面速率轉換 下致動信號NWSINK 154,且如果第一攔位再度顯示時, 在第一攔位顯示期間,確定該信號。信號NWSINK 154 禁止對寫回FIFO控制器112寫入指令,該FIFO控制 器係從迴栅程序狀態器102中發出。因為當顯示第一圖 像攔位時,在外部記憶《中的资料切片必需不固定且回 到窝回FIFO 50中,所以有必要進行此項動作。在第二 -* 攔位顯示期間,或者是第一攔位再顯示期間,信號 NWSINK 154不動作,因此允許狀態機1〇2造成對窝回 FIFO 50的窝入動作,使得指向空白記憶體切片的指梯 可置於其内。 圖十一說明寫回FIFO控制器112的結構,該寫入 FIFO控制器極近似讀回FIFO控制器,唯此控制器沒有 其他附加的|存器可抓取讀取指梯以使得在欄位再顯 示上。當對於一序列的第一 B型圖像先存取該窝回FIF〇 時,控制正反器1S6簡化寫回搡作。設定正反器156, 且在一連績串列B®像中各第一個B圖像顯示期間,該 正反器的輪出致動。此強迫狀態機器邏輯網路1〇4(參見 圖九)參考FIFO的實瞭位址,而非保留在該位址之外 ΙΊ JI — — IQ!----訂-------ή- (請先聞讀背面之注意事項再填寫本頁) 本紙張尺度制中國國家縣(「ns ) Λ4%* ( 2數297公釐) A7 B7 經濟部中央標準局負工消费合作社印製 五、發明説明(22) 部記憶饉的内容。其妖應為丧得記憶體控制器98預先 載入含圖像切片序列的外部記憶髖。在控制信號132中 設定正反器156 ·如此可不必使用一可清除外部ram的 狀態機器,且然後將初始虚擬指梯先載入其内,以用於 圖像切片序列。在第一個B圖像以顯示後,重設正反器 I56,且只有在一新的B圈像序·列開始時,才再度設定。 另一控制正反器158發展出一控制信號RASENB 160, 此信號為寫回程序所使用以使得該寫回程序與迴栅程 序同步。在B圖像序列開始前,設定正反器158,且寫 回FIFO 50(參見圖六)第一次空白時,重設該正反器。 正反器158的输出,控制信號FIRSTB 162措示何時應 開始顯示B囷像。其確定何時迴柵程序需要將寫回程序 延後一攔位時間(或一半畫面儲存)。此項延遲最適於速 度的狀態操作。 圖十二示控制RAM94之存取的狀態機164(參見圈 七)。該狀態機包含正反器166、168、170及172, 及相關的邏辑。信號174、信號176及信號178經由迴 柵程序及寫回程序而致動讀取要求及窝入要求。 在用於管理指梯的VLSI配里中,如上所述,FIFO 記憶雄可以相當良好的方式運作。但是,有可能使用 FIFO外的其他記憶艘管理配置以實現3個互耦合的記 憶體,此類設計並不偏離本發明的精神」例如指梯可使 用hash表、記憶馥位置速接表、快取記憶體、及其他 熟習本技術者所熟知的直接定址型式,將指梯窝入三個 I.——rI — — IQ! (請先閲讀背面之注意事項再填寫本頁) ,ιτ 本紙張尺度適用中國國家標率U:NS ) Λ4現格(210X297公釐) A7 B7 五、發明説明(23 ) 互耦合的記憶饉中,從其中取回資料。其他的措棵記愫 髖方法係依據下列事實:在寫回程序中、迴柵程序取回 指標的1順基本上不必與寫入迴柵記憶體的順序相同,只 要維持指梯的封閉系统即可。 現在請參考圈六,從電路功率的角度上考量,窝回 FIFO 50及迴栅式FlF0 62 、飞4最好以單一的埠狀態 RAM陣列實施,且因為其需要較小的矽區域β也可以使 用暫存器檔,對於該3個FIFO也可以使用内容可定址 記憶髖。 雖然文中已應較佳實施例說明本發明,但蝴熟本技 術者需了解可對上述實施例加以更改及變更,而不偏離 本發明的精神及觀點。 (請先閱讀背面之注意事項再填寫本頁} —ο衣 ----訂 .0 經濟部中央標準局貝工消費合作社印製 本紙张尺度通扣中國國家榡卒((:NS ) Λ4規格(2)0X 297公釐)I FIFO 50 loads 72 finger ladders. The back-grid type 62 and 64 are cleared, and therefore there is no data in the back-grid FIFO, which means that no data is written for display. The nesting program 66, which is a state machine, starts by retrieving two finger ladders 68, 70 from the write-back fifo 50, and then makes a request to the memory interface "to reach the first two blocks of the sleepy image. There are external memories 42 in positions 72, 74, which are indicated by finger ladders 68 and 70. When two square columns have been stored, write back to program 66 to transfer the two finger beams 68 and 70 to the back grill One or two of the format FIFO62, 64, the procedure is as follows: Love Shen 1: The video data in positions 72, 74 is an interlaced picture image, and a square row includes the upper stop data, and the other square The column includes the bottom stop information. The write back program anvil moves the finger ladder 68 to the position M of the upper-position back-grid FIFO 62, and moves the finger ladder to the position 78 of the lower-position back-grid FIFO 64. Sentiment 2: The video data at positions 72 and 74 indicates a country image and two square rows indicate data for the same booth. If the booth is an upper stop, the two-finger ladders are at positions 76 and Position 80 is placed in the upper shelf back-grid FIFO 62. If the stop is the lower position, a similar process is performed. However, its access is in the lower column back-grid FIF 064. The program processed in parallel with the write-back program 6β is a back-grid program, and its application is similar to the implementation of a state machine. This program is based on the back-grid paper standard Applicable to China National Standard (CNS) Λ4 specification (210X297 mm) I: —Γ --- ίΛ.7 (Please read the note on the back ^ ¢. Before filling this page) Order J "r- Central Ministry of Economic Affairs Standard Printed by the Consumers Cooperative of the Bureau of Economic Affairs of the People ’s Republic of China, printed by the Central Bureau of the Ministry of Economy of the People ’s Republic of China. A7 B7 V. Description of Invention (14)-One of FIFO 62, 64 retrieves a finger ladder. Time is operated on the finger ladder corresponding to a video block, and the data block is continuously accessed until the entire rack is removed from the external memory 42. Assuming an upper rack is required during the show, the back-floor FIFO is used. A finger ladder is retrieved at position 84 in 62. This retrieved finger ladder is used to remove a square row from the external memory 42. After the square row is removed, the grid return program 82 removes the retrieved finger ladder from position 84 Move to position 86 where write-back to fifo 50. Then the back-flip program 82 from the back-flop FIFO 62 Set the next finger ladder at 88, and continue processing in a similar manner until the entire upper screen is taken from the external memory 42. The video data accessed through the memory interface 48 is output on line 90. Write back FIFO 50 and back-grid FIFO 62, 64 are mutually coupled, in which the output of one wheel is fed back into the input of the other as described above. The system is closed, in which the sum of all three FIFO finger ladders at any time It is the number of finger ladders written into the FIFO 50 at the beginning. The reason is that the finger ladders stored in the FIFO provide built-in rate control and anti-clash function. If the write-back FIFO so becomes blank, it is because all available memory / slices are used to hold data. Then, the nesting program 66 cannot retrieve any more data, and stops the operation until the ladder from writing back to the FIFO 50 becomes available. Similarly, when the back-to-back FIFO 62, 64 has taken out all the finger ladders, the back-to-gate program writes back 82 to stop the operation. It is possible to implement nested fIF050 in a single RAM based on a specific video protocol processed by the decoder or a combination of these protocols, and this paper size is the General Chinese National Standard (rNS) Λ4 Specification < 210X297 mm) I — I-: ----- οί ---- ΐτ ------ f (Please read the notes on the back before filling out this page) Printed by A7, Shellfish Consumer Cooperative, Central Bureau of Standards, Ministry of Economic Affairs __B7_ V. Description of the invention (15) The back-grid FIFOs 62, 64 are configured in a statistical or dynamic manner. In the preferred embodiment, a total of 180 locations need to be provided in the write-back FIFO 50 and the back-grid FIFO 62, 64, and for convenience, a 192-position RAM can be used for implementation. Since the access to the external memory 42 requires a considerable period of time, such an architecture can obtain satisfactory results, thereby reducing the bandwidth required for writing back to the FIFO 50 and the gated-back FIFO 62 relatively. The dynamic configuration is performed by the control microprocessor 60. By adjusting the order of reading and writing indicators and reading without writing the flag ladder, the FIFO can be displayed as blank, and at the beginning of each B image sequence, write back to FIFO 50 and back to grid FIFO 62, 64 are started. When the B-picture arrives, it is loaded into the FIFO 50, 62, 64 and unloaded in an undecided or unloaded manner. When the B picture sequence is completed and the video formatter 38 moves to the processing of the P picture, the FIFO is frozen in its final state, and can be reloaded or unloaded when the next sequence of the B picture arrives. However, in the preferred embodiment, at the beginning of each B-picture sequence, re-initialization of the write-back FIFO 50 and the back-grid FIFOs 62, 64 is selected to provide more protection against unpredictable errors. It may be necessary to display a block multiple times, for example during a frame rate conversion from a 24Hz moving image film to a 30Hz NTSC (herein referred to as " 3: ' 2 down-frequency operation " (3: 2pulldownoperation)). The back-grid FIFOs 62 and 64 implement reading and writing of finger ladders, and store a copy of the FIFO reading finger ladder at the beginning of the stop reply. When taking out the entire stop from the external memory body 42, the stored reading finger ladder can be used to reset the FIFO reading finger ladder back to the beginning of the stop, thereby making the stop at 1 _ ^ --- ^丨 ----(Please read the notes on the back before filling in this page) The size of the paper is Shizhou China National Standard (CNS) Λ4 Specification (210X297 mm) Central Standards Bureau of the Ministry of Economic Affairs A7 ----------- B7 V. Description of the invention (16) The second access. The backtracking program 82 has to check that the virtual ladder has not been transferred from the backtracking FIFO 62, 64 to Under the condition of returning to FIFO 50, repeated indications will occur. Only when the last access block occurs, the finger ladder is transferred to write back to FIFO 50. Configure FIFO 62, 64 with at least 7 bits of data, The 7-bit data is the maximum number required for the coded 72-block column ladder. In a preferred embodiment, the present invention uses an 8-bit ram for convenience. If the video formatter 38 receives only a single picture Like a sequence of sequences or only a single sequence of stop images, each back-grid FIFO 62, 64 can implement each of 36 locations. Yes, in fact, the other half of the stall storage is used to prevent the memory overflow or overcapacity of the write-back program 66. This is because according to the MPEG protocol, the video formatter 38 must properly handle Regularly mixed picture circle images. In fact, the back-grid program 82 can stop or delay writing by storing the time required for a booth (half of the picture data), hereinafter referred to as " stop time ". Go back to program 66. The emotion that caused the maximum memory load is the next sequence of B images: the previous stop image and the current stop image. In this state, because writing back to program 66 has not been in the previous stop To complete its operation on the B-circle image, for one stop in one booth in the current circle image, storage space must be provided in each of the FIFOs 62 and 64. Assume that regardless of a frame circle image or a double-sided circle image: the entire The video image has been decoded and stored in the external memory 42 without having to acquire any data for display. In this state, the write back to the FIFO 50 is blank, and the paper size applies the Chinese National Standard (C: NS) Λ4 specification ( 210 X 29 " 7 mm) I: --- ^ ---- ^-(ΊI-^ ----- Order ------ Λ (Please read the precautions on the back before filling in this page ) 5. Description of the invention (17 A7 B7 Printed by the Central Government Bureau of the Ministry of Economic Affairs and Consumer Cooperatives (please read the precautions on the back before filling out this page). Order each back-grid FIFO 62, 64 including 36 finger ladders. The system is still locked until the traverse program 82 is instructed to effectively display a circle of images. Once the program that effectively displays the image is started, the traverse program 82 and the finger ladder transferred to write back to the FIFO 50 are used to make The memory slices in the back-grid FIFOs 62, 64 are released. It is further assumed that the upper-block back-grid FIFO 62 is used, so that the back-block program 82 displays the upper block of the current block circle image, and the next image to be written is a frame circle image. Take out the data from the upper field of the current image, so that 36 squares can be released for writing back to the program 66 using "» Return program 66 and back to gate 82 to operate at about the same rate, so you can These two programs are effectively coupled together. Therefore, these two positions can be displayed when the entire image is stored. But because the field image is obtained in parallel to store a frame image ’, 18 blocks are required for the upper block of the next frame circle image, and 18 blocks are required for the lower block. Because the back-grid program FIFO 62 is left blank by the back-grip program 82, there is enough space for the write-back program 66 to be replaced with a finger ladder that is related to the block above the next screen image. Back-fencing FIF〇62 Medium ° But because the lower back-fencing FIF0 64 has not been accessed, and 36 finger ladders have been included for the bottom-stop of each of the current standing country images, it must be in the back-fencing FIF 〇64 provides enough space to store the 18 finger ladders, which will be under the control of writing back to the program 66 when they decode the next image. Otherwise, writing back to the program 66 will not work, and finally the entire MPEG decoder is loaded. Therefore, in order to provide all possible combinations of the worst sentiment, Fif〇62, 64 need the Consumer Cooperatives of the Central Standards Bureau of the Ministry of Economic Affairs. Seal A7 -------- 67__ V. Description of Invention (18) " ~ Two: -— 54 finger ladders can be stored (54 = 36 + 18). At a step-up speed of 27 million Hz, a video timing generator (not shown in the circle) drives the backtracking program 82. The write-back program 66 operates at about the same rate and effectively couples itself with the back-gate program 82, so that the finger ladder writes to the write-back FIFO 50 and FIFO 62, 64 at the fastest rate that it can dictate. Providing a solution to the above-mentioned worst-case scenario implies that at any time, writing back FIF0 will not exceed 2/3. Please refer to Figs. 7, 8 and 9 for a schematic diagram of a preferred embodiment of the present invention, in which the present invention is implemented in an integrated circuit. Β is configured in the 192 × 8-bit RAM 94 with the above three mutually coupled printings. Block 96 includes control logic for accessing the RAM 94 and is shown in more detail in FIG. The memory controller 98 accesses the FIFO in the RAM 94 as described above. Blocks 100 and 102 are state machines for the above-mentioned separate nesting procedures and backtracking procedures. The structure of the memory controller 98 is further shown in FIG. The decoding logic network 104 receives its input from the state machines 100, 102, and further decodes the turn information. The circuit 106 includes two double-bit counters 108. This counter generates a four-state output 11 which is a state machine for the RAM controller and is used to determine the access requirements between the write-back and back-grid programs. Therefore, the memory controller 98 can execute the read and write operations by the write back program, and perform the read and write operations by the gate back program according to the state of the output 110. The actual memory accesses performed by the write-back or gate-back routine must therefore wait for the appropriate state of the output 110. For writing back to the FIFO, the FIFO controller 112 is in the same two circuits (for the above and this paper size, the Chinese National Standard (C'NS) A4 specification (2 丨 0'〆297mm) * νλ .- · 丨^; -----— (Please read the notes on the back before filling in this page) Order. Λ ... A7 B7, Seal of the Shellfish Consumption Society, Ministry of Economic Affairs, China V. Description of Invention (19) One "" one ~ next, the FIF controller U4 'lie) of the bit-backed FIFO provides an example of the address expression of three finger ladders for each FIF0. Because the controller needs to provide 72 addresses, a 7-bit bus is connected to the FIFO controller 112. In the example of the FIFO controllers 114 and 116, the bus 118 and the bus 120 connected to it each have 6 bits because the controller only needs to address 54 locations in the back-grid FIFO. The multiplexer circuit 122 decodes the state of the memory controller 98 and the type of memory access it is requesting. The associated fingers from one of the FIFO controllers 112, 114, and 116 are then used to access the RAM 94 (see circle 7). Figure 10 shows the structure of the readback FIFO controller II4, 116. Two 6-bit registers I24, I2β generate separate write and read pointers. The logic associated with the register I26 includes an incrementer 128, a counter 13 and a reverse gate 132, which are used to clear the register I26 when the reading finger reaches its last value. The encounters in the register 136 are similar to the aforementioned register and have the same functions, so for the sake of simplicity, the details are not described here. Use counters 134, 130 to configure the size and access control of one of the back-grid FIFOs 62, 64 (see Figure 6). In some cases, use an additional register 1 to retrieve and maintain the register. The value of 126 will be briefly explained below. Two comparators I38, U0 appear in the battery to compare the values held in the registers 124, 126, 136. The comparator 138 is used to compare the rotation values of the two counting registers I24 ,. The comparator 140 will apply the Chinese National Standard Soap (CNS) Λ4 specification (2〗 〇297 × 297 mm) on this paper scale (please read the precautions on the back before filling this page) I, ^ Order Λ m —I--... The value of the retrieved or maintained read finger ladder stored in the register 136 is compared with the output of the FIFO write finger ladder generated by the register I24. The output of the comparator I38 is shared with the read non-recessed flag ladder, and it is implemented as a single flip-flop 142. Using the gates 144 and U6, two status signals 148 and 15 are generated, indicating that the FIFO is full or blank. The logic network 14 uses these status signals to control the FIFO access mode, and prevents nesting operations when FIF0 is full, and prevents read operations when the FIFO is blank. The output of the comparator 14 is used to generate a " lock " signal NlOck 1S2. When a stop circle image is displayed repeatedly, use the signal n10 (: k152 to control access to the back-grid FIFO. This event occurs when the decoder is executed with a 3: 2 pull-down operation or frame rate conversion. At this time, it is necessary to effectively indicate the time by displaying an additional stop. It is also not necessary to display the two stops of the video image at a time, but to display and repeat the first stop after both stops have been displayed. Method. For example, the first upper block is displayed, then the lower block is displayed, and then the upper block is displayed again. In this case, it is necessary to retain the contents of the external memory hip to display multiple video blocks. In order to make the data in the external horror is not fixed, and once it is displayed, it will be over-written. The lock signal NLOCKI52 freezes the writing finger ladder of the grid FIF0, so that the writing finger ladder It can be reloaded when displayed. When the time in the first column is displayed again, the value captured in the f register I36 is loaded into the register I26. The function of this register is to reload the reading fingers. Set back to the beginning of the first niche so that it can be The second access is performed. The logical network 104 encodes the signal NL0CK 152 as an instruction, which indicates that it is retained in the temporary register I24, printed by A7, B7, and Consumer Cooperatives of the Central Bureau of Economic Affairs. V. Invention It is said that (21) the writing finger ladder is the same as the reading finger ladder retrieved in the register 1 offender, and if the stop will be displayed again, the additional FIFO nesting operation needs to be blocked to prevent the 'first The data booth has been nested. Therefore, the data of the first booth is retained in the external memory card until it is re-displayed for the second time. Now please refer to Figures 6, 8 and 9 in conjunction with the signal NL0CK 152 to operate the signal NWSINK154 »in 3: NWSINK 154 is actuated under 2 pull-down or surface rate conversion, and if the first stop is displayed again, the signal is determined during the first stop display. Signal NWSINK 154 prohibits writing to the write-back FIFO controller 112 The FIFO controller is issued from the backtracking program state device 102. Because when the first image is displayed, the data slice in the external memory must be fixed and returned to the backtracking FIFO 50, so This action is necessary. In the second-* During the display of the bit, or during the display of the first stop, the signal NWSINK 154 does not operate. Therefore, the state machine 102 is allowed to cause a nesting action on the nesting FIFO 50, so that the finger ladder pointing to the blank memory slice can be placed. Figure 11 illustrates the structure of the write-back FIFO controller 112, which is very similar to the read-back FIFO controller, except that the controller has no additional memory to grab the read finger ladder so that It is displayed on the field again. When the first F-type image of a sequence accesses the nested FIF0 first, the flip-flop 1S6 is controlled to simplify the write-back operation. The flip-flop 156 is set and a series of During the display of the first B image in each column B® image, the flip-flops of the flip-flops are activated. This forced state machine logic network 104 (see Figure 9) refers to the real address of the FIFO, instead of retaining it outside the address. IΊ JI — — IQ! ---- Order -----价-(Please read the precautions on the reverse side before filling out this page) This paper is based on the standard of China County ("ns") Λ4% * (2 297 mm) A7 B7 Printed by the Central Standards Bureau of the Ministry of Economic Affairs and Consumer Cooperatives 5. Description of the invention (22) The contents of the memory card. The demon should be loaded with the external memory hip containing the image slice sequence in advance for the memory controller 98. The flip-flop 156 is set in the control signal 132. It is not necessary to use a state machine that can clear the external ram, and then load the initial virtual finger ladder into it for the image slice sequence. After the first B image is displayed, reset the flip-flop I56, And it can be set again only when a new B-circle image sequence and sequence is started. Another control flip-flop 158 develops a control signal RASENB 160, which is used by the write-back program to make the write-back program and return Grid program synchronization. Before the start of the B image sequence, the flip-flop 158 is set and written back to the FIFO 50 (see Figure 6). ) Reset the flip-flop when it is blank for the first time. The output of the flip-flop 158 and the control signal FIRSTB 162 indicate when the B artifact should be displayed. It determines when the back-to-back program needs to delay the write-back program. Bit time (or half screen storage). This delay is most suitable for speed state operation. Figure 12 shows the state machine 164 (see circle 7) that controls the access of RAM94. This state machine contains flip-flops 166, 168, 170 And 172, and related logic. Signals 174, 176, and 178 actuate read requests and nesting requests via the back-grip and write-back procedures. In the VLSI configuration used to manage finger ladders, as described above As mentioned above, the FIFO memory can operate in a very good way. However, it is possible to use other memory vessels to manage the configuration to achieve 3 mutually coupled memories. Such a design does not deviate from the spirit of the present invention. Using hash tables, memory / position quick-connect meters, cache memories, and other direct addressing types familiar to those skilled in the art, the fingers will be inserted into three I .—— rI — — IQ! (Please read the back first Please fill in the matters needing attention This page), ιτ This paper scale is applicable to China's national standard U: NS) Λ4 is present (210X297 mm) A7 B7 V. Description of the invention (23) In the mutually coupled memory 馑, retrieve data from it. The other measures are based on the fact that in the write-back program, the 1st order of the index retrieval program basically does not have to be the same as the order of the write-backup memory, as long as the closed system of the finger ladder is maintained can. Now please refer to circle six. From the perspective of circuit power, it is best to implement nested FIFO 50 and gate-backed FlF0 62 and fly 4 as a single port state RAM array, and because it requires a smaller silicon area β, it can also Using the register file, you can also use the content-addressable memory for the three FIFOs. Although the present invention has been described with preferred embodiments, those skilled in the art need to understand that the above embodiments can be modified and changed without departing from the spirit and perspective of the present invention. (Please read the notes on the back before filling out this page} —ο 衣 ---- .. 0 Printed by the Central Standards Bureau of the Ministry of Economic Affairs, Shellfish Consumer Cooperative, this paper is printed on a paper scale that is deducted from the Chinese national standard ((: NS) Λ4 specifications (2) 0X 297 mm)
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW87105589A TW390098B (en) | 1998-04-13 | 1998-04-13 | Memory manager for MPEG decoder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW87105589A TW390098B (en) | 1998-04-13 | 1998-04-13 | Memory manager for MPEG decoder |
Publications (1)
Publication Number | Publication Date |
---|---|
TW390098B true TW390098B (en) | 2000-05-11 |
Family
ID=21629866
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW87105589A TW390098B (en) | 1998-04-13 | 1998-04-13 | Memory manager for MPEG decoder |
Country Status (1)
Country | Link |
---|---|
TW (1) | TW390098B (en) |
-
1998
- 1998-04-13 TW TW87105589A patent/TW390098B/en active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6122315A (en) | Memory manager for MPEG decoder | |
US5124692A (en) | Method and apparatus for providing rotation of digital image data | |
US8890881B2 (en) | Mapping method and video system for mapping pixel data included in the same pixel group to the same bank of memory | |
US10726519B2 (en) | Cache arrangement for graphics processing systems | |
JP3120773B2 (en) | Image processing device | |
US20160098812A1 (en) | Application processor sharing resource based on image resolution and devices including same | |
JP3141772B2 (en) | MPEG decoder and decoding method thereof | |
US20200128264A1 (en) | Image processing | |
TW200818900A (en) | Method for mapping memory addresses, memory accessing apparatus and method thereof | |
US6940909B2 (en) | Video decoding during I-frame decode at resolution change | |
JPH06214549A (en) | Apparatus and method for display in double buffer-type output display system | |
TW390098B (en) | Memory manager for MPEG decoder | |
US7301542B1 (en) | System and method for filtering graphics data on scanout to a monitor | |
JP3903960B2 (en) | Graphics controller and apparatus for fetching pixel data from memory | |
US7400683B2 (en) | Device with virtual tilized image memory | |
US9001887B2 (en) | Double register array buffer for motion compensation | |
EP0662681B1 (en) | Method of and apparatus for data compression during monitor refresh operations | |
US7460718B2 (en) | Conversion device for performing a raster scan conversion between a JPEG decoder and an image memory | |
US20060022987A1 (en) | Method and apparatus for arranging block-interleaved image data for efficient access | |
JP3692613B2 (en) | Information processing method and information processing apparatus | |
US20090147015A1 (en) | Aperture Compression for Multiple Data Streams | |
JPS6252874B2 (en) | ||
JP4162348B2 (en) | Memory mixed image processing LSI and image processing apparatus | |
MXPA98001126A (en) | Memory controller for decoder type m | |
Bai et al. | The performance improvement of a photo card reader by the use of a high-integration chip solution with double FIFO buffers |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GD4A | Issue of patent certificate for granted invention patent |