TWI824191B - Computer program product and method and apparatus for adjusting equalization - Google Patents

Computer program product and method and apparatus for adjusting equalization Download PDF

Info

Publication number
TWI824191B
TWI824191B TW109137353A TW109137353A TWI824191B TW I824191 B TWI824191 B TW I824191B TW 109137353 A TW109137353 A TW 109137353A TW 109137353 A TW109137353 A TW 109137353A TW I824191 B TWI824191 B TW I824191B
Authority
TW
Taiwan
Prior art keywords
equalizer
mentioned
output
eye
processing unit
Prior art date
Application number
TW109137353A
Other languages
Chinese (zh)
Other versions
TW202139187A (en
Inventor
施富仁
Original Assignee
慧榮科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 慧榮科技股份有限公司 filed Critical 慧榮科技股份有限公司
Priority to TW109137353A priority Critical patent/TWI824191B/en
Publication of TW202139187A publication Critical patent/TW202139187A/en
Application granted granted Critical
Publication of TWI824191B publication Critical patent/TWI824191B/en

Links

Images

Landscapes

  • Circuit For Audible Band Transducer (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Networks Using Active Elements (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

A computer program product for adjusting equalization includes program code that can be loaded and executed by a processing unit of a storage device, to: repeatedly adjusting parameters of an equalizer, and repeatedly outputting fillers to a media access control (MAC) layer to replace output results from a symbol decoder until an adjustment failure or a detection that continuous waveforms output from the equalizer belong to an eye open state after detecting a symbol decode error. With the aforementioned filler outputs, it would avoid that the MAC layer does not wait for the result of the equalization adjustment and directly trigger the error correction mechanism initiated by a host.

Description

均衡調整的電腦程式產品及方法以及裝置Computer program products, methods and devices for equalization adjustment

本發明涉及儲存裝置,尤指一種均衡調整的電腦程式產品及方法以及裝置。The present invention relates to a storage device, and in particular, to a computer program product, method and device for balance adjustment.

快閃記憶裝置通常分為NOR快閃記憶裝置與NAND快閃記憶裝置。NOR快閃記憶裝置為隨機存取裝置,主機端(Host-side)可於位址腳位上提供任何存取NOR快閃記憶裝置的位址,並及時地從NOR快閃記憶裝置的資料腳位上獲得儲存於該位址上的資料。相反地,NAND快閃記憶裝置並非隨機存取,而是序列存取。NAND快閃記憶裝置無法像NOR快閃記憶裝置一樣,可以存取任何隨機位址,主機端反而需要寫入序列的位元組(Bytes)的值到NAND快閃記憶裝置中,用以定義請求命令(Command)的類型(如,讀取、寫入、抹除等),以及用在此命令上的位址。位址可指向一個頁面(快閃記憶裝置中寫入作業的最小資料塊)或一個區塊(快閃記憶裝置中抹除作業的最小資料塊)。Flash memory devices are generally divided into NOR flash memory devices and NAND flash memory devices. The NOR flash memory device is a random access device. The host-side can provide any address for accessing the NOR flash memory device on the address pin and obtain the data pin of the NOR flash memory device in real time. Get the data stored at that address. In contrast, NAND flash memory devices do not have random access, but sequential access. NAND flash memory devices cannot access any random address like NOR flash memory devices. Instead, the host needs to write a sequence of Bytes values into the NAND flash memory device to define the request. The type of command (such as read, write, erase, etc.), and the address used for this command. The address can point to a page (the smallest block of data for a write operation in a flash memory device) or a block (the smallest block of data for an erase operation in a flash memory device).

主機端與裝置端間在高速傳輸時,例如在高於6Gb/sec的傳輸率上,資料容易受到抖動(Jitter)、母板上的電壓變化、符碼間干擾(Inter-symbol Interference,ISI)的影響而發生錯誤。因此,主機端和裝置端的實體層可配備均衡器(Equalizers),通過均衡調整參數來消除或抑制資料在高速傳輸時的錯誤。根據標準的規範,例如通用快閃記憶儲存(Universal Flash Storage UFS),均衡的調整只能由主機端發動。主機端可能在將傳輸模式切換到高速檔位(例如高速第四檔位,High Speed Gear 4,HS-G4,或更高速的檔位)之前,或者是發現從裝置端接收到資料的錯誤率到達或超過閥值時,發動均衡的調整。然而,在一些情況下,裝置端會比主機端更早發現接收資料的錯誤率已經到達或超過閥值,只依靠主機端來發動均衡的調整將延後修正錯誤的時機。因此,本發明提出一種能夠由裝置端發動的均衡調整的電腦程式產品及方法以及裝置。During high-speed transmission between the host and the device, for example, at a transmission rate higher than 6Gb/sec, data is susceptible to jitter, voltage changes on the motherboard, and inter-symbol interference (ISI). The error occurs due to the influence. Therefore, the physical layer on the host side and the device side can be equipped with equalizers (Equalizers) to eliminate or suppress data errors during high-speed transmission by adjusting parameters through equalization. According to standard specifications, such as Universal Flash Storage (UFS), balancing adjustments can only be initiated by the host side. The host may find an error rate in receiving data from the device before switching the transmission mode to a high speed gear (such as High Speed Gear 4, HS-G4, or higher). When the threshold is reached or exceeded, balanced adjustments are initiated. However, in some cases, the device will discover that the error rate of received data has reached or exceeded the threshold earlier than the host. Relying only on the host to initiate balancing adjustments will delay the opportunity to correct errors. Therefore, the present invention proposes a computer program product, method and device that can initiate balance adjustment from the device side.

有鑑於此,如何減輕或消除上述相關領域的缺失,實為有待解決的問題。In view of this, how to alleviate or eliminate the deficiencies in the above-mentioned related fields is a problem that needs to be solved.

本說明書涉及一種均衡調整的電腦程式產品的實施例,包含由儲存裝置的處理單元載入並執行的程式碼:在偵測到符碼解碼錯誤後,反覆調整均衡器的參數,以及不斷輸出填充元給媒體存取控制層,用於取代符碼解碼器的輸出結果,直到調整失敗或者偵測到均衡器輸出的連續波形屬於開眼狀態時為止。This specification relates to an embodiment of a computer program product for equalization adjustment, including a program code loaded and executed by a processing unit of a storage device: after detecting a code decoding error, iteratively adjusts the parameters of the equalizer and continuously outputs padding The element is given to the media access control layer and is used to replace the output result of the code decoder until the adjustment fails or the continuous waveform output by the equalizer is detected to belong to the eye-open state.

本說明書另涉及一種均衡調整方法的實施例,用以於儲存裝置的處理單元載入並執行如上所示的程式碼時實施。This specification also relates to an embodiment of a balance adjustment method, which is implemented when the processing unit of the storage device loads and executes the program code shown above.

本說明書另涉及一種均衡調整裝置的實施例,包含均衡器、符碼解碼器、處理單元、填充元產生器、媒體存取控制層和多工器。符碼解碼器耦接均衡器,用於從均衡器接收主機資料。處理單元耦接均衡器和符碼解碼器,在偵測到從符碼解碼器傳送的符碼解碼錯誤後,反覆調整均衡器的參數,直到調整失敗或者偵測到均衡器輸出的連續波形屬於開眼狀態時為止。多工器包含輸入端和輸出端,輸入端耦接符碼解碼器和填充元產生器,輸出端耦接媒體存取控制層。處理單元在偵測到符碼解碼錯誤後,控制多工器以將填充元產生器連接至媒體存取控制層,用於讓填充元產生器不斷輸出填充元給媒體存取控制層,取代符碼解碼器的輸出結果,直到調整失敗或者偵測到均衡器輸出的連續波形屬於開眼狀態時為止。This specification also relates to an embodiment of an equalization adjustment device, including an equalizer, a code decoder, a processing unit, a stuffing element generator, a media access control layer and a multiplexer. The code decoder is coupled to the equalizer and is used for receiving host data from the equalizer. The processing unit is coupled to the equalizer and the symbol decoder. After detecting the symbol decoding error transmitted from the symbol decoder, the processing unit repeatedly adjusts the parameters of the equalizer until the adjustment fails or it is detected that the continuous waveform output by the equalizer belongs to Until the eyes are open. The multiplexer includes an input terminal and an output terminal. The input terminal is coupled to the symbol code decoder and the filling element generator, and the output terminal is coupled to the media access control layer. After detecting a code decoding error, the processing unit controls the multiplexer to connect the padding element generator to the media access control layer, so that the padding element generator continuously outputs padding elements to the media access control layer to replace symbols. The output result of the code decoder is until the adjustment fails or it is detected that the continuous waveform output by the equalizer belongs to the eye-opening state.

上述實施例的優點之一,通過如上所述的填充元輸出避免媒體存取控制層沒有等待均衡調整的結果而直接觸發主機端發起的錯誤修正機制。One of the advantages of the above embodiment is that the padding element output as described above prevents the media access control layer from directly triggering the error correction mechanism initiated by the host without waiting for the result of the equalization adjustment.

本發明的其他優點將搭配以下的說明和圖式進行更詳細的解說。Other advantages of the present invention will be explained in more detail in conjunction with the following description and drawings.

以下說明為完成發明的較佳實現方式,其目的在於描述本發明的基本精神,但並不用以限定本發明。實際的發明內容必須參考之後的權利要求範圍。The following description is a preferred implementation manner for completing the invention, and its purpose is to describe the basic spirit of the invention, but is not intended to limit the invention. For the actual invention, reference must be made to the following claims.

必須了解的是,使用於本說明書中的”包含”、”包括”等詞,用以表示存在特定的技術特徵、數值、方法步驟、作業處理、元件以及/或組件,但並不排除可加上更多的技術特徵、數值、方法步驟、作業處理、元件、組件,或以上的任意組合。It must be understood that the words "including" and "include" used in this specification are used to indicate the existence of specific technical features, numerical values, method steps, work processes, components and/or components, but do not exclude the possibility of adding further technical features, values, method steps, processes, components, components, or any combination of the above.

於權利要求中使用如”第一”、”第二”、”第三”等詞是用來修飾權利要求中的元件,並非用來表示之間具有優先順序,前置關係,或者是一個元件先於另一個元件,或者是執行方法步驟時的時間先後順序,僅用來區別具有相同名字的元件。The use of words such as "first", "second" and "third" in the claims is used to modify the elements in the claims, and is not used to indicate a priority, precedence relationship between them, or that they are one element. Prior to another element, or the chronological order in which method steps are performed, it is only used to distinguish elements with the same name.

必須了解的是,當元件描述為”連接”或”耦接”至另一元件時,可以是直接連結、或耦接至其他元件,可能出現中間元件。相反地,當元件描述為”直接連接”或”直接耦接”至另一元件時,其中不存在任何中間元件。使用來描述元件之間關係的其他語詞也可類似方式解讀,例如”介於”相對於”直接介於”,或者是”鄰接”相對於”直接鄰接”等等。It must be understood that when an element is described as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, and intervening elements may be present. In contrast, when an element is described as being "directly connected" or "directly coupled" to another element, there are no intervening elements present. Other words used to describe the relationship between elements could be interpreted in a similar fashion, such as "between" versus "directly between," or "adjacent" versus "directly adjacent," etc.

參考圖1。儲存裝置10可設置在電子裝置中,例如,個人電腦、筆記型電腦(Laptop PC)、平板電腦、手機、數位相機、數位攝影機、隨身碟、存儲卡、固態硬碟(Solid State Disk,SSD)等電子產品。儲存裝置10包含實體層(Physical Layer,可簡稱為PHY)110、媒體存取控制層(Media Access Control Layer,可簡稱MAC層)130、處理單元150和中斷產生器170。處理單元150可使用多種方式實施,如使用通用硬體(例如,單一處理器、具平行處理能力的多處理器、圖形處理器或其他具運算能力的處理器),並且在執行軟體以及/或韌體指令時,提供指定的功能。處理單元150可通過實體層110及媒體存取控制層130從主機端接收主機命令,例如符合通用快閃記憶儲存(Universal Flash Storage,UFS)標準的讀取、寫入、抹除命令等。Refer to Figure 1. The storage device 10 can be provided in an electronic device, such as a personal computer, a laptop computer (Laptop PC), a tablet computer, a mobile phone, a digital camera, a digital video camera, a pen drive, a memory card, or a solid state disk (SSD). and other electronic products. The storage device 10 includes a physical layer (Physical Layer, may be referred to as PHY) 110, a media access control layer (Media Access Control Layer, may be referred to as MAC layer) 130, a processing unit 150 and an interrupt generator 170. The processing unit 150 may be implemented in a variety of ways, such as using general-purpose hardware (eg, a single processor, multiple processors with parallel processing capabilities, a graphics processor, or other processors with computing capabilities), and when executing software and/or Provides specified functions when executing firmware commands. The processing unit 150 can receive host commands from the host through the physical layer 110 and the media access control layer 130, such as read, write, and erase commands that comply with the Universal Flash Storage (UFS) standard.

儲存裝置10包含儲存單元(未顯示在圖1),提供大量的儲存空間,通常是數百個千兆位元組(Gigabytes),甚至是數個兆兆位元組(Terabytes),用於儲存大量的使用者資料,例如高解析度圖片、影片等。儲存單元中包含控制電路以及記憶體陣列,記憶體陣列中的記憶單元可包含單層式單元(Single Level Cells,SLCs)、多層式單元(Multiple Level Cells,MLCs)三層式單元(Triple Level Cells,TLCs)、四層式單元(Quad-Level Cells,QLCs)或上述的任意組合。The storage device 10 includes a storage unit (not shown in Figure 1) that provides a large amount of storage space, usually hundreds of gigabytes (Gigabytes) or even several terabytes (Terabytes), for storage A large amount of user data, such as high-resolution images, videos, etc. The storage unit includes a control circuit and a memory array. The memory cells in the memory array can include Single Level Cells (SLCs), Multiple Level Cells (MLCs), and Triple Level Cells. , TLCs), Quad-Level Cells (QLCs), or any combination of the above.

實體層110建立在8b/10b、64b/66b或128b/130b串列器/解串器(Serializer/Deserializer,簡稱SerDes)環境上,包含一對功能電路,用來彌補有限輸入/輸出的不足,其提供在差動對上傳輸資料,讓輸入輸出接腳及其間的接線能夠最少。詳細來說,主機的傳送端將低速並行信號轉換為高速串列信號,並經過差動對傳送到儲存裝置10的接收端。實體層110包含解串器124,用於將經由均衡器122收到的高速串列信號轉換為低速並行信號。從主機的傳送端傳送給儲存裝置10的接收端的信號,又可稱為主機資料(Host Data)。The physical layer 110 is built on an 8b/10b, 64b/66b or 128b/130b serializer/deserializer (SerDes) environment and includes a pair of functional circuits to make up for the shortcomings of limited input/output. It provides data transmission over a differential pair, minimizing input and output pins and wiring between them. Specifically, the transmitting end of the host converts the low-speed parallel signal into a high-speed serial signal, and transmits it to the receiving end of the storage device 10 through the differential pair. The physical layer 110 includes a deserializer 124 for converting the high-speed serial signal received via the equalizer 122 into a low-speed parallel signal. The signal transmitted from the transmitting end of the host to the receiving end of the storage device 10 can also be called host data.

為了解決主機端與裝置端間在高速傳輸時資料容易受到抖動、母板上的電壓變化、符碼間干擾而產生偏差的技術問題,實體層110在傳輸通道和解串器124之間設置均衡器122。均衡器122包含寄存器1225,讓處理單元150通過設定寄存器1225中的值來調整均衡器122運行時的參數。參考圖2,舉例來說,均衡器122包含第一級連續時間線性均衡器(first-order Continuous Time Linear Equalizer,CTLE)210和一階判決回饋均衡器(1-tap Decision Feedback Equalizer,DFE)230。雖然實施例描述了如圖2所示的均衡器架構,但是所屬技術領域人員可使用其他的公知架構來設計均衡器122,例如均衡器122只包含第一級連續時間線性均衡器210,將第一級連續時間線性均衡器210改為其他等效的連續時間線性均衡器,將一階判決回饋均衡器230改為多階判決回饋均衡器或其他等效的判決回饋均衡器,本發明並不因此受限。In order to solve the technical problem that data is susceptible to deviations caused by jitter, voltage changes on the motherboard, and inter-symbol interference during high-speed transmission between the host and the device, the physical layer 110 sets an equalizer between the transmission channel and the deserializer 124 122. The equalizer 122 includes a register 1225, allowing the processing unit 150 to adjust the parameters of the equalizer 122 when it is running by setting the value in the register 1225. Referring to Figure 2, for example, the equalizer 122 includes a first-order Continuous Time Linear Equalizer (CTLE) 210 and a first-order decision feedback equalizer (1-tap Decision Feedback Equalizer, DFE) 230 . Although the embodiment describes the equalizer architecture as shown in Figure 2, those skilled in the art can use other well-known architectures to design the equalizer 122. For example, the equalizer 122 only includes the first-stage continuous-time linear equalizer 210, and the second-stage continuous-time linear equalizer 210. The first-order continuous-time linear equalizer 210 is changed to other equivalent continuous-time linear equalizers, and the first-order decision feedback equalizer 230 is changed to a multi-order decision feedback equalizer or other equivalent decision feedback equalizers. The present invention does not Therefore it is limited.

CTLE的特性可使用以下轉換函數表示: 其中,ADC 代表DC增益,代表fz 代表0,fP1 代表第一極點(Pole),fP2 代表第二極點。The characteristics of CTLE can be expressed using the following transformation function: Among them, A DC represents DC gain, represent , f z represents 0, f P1 represents the first pole (Pole), f P2 represents the second pole.

DFE的特性可使用以下公式表示:yk =xk -VDFE_RX yk =xk -d1 sgn(yk-1 ) 其中,yk 代表DFE的輸出電壓訊號,xk 代表輸入到DFE的電壓訊號,VDFE_RX 代表DFE的回饋電壓訊號,k 代表資料位元的取樣索引值,d1 代表DFE的回饋係數。The characteristics of DFE can be expressed by the following formula: y k =x k -V DFE_RX y k =x k -d 1 sgn(y k-1 ) where, y k represents the output voltage signal of DFE, and x k represents the input voltage to DFE Voltage signal, V DFE_RX represents the feedback voltage signal of DFE, k represents the sampling index value of the data bit, and d 1 represents the feedback coefficient of DFE.

實體層110包含眼圖分析器123,處理單元150可發出訊號給眼圖分析器123,用於啟動眼圖分析器123。傳統上,眼圖分析器123使用在工廠中,用於讓工程師校準均衡器122,而不使用在儲存裝置10出廠後的實際運行中。眼圖分析器123計算代表眼圖的數值,並判斷計算出的數值屬於開眼狀態(Eye Open State,如圖3所示)或閉眼狀態(Eye Close State,如圖4所示),而眼圖是一種疊加均衡器122輸出的連續波形所形成的合併圖形。當計算出的數值屬於開眼狀態時,均衡器122輸出的訊號才是可以接受的。當計算出的數值屬於閉眼狀態時,代表均衡器122目前沒有辦法消除干擾而需要進一步調整。為了節省電力消耗,在一般情況下,眼圖分析器123可以是關閉不運行的。處理單元150可視情況發出控制訊號給眼圖分析器123來啟動眼圖分析器123。當眼圖分析器123偵測到均衡器122輸出的連續波形屬於閉眼狀態時,傳送計算出的數值給處理單元150,讓處理單元150據以調整均衡器122。當眼圖分析器123偵測到均衡器122輸出的連續波形屬於開眼狀態時,傳送訊息通知處理單元150目前均衡器122輸出的訊號是能夠接受的。The physical layer 110 includes an eye diagram analyzer 123, and the processing unit 150 can send a signal to the eye diagram analyzer 123 for starting the eye diagram analyzer 123. Traditionally, the eye diagram analyzer 123 is used in the factory to allow engineers to calibrate the equalizer 122, but is not used in the actual operation of the storage device 10 after it leaves the factory. The eye diagram analyzer 123 calculates a value representing the eye diagram, and determines whether the calculated value belongs to the eye open state (Eye Open State, as shown in Figure 3) or the eye closed state (Eye Close State, as shown in Figure 4), and the eye diagram It is a merged pattern formed by superimposing the continuous waveforms output by the equalizer 122. When the calculated value belongs to the eye-opening state, the signal output by the equalizer 122 is acceptable. When the calculated value belongs to the eyes-closed state, it means that the equalizer 122 currently cannot eliminate interference and needs further adjustment. In order to save power consumption, under normal circumstances, the eye diagram analyzer 123 may be turned off and not run. The processing unit 150 may optionally send a control signal to the eye diagram analyzer 123 to activate the eye diagram analyzer 123 . When the eye diagram analyzer 123 detects that the continuous waveform output by the equalizer 122 belongs to the eyes-closed state, the calculated value is sent to the processing unit 150 so that the processing unit 150 adjusts the equalizer 122 accordingly. When the eye diagram analyzer 123 detects that the continuous waveform output by the equalizer 122 belongs to the eye-open state, it sends a message to notify the processing unit 150 that the current signal output by the equalizer 122 is acceptable.

實體層110包含符碼解碼器(Symbol Decoder)128,因應不同的SerDes環境,可為8b/10b轉換器(Converter)、64b/66b轉換器或128b/130b轉換器。符碼解碼器128包含映射表,用來將輸入的資料位元轉換為用較少位元表示的碼,例如將輸入的10、66或130位元資料映射成8、64或128位元碼。舉例來說,在8b/10b SerDes環境中,10位元可表示210 =1024個狀態,映射表只包含28 =256個映射關係。當任何輸入的資料位元依據映射表轉換不出任何有效碼時,符碼解碼器128判定輸入的資料位元錯誤,並可設定中斷產生器170中的寄存器,用於通知處理單元150發生符碼解碼錯誤。The physical layer 110 includes a symbol decoder (Symbol Decoder) 128, which can be an 8b/10b converter (Converter), a 64b/66b converter or a 128b/130b converter according to different SerDes environments. The code decoder 128 includes a mapping table for converting input data bits into codes represented by fewer bits, for example, mapping input 10, 66 or 130-bit data into 8, 64 or 128-bit codes. . For example, in an 8b/10b SerDes environment, 10 bits can represent 2 10 =1024 states, and the mapping table only contains 2 8 =256 mapping relationships. When any input data bit cannot be converted into any valid code according to the mapping table, the symbol code decoder 128 determines that the input data bit is incorrect, and can set the register in the interrupt generator 170 to notify the processing unit 150 of the symbol occurrence. Code decoding error.

當中斷產生器170中寄存器的內容被改變時,中斷產生器170會發出中斷訊號(Interrupt,簡稱為INT)給處理單元150,用於觸發處理單元150執行中斷服務常式(Interrupt Service Routine)。在中斷服務常式中,處理單元150檢視寄存器的內容,並藉此知道實體層110偵測到的狀態,例如發生符碼解碼錯誤等。當偵測到符碼解碼錯誤時,處理單元150載入並執行適當的韌體程式碼,用於實施本發明實施例的均衡調整方法。When the contents of the register in the interrupt generator 170 are changed, the interrupt generator 170 will send an interrupt signal (Interrupt, referred to as INT for short) to the processing unit 150 to trigger the processing unit 150 to execute an interrupt service routine (Interrupt Service Routine). In the interrupt service routine, the processing unit 150 checks the contents of the register and thereby knows the status detected by the physical layer 110, such as a code decoding error. When a code decoding error is detected, the processing unit 150 loads and executes appropriate firmware code for implementing the equalization adjustment method according to the embodiment of the present invention.

實體層110包含填充元產生器(Filler Generator)126,用於產生連續性的填充元,例如K.28.1符碼等。當MAC層130或處理單元150偵測到填充元時,知道這些符碼不是從主機端傳來的資料。The entity layer 110 includes a filler generator (Filler Generator) 126, which is used to generate continuous filler elements, such as K.28.1 codes, etc. When the MAC layer 130 or the processing unit 150 detects padding elements, it knows that these symbols are not data transmitted from the host.

實體層110包含多工器(Multiplexer,MUX)129,其輸入端耦接到符碼解碼器128和填充元產生器126,其輸出端耦接到MAC 130。在正常情況下,多工器129將符碼解碼器128的輸出連接到MAC 130的輸入,用於將主機端的資料經由多工器129傳送到MAC 130。此外,多工器129能夠被處理單元150控制將填充元產生器126的輸出連接到MAC 130的輸入,用於將填充元產生器126產生的填充元傳送到MAC 130,換句話說,阻止主機端的資料被傳送到MAC 130。The physical layer 110 includes a multiplexer (Multiplexer, MUX) 129, the input end of which is coupled to the symbol decoder 128 and the padding element generator 126, and the output end of which is coupled to the MAC 130. Under normal circumstances, the multiplexer 129 connects the output of the code decoder 128 to the input of the MAC 130 for transmitting host-side data to the MAC 130 via the multiplexer 129 . Furthermore, the multiplexer 129 can be controlled by the processing unit 150 to connect the output of the stuffing element generator 126 to the input of the MAC 130 for transmitting the stuffing elements generated by the stuffing element generator 126 to the MAC 130, in other words, preventing the host from The data from the client is transferred to the MAC 130.

為了讓儲存裝置10能夠主動調整均衡器122來解決資料接收過程中發生的錯誤,處理單元150可載入並執行韌體程式碼來完成如圖5所示的方法流程圖。此方法流程可限定主機端和儲存裝置10間運行在高速傳輸的環境下執行,例如高速第四檔位(High Speed Gear 4,HS-G4)或更高速的檔位,或者是不管處在哪種傳輸速率下都可以執行。本發明實施例所述的均衡調整方法的特徵在於,在偵測到符碼解碼錯誤後,反覆調整均衡器122的參數,直到調整失敗或者偵測到均衡器122輸出的連續波形屬於開眼狀態時為止。詳細說明如下:In order to enable the storage device 10 to actively adjust the equalizer 122 to resolve errors occurring during data reception, the processing unit 150 may load and execute firmware code to complete the method flowchart shown in FIG. 5 . This method process can limit the execution between the host and the storage device 10 in a high-speed transmission environment, such as High Speed Gear 4 (HS-G4) or a higher speed, or no matter where it is. It can be executed at any transmission rate. The characteristic of the equalization adjustment method described in the embodiment of the present invention is that after detecting a symbol decoding error, the parameters of the equalizer 122 are repeatedly adjusted until the adjustment fails or it is detected that the continuous waveform output by the equalizer 122 belongs to the eye-open state. So far. The details are as follows:

步驟S510:通過中斷訊號INT偵測到符碼解碼器128發生符碼解碼錯誤。符碼解碼錯誤可視為儲存裝置10啟動均衡調整的條件。由於中斷訊號INT為優先權最高的訊號,處理單元150會優先執行反應符碼解碼錯誤的程式碼。Step S510: A code decoding error occurs in the code decoder 128 through the interrupt signal INT. The code decoding error can be regarded as a condition for the storage device 10 to initiate equalization adjustment. Since the interrupt signal INT is the signal with the highest priority, the processing unit 150 will first execute the program code that reflects the code decoding error.

步驟S520:發出控制訊號給多工器129,用於將填充元產生器126的並列輸出連接至MAC 130的並列輸入,使得填充元產生器126產生的填充元經由多工器129傳送到MAC 130,並避免錯誤的主機資料傳送到MAC 130。Step S520: Send a control signal to the multiplexer 129 for connecting the parallel output of the filling element generator 126 to the parallel input of the MAC 130, so that the filling elements generated by the filling element generator 126 are transmitted to the MAC 130 through the multiplexer 129 , and avoid sending incorrect host data to the MAC 130.

步驟S530:發出控制訊號給眼圖分析器123,用於啟動眼圖分析器123。眼圖分析器123啟動後會不斷地傳送相應於眼圖的數值給處理單元150。此外,當偵測到眼圖屬於開眼狀態時,可傳送相應訊息通知處理單元150。Step S530: Send a control signal to the eye diagram analyzer 123 for starting the eye diagram analyzer 123. After being started, the eye diagram analyzer 123 will continuously transmit values corresponding to the eye diagram to the processing unit 150 . In addition, when it is detected that the eye diagram belongs to the eye-open state, a corresponding message may be sent to notify the processing unit 150 .

步驟S540:可使用所屬技術領域人員公知的演算法,依據眼圖分析器計算的數值設定寄存器1225,用於調整均衡器122的參數。Step S540: An algorithm known to those skilled in the art can be used to set the register 1225 based on the value calculated by the eye diagram analyzer to adjust the parameters of the equalizer 122.

步驟S550:依據從眼圖分析器123收到的資料和/或訊息判斷是否偵測到開眼狀態。若是,則進行步驟S580的處理;否則,進行步驟S560的判斷。Step S550: Determine whether an eye-open state is detected based on the data and/or messages received from the eye diagram analyzer 123. If yes, proceed to step S580; otherwise, proceed to step S560.

步驟S560:判斷是否調整失敗。若是,則進行步驟S570的處理;否則,進行步驟S540的處理。在一些實施例,處理器150可在步驟S510啟動計時器,用於計數一段時間,代表允許調整的時間。當偵測到計時器已經計數超過這段時間,表示均衡調整已經超過允許時間,不能再繼續調整而調整失敗。在另一些實施例,處理器150可判斷是否已經嘗試過調整均衡器122的所有候選參數值組合。若是,則代表均衡器122不能再繼續調整而調整失敗。Step S560: Determine whether the adjustment fails. If yes, perform the process of step S570; otherwise, perform the process of step S540. In some embodiments, the processor 150 may start a timer in step S510 for counting a period of time, representing the time allowed for adjustment. When it is detected that the timer has exceeded this time, it means that the balance adjustment has exceeded the allowed time, and the adjustment cannot be continued and the adjustment fails. In other embodiments, processor 150 may determine whether all candidate parameter value combinations for adjusting equalizer 122 have been tried. If so, it means that the equalizer 122 cannot continue to adjust and the adjustment fails.

步驟S570:啟動其他錯誤修正機制。例如,處理單元150通過實體層110傳送訊息給主機端,通知主機端發生符碼解碼錯誤。主機端可能嘗試降低主機端和儲存裝置10間的傳輸速度再升速,啟動主機端中發送端的前饋均衡(Feed Forward Equalizer,FFE),通過不斷傳送訓練框(如PRBS9)給儲存裝置10來協助進行均衡調整,或者使用其他機制來嘗試解決儲存裝置10中發生的符碼解碼錯誤。Step S570: Start other error correction mechanisms. For example, the processing unit 150 sends a message to the host through the physical layer 110 to notify the host that a code decoding error occurs. The host may try to reduce the transmission speed between the host and the storage device 10 and then increase the speed, activate the feed forward equalizer (FFE) of the sending end in the host, and continuously transmit training frames (such as PRBS9) to the storage device 10. Assist with equalization adjustments, or use other mechanisms to attempt to resolve code decoding errors that occur in the storage device 10 .

步驟S580:發出控制訊號給多工器129,用於將符碼解碼器128的並列輸出連接至MAC 130的並列輸入,回到預設的連接狀態。Step S580: Send a control signal to the multiplexer 129 for connecting the parallel output of the code decoder 128 to the parallel input of the MAC 130 to return to the default connection state.

步驟S590:發出控制訊號給眼圖分析器123,用於關閉眼圖分析器123以節省電力消耗。Step S590: Send a control signal to the eye diagram analyzer 123 to close the eye diagram analyzer 123 to save power consumption.

步驟S540至S560形成一個迴圈,可每毫秒(Millisecond)或數個毫秒執行一次。Steps S540 to S560 form a loop and can be executed once every millisecond (Millisecond) or several milliseconds.

當眼圖分析器123偵測到均衡器122輸出的連續波形屬於開眼狀態時(步驟S550中“是”的路徑),代表均衡器122的調整成功,並離開迴圈。接著,處理單元150將多工器129及眼圖分析器123回復為原先預設的狀態(步驟S580和S590)。When the eye diagram analyzer 123 detects that the continuous waveform output by the equalizer 122 belongs to the eye-opening state ("Yes" path in step S550), it means that the adjustment of the equalizer 122 is successful and the loop is exited. Then, the processing unit 150 restores the multiplexer 129 and the eye diagram analyzer 123 to the originally preset states (steps S580 and S590).

當經過一段預設時間或嘗試過所有的候選參數值組合還不能將均衡器122的輸出調整到開眼狀態時(步驟S560中“是”的路徑),代表均衡器122的調整失敗,並離開迴圈。接著,處理單元150啟動其他錯誤修正機制(步驟S570)並將多工器129及眼圖分析器123回復為原先預設的狀態(步驟S580和S590)。When the output of the equalizer 122 cannot be adjusted to the eye-opening state after a preset period of time or all candidate parameter value combinations have been tried (the "YES" path in step S560), it means that the adjustment of the equalizer 122 fails and leaves the return state. lock up. Then, the processing unit 150 activates other error correction mechanisms (step S570) and restores the multiplexer 129 and the eye diagram analyzer 123 to their original default states (steps S580 and S590).

步驟S530及步驟S580的執行,用來讓處理單元150在偵測到符碼解碼錯誤後,不斷輸出填充元給媒體存取控制層130,用於取代符碼解碼器128的輸出資料,直到調整失敗或者偵測到均衡器122輸出的連續波形屬於開眼狀態時為止。在一些情況下,MAC層130可能從實體層110的符碼解碼器128收到符碼解碼錯誤的訊息但卻沒有等待均衡調整的結果而直接觸發了主機端發起的錯誤修正機制。如上所述的步驟可阻止符碼解碼錯誤的訊息傳遞到MAC層130,進一步阻止觸發主機端發起的錯誤修正機制。The execution of step S530 and step S580 is used to allow the processing unit 150 to continuously output padding elements to the media access control layer 130 after detecting a code decoding error to replace the output data of the code decoder 128 until the adjustment It fails or until it is detected that the continuous waveform output by the equalizer 122 belongs to the eye-open state. In some cases, the MAC layer 130 may receive a symbol decoding error message from the symbol decoder 128 of the physical layer 110 but directly trigger the error correction mechanism initiated by the host without waiting for the result of the equalization adjustment. The above steps can prevent code decoding error messages from being transmitted to the MAC layer 130, further preventing the host-initiated error correction mechanism from being triggered.

然而,圖1的實體層110在符碼解碼器128發生符碼解碼錯誤到均衡器122調整成功的期間會丟失從主機端傳來的資料。參考圖6描述的另一種儲存裝置60的實施例,為了保留這段期間從主機端傳來的資料,實體層600更包含資料緩存器(Data Cache)620及控制電路(Control Circuit)640。處理單元150可發出控制訊號驅動控制電路640開始將主機端傳來的資料依序寫入資料緩存器620。此外,為了讓資料緩存器620中的資料能夠重新輸入均衡器122,實體層600更包含多工器660,輸入端耦接接收器的輸出和控制電路640的輸出,輸出端耦接均衡器122的輸入。在正常的情況下,實體層600的接收器經由多工器660耦接均衡器122。處理單元150可發出控制訊號給多工器660,用於將控制電路640的輸出耦接至均衡器122,並且發出控制訊號來驅動控制電路640依序讀取資料緩存器620中的資料並經由多工器660重新輸入均衡器122。為了進行區別,實體層600中的多工器129可稱為第一多工器,而實體層600中的多工器660可稱為第二多工器。However, the physical layer 110 in FIG. 1 will lose the data transmitted from the host during the period from when a code decoding error occurs in the code decoder 128 to when the equalizer 122 adjusts successfully. Referring to another embodiment of the storage device 60 described in FIG. 6 , in order to retain the data transmitted from the host during this period, the physical layer 600 further includes a data cache (Data Cache) 620 and a control circuit (Control Circuit) 640 . The processing unit 150 can send a control signal to drive the control circuit 640 to start sequentially writing data from the host into the data register 620 . In addition, in order to allow the data in the data buffer 620 to be re-entered into the equalizer 122, the physical layer 600 further includes a multiplexer 660, the input terminal is coupled to the output of the receiver and the output of the control circuit 640, and the output terminal is coupled to the equalizer 122 input. Under normal conditions, the receiver of physical layer 600 is coupled to equalizer 122 via multiplexer 660 . The processing unit 150 can send a control signal to the multiplexer 660 for coupling the output of the control circuit 640 to the equalizer 122, and send a control signal to drive the control circuit 640 to sequentially read the data in the data register 620 and pass it through Multiplexer 660 re-inputs equalizer 122 . For purposes of distinction, the multiplexer 129 in the physical layer 600 may be referred to as a first multiplexer, while the multiplexer 660 in the physical layer 600 may be referred to as a second multiplexer.

因應圖6所示的架構,由處理單元150載入及執行另一種韌體程式碼來完成如圖7所示的方法流程圖。在新的處理中,步驟S510之後更加上步驟S710,並且,步驟S550中“是”的路徑之後更加上步驟S730。詳細說明如下:According to the architecture shown in FIG. 6 , the processing unit 150 loads and executes another firmware code to complete the method flow chart shown in FIG. 7 . In the new process, step S510 is followed by step S710, and the path of "Yes" in step S550 is followed by step S730. The details are as follows:

步驟S710:驅動控制電路640開始將主機端傳來的資料(也就是偵測到符碼解碼錯誤後從主機端傳來的資料)依序寫入資料緩存器620。Step S710: The drive control circuit 640 begins to write the data transmitted from the host end (that is, the data transmitted from the host end after detecting the code decoding error) into the data register 620 sequentially.

步驟S730:控制多工器660將控制電路640的輸出耦接至均衡器122(此時的均衡器122已經調整完畢),並且發出控制訊號來驅動控制電路640依序讀取資料緩存器620中的資料並經由多工器660重新輸入均衡器122。如果符碼解碼器128發生符碼解碼錯誤到均衡器122調整成功的期間太長以致於資料緩存器620無法儲存所有的資料,處理單元150可放棄重新輸入資料緩存器620中的資料至調整好的均衡器122。Step S730: Control the multiplexer 660 to couple the output of the control circuit 640 to the equalizer 122 (the equalizer 122 has been adjusted at this time), and send a control signal to drive the control circuit 640 to sequentially read the data register 620 The data is re-entered into the equalizer 122 via the multiplexer 660 . If a code decoding error occurs in the code decoder 128 and the equalizer 122 adjusts successfully, the period is too long so that the data buffer 620 cannot store all the data. The processing unit 150 may give up re-entering the data in the data buffer 620 until the adjustment is successful. Equalizer 122.

本發明所述的方法中的全部或部份步驟可以電腦指令實現,例如儲存裝置中特定硬體的驅動程式、或軟體程序等。此外,也可實現於其他類型程式。所屬技術領域人員可將本發明實施例的方法撰寫成電腦指令,為求簡潔不再加以描述。依據本發明實施例方法實施的電腦指令可儲存於適當的電腦可讀取媒體,例如DVD、CD-ROM、USB碟、硬碟,亦可置於可通過網路(例如,網際網路,或其他適當載具)存取的網路伺服器。All or part of the steps in the method of the present invention can be implemented by computer instructions, such as drivers or software programs for specific hardware in the storage device. In addition, it can also be implemented in other types of programs. Persons skilled in the art can write the methods of the embodiments of the present invention as computer instructions, which will not be described for the sake of simplicity. Computer instructions implemented according to the methods of the embodiments of the present invention can be stored in appropriate computer-readable media, such as DVD, CD-ROM, USB disk, hard disk, or can be placed in a computer that can be accessed through a network (for example, the Internet, or A web server accessible by other appropriate vehicles).

雖然圖1、圖2和圖6中包含了以上描述的元件,但不排除在不違反發明的精神下,使用更多其他的附加元件,已達成更佳的技術效果。此外,雖然圖5、圖7的流程圖採用指定的順序來執行,但是在不違反發明精神的情況下,熟習此技藝人士可以在達到相同效果的前提下,修改這些步驟間的順序,所以,本發明並不侷限於僅使用如上所述的順序。此外,熟習此技藝人士亦可以將若干步驟整合為一個步驟,或者是除了這些步驟外,循序或平行地執行更多步驟,本發明亦不因此而侷限。Although the above-described elements are included in Figures 1, 2 and 6, it does not rule out the use of other additional elements to achieve better technical effects without violating the spirit of the invention. In addition, although the flow charts of Figures 5 and 7 are executed in a specified order, those skilled in the art can modify the order of these steps without violating the spirit of the invention and achieving the same effect. Therefore, The present invention is not limited to the use of only the sequence described above. In addition, those skilled in the art can also integrate several steps into one step, or in addition to these steps, perform more steps sequentially or in parallel, and the invention is not limited thereby.

雖然本發明使用以上實施例進行說明,但需要注意的是,這些描述並非用以限縮本發明。相反地,此發明涵蓋了熟習此技藝人士顯而易見的修改與相似設置。所以,申請權利要求範圍須以最寬廣的方式解釋來包含所有顯而易見的修改與相似設置。Although the present invention is described using the above embodiments, it should be noted that these descriptions are not intended to limit the present invention. On the contrary, this invention covers modifications and similar arrangements which will be obvious to one skilled in the art. Therefore, the scope of the claims of the application must be interpreted in the broadest manner to include all obvious modifications and similar arrangements.

10,60:儲存裝置 110,600:實體層 122:均衡器 1225:寄存器 123:眼圖分析器 124:解串器 126:填充元產生器 128:符碼解碼器 129,660:多工器 130:媒體存取控制層 150:處理單元 170:中斷產生器 210:第一級連續時間線性均衡器 230:一階判決回饋均衡器 S510~S590,S710~S730:方法步驟 620:資料緩存器 640:控制電路10,60:Storage device 110,600:Solid layer 122:Equalizer 1225:Register 123:Eye diagram analyzer 124:Deserializer 126: Fill element generator 128: Code decoder 129,660:Mux 130:Media access control layer 150: Processing unit 170:Interrupt generator 210: First level continuous time linear equalizer 230: First-order decision feedback equalizer S510~S590, S710~S730: Method steps 620: Data cache 640:Control circuit

圖1為依據本發明實施例的儲存裝置的方塊圖。FIG. 1 is a block diagram of a storage device according to an embodiment of the present invention.

圖2為依據本發明實施例的均衡器的示意圖。FIG. 2 is a schematic diagram of an equalizer according to an embodiment of the present invention.

圖3為依據本發明實施例的開眼狀態的眼圖。FIG. 3 is an eye diagram in an eye-open state according to an embodiment of the present invention.

圖4為依據本發明實施例的開眼狀態的眼圖。FIG. 4 is an eye diagram in an eye-open state according to an embodiment of the present invention.

圖5為依據本發明實施例的均衡調整的方法流程圖。FIG. 5 is a flow chart of a method of equalization adjustment according to an embodiment of the present invention.

圖6為依據本發明實施例的儲存裝置的方塊圖。FIG. 6 is a block diagram of a storage device according to an embodiment of the present invention.

圖7為依據本發明實施例的均衡調整的方法流程圖。FIG. 7 is a flow chart of a method of equalization adjustment according to an embodiment of the present invention.

S510~S590:方法步驟S510~S590: Method steps

Claims (13)

一種電腦程式產品,用於均衡調整,包含由一儲存裝置的一處理單元載入並執行的程式碼: 在偵測到一符碼解碼錯誤後,反覆調整一均衡器的參數,直到調整失敗或者偵測到上述均衡器輸出的連續波形屬於一開眼狀態時為止;以及 在偵測到上述符碼解碼錯誤後,不斷輸出一填充元給一媒體存取控制層,用於取代一符碼解碼器的輸出結果,直到調整失敗或者偵測到上述均衡器輸出的連續波形屬於上述開眼狀態時為止。A computer program product for equalization adjustment, comprising program code loaded and executed by a processing unit of a storage device: After detecting a code decoding error, repeatedly adjust the parameters of an equalizer until the adjustment fails or it is detected that the continuous waveform output by the equalizer belongs to an eye-opening state; and After detecting the above-mentioned symbol decoding error, a padding element is continuously output to a media access control layer to replace the output result of a symbol decoder until the adjustment fails or the continuous waveform output by the above-mentioned equalizer is detected. Until it reaches the above-mentioned eye-opening state. 如請求項1所述的電腦程式產品,包含程式碼: 在收到一中斷訊號後,通過檢視一中斷產生器中寄存器的內容來知道發生上述符碼解碼錯誤。A computer program product as described in request 1, containing program code: After receiving an interrupt signal, it is known that the above code decoding error has occurred by checking the contents of a register in an interrupt generator. 如請求項1所述的電腦程式產品,包含程式碼: 在偵測到上述均衡器輸出的連續波形屬於上述開眼狀態或者調整失敗後,輸出上述符碼解碼器的解碼結果給上述媒體存取控制層,用於取代上述填充元。A computer program product as described in request 1, containing program code: After detecting that the continuous waveform output by the equalizer belongs to the eye-opening state or the adjustment fails, the decoding result of the code decoder is output to the media access control layer to replace the filling element. 如請求項1所述的電腦程式產品,其中,偵測到上述符碼解碼錯誤後經過一段預設時間還沒有偵測到上述均衡器輸出的連續波形屬於上述開眼狀態時,代表調整失敗。The computer program product as claimed in claim 1, wherein if the continuous waveform output by the equalizer is not detected to belong to the eye-opening state after a preset period of time after detecting the code decoding error, it represents an adjustment failure. 如請求項1所述的電腦程式產品,其中,在嘗試過所有候選參數值組合來調整上述均衡器後還沒有偵測到上述均衡器輸出的連續波形屬於上述開眼狀態,代表調整失敗。The computer program product as described in claim 1, wherein after trying all candidate parameter value combinations to adjust the equalizer, it is still not detected that the continuous waveform output by the equalizer belongs to the eye-opening state, indicating that the adjustment has failed. 如請求項1所述的電腦程式產品,其中,上述符碼解碼錯誤代表從上述均衡器輸出的資料轉換不出任何有效碼。The computer program product as claimed in claim 1, wherein the code decoding error means that no valid code can be converted from the data output by the equalizer. 一種均衡調整方法,由一儲存裝置的一處理單元載入並執行程式碼時實施,包含: 在偵測到一符碼解碼錯誤後,反覆調整一均衡器的參數,直到調整失敗或者偵測到上述均衡器輸出的連續波形屬於一開眼狀態時為止;以及 在偵測到上述符碼解碼錯誤後,不斷輸出一填充元給一媒體存取控制層,用於取代一符碼解碼器的輸出結果,直到調整失敗或者偵測到上述均衡器輸出的連續波形屬於上述開眼狀態時為止。A balance adjustment method is implemented when a processing unit of a storage device loads and executes program code, including: After detecting a code decoding error, repeatedly adjust the parameters of an equalizer until the adjustment fails or it is detected that the continuous waveform output by the equalizer belongs to an eye-opening state; and After detecting the above-mentioned symbol decoding error, a padding element is continuously output to a media access control layer to replace the output result of a symbol decoder until the adjustment fails or the continuous waveform output by the above-mentioned equalizer is detected. Until it reaches the above-mentioned eye-opening state. 如請求項7所述的均衡調整方法,包含: 在偵測到上述均衡器輸出的連續波形屬於上述開眼狀態或者調整失敗後,輸出上述符碼解碼器的解碼結果給上述媒體存取控制層,用於取代上述填充元。The equalization adjustment method as described in request item 7 includes: After detecting that the continuous waveform output by the equalizer belongs to the eye-opening state or the adjustment fails, the decoding result of the code decoder is output to the media access control layer to replace the filling element. 一種均衡調整裝置,包含: 一均衡器; 一符碼解碼器,耦接上述均衡器,用於從上述均衡器接收主機資料; 一處理單元,耦接上述均衡器和上述符碼解碼器,在偵測到從上述符碼解碼器傳送的一符碼解碼錯誤後,反覆調整上述均衡器的參數,直到調整失敗或者偵測到上述均衡器輸出的連續波形屬於一開眼狀態時為止; 一填充元產生器; 一媒體存取控制層,耦接上述處理單元;以及 一多工器,包含一輸入端和一輸出端,上述輸入端耦接上述符碼解碼器和上述填充元產生器,上述輸出端耦接上述媒體存取控制層, 其中,上述處理單元在偵測到上述符碼解碼錯誤後,控制上述多工器以將上述填充元產生器連接至上述媒體存取控制層,用於讓上述填充元產生器不斷輸出一填充元給上述媒體存取控制層,取代上述符碼解碼器的輸出結果,直到調整失敗或者偵測到上述均衡器輸出的連續波形屬於上述開眼狀態時為止。An equalization adjustment device, including: an equalizer; a code decoder, coupled to the above-mentioned equalizer, for receiving host data from the above-mentioned equalizer; A processing unit, coupled to the above-mentioned equalizer and the above-mentioned symbol decoder, after detecting a symbol decoding error transmitted from the above-mentioned symbol decoder, repeatedly adjusts the parameters of the above-mentioned equalizer until the adjustment fails or detects a The continuous waveform output by the above-mentioned equalizer belongs to the eye-opening state; a fill element generator; a media access control layer coupled to the above processing unit; and A multiplexer, including an input terminal and an output terminal, the input terminal is coupled to the code decoder and the stuffing element generator, and the output terminal is coupled to the media access control layer, Wherein, after detecting the code decoding error, the processing unit controls the multiplexer to connect the stuffing unit generator to the media access control layer, so that the stuffing unit generator continuously outputs a stuffing unit. The media access control layer replaces the output result of the code decoder until the adjustment fails or it is detected that the continuous waveform output by the equalizer belongs to the eye-opening state. 如請求項9所述的均衡調整裝置,包含: 一中斷產生器,包含一寄存器,耦接上述符碼解碼器和上述處理單元, 其中,上述處理單元在從上述中斷產生器收到一中斷訊號後,通過檢視上述中斷產生器中上述寄存器的內容來知道發生上述符碼解碼錯誤。The equalization adjustment device as described in claim 9, including: an interrupt generator, including a register, coupled to the above-mentioned code decoder and the above-mentioned processing unit, Wherein, after receiving an interrupt signal from the interrupt generator, the processing unit knows that the code decoding error occurs by checking the contents of the register in the interrupt generator. 如請求項9所述的均衡調整裝置,其中,上述處理單元在偵測到上述均衡器輸出的連續波形屬於上述開眼狀態或者調整失敗後,控制上述多工器以將上述符碼解碼器連接至上述媒體存取控制層,用於輸出上述符碼解碼器的解碼結果給上述媒體存取控制層,取代上述填充元。The equalization adjustment device according to claim 9, wherein the processing unit controls the multiplexer to connect the code decoder to the The above-mentioned media access control layer is used to output the decoding result of the above-mentioned code decoder to the above-mentioned media access control layer, replacing the above-mentioned padding element. 如請求項9所述的均衡調整裝置,其中,上述處理單元在偵測到上述符碼解碼錯誤後經過一段預設時間還沒有偵測到上述均衡器輸出的連續波形屬於上述開眼狀態,或者上述處理單元在嘗試過所有候選參數值組合來調整上述均衡器後還沒有偵測到上述均衡器輸出的連續波形屬於上述開眼狀態,代表調整失敗。The equalization adjustment device according to claim 9, wherein the processing unit has not detected that the continuous waveform output by the equalizer belongs to the eye-opening state after a preset period of time after detecting the symbol decoding error, or the above-mentioned After trying all candidate parameter value combinations to adjust the equalizer, the processing unit has not detected that the continuous waveform output by the equalizer belongs to the eye-opening state, indicating that the adjustment failed. 如請求項9所述的均衡調整裝置,包含: 一資料緩存器; 一控制電路,耦接上述資料緩存器;以及 一多工器,包含一輸入端和一輸出端,上述輸入端耦接上述控制電路和接收器,上述輸出端耦接上述均衡器, 其中,上述處理單元在偵測到上述均衡器輸出的連續波形屬於上述開眼狀態後,控制上述多工器將上述控制電路連接到上述均衡器,並且驅動上述控制電路將偵測到上述符碼解碼錯誤後緩存的主機資料重新輸入上述均衡器。The equalization adjustment device as described in claim 9, including: a data buffer; a control circuit coupled to the above data register; and A multiplexer including an input terminal and an output terminal, the input terminal is coupled to the control circuit and the receiver, and the output terminal is coupled to the equalizer, Wherein, after detecting that the continuous waveform output by the equalizer belongs to the eye-open state, the processing unit controls the multiplexer to connect the control circuit to the equalizer, and drives the control circuit to detect the decoding of the symbol After an error cached host data is re-entered into the above equalizer.
TW109137353A 2020-04-14 2020-04-14 Computer program product and method and apparatus for adjusting equalization TWI824191B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109137353A TWI824191B (en) 2020-04-14 2020-04-14 Computer program product and method and apparatus for adjusting equalization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109137353A TWI824191B (en) 2020-04-14 2020-04-14 Computer program product and method and apparatus for adjusting equalization

Publications (2)

Publication Number Publication Date
TW202139187A TW202139187A (en) 2021-10-16
TWI824191B true TWI824191B (en) 2023-12-01

Family

ID=79601015

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109137353A TWI824191B (en) 2020-04-14 2020-04-14 Computer program product and method and apparatus for adjusting equalization

Country Status (1)

Country Link
TW (1) TWI824191B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12093131B2 (en) 2023-01-17 2024-09-17 Silicon Motion, Inc. Interface circuit, memory controller and method for calibrating signal processing devices in an interface circuit

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4053723A (en) * 1975-05-28 1977-10-11 Telefonaktiebolaget L M Ericsson Method and apparatus for measuring the bit error frequency in a cable caused by crosstalk between line pairs during transmission of a 3-level coded pcm signal
CN101119185A (en) * 2006-08-02 2008-02-06 凌阳科技股份有限公司 Automatic equalizer and digital eye pattern detecting unit and method
US20080175310A1 (en) * 2007-01-19 2008-07-24 Samsung Electronics Co., Ltd. Receiver with equalizer and method of operation
US9235543B2 (en) * 2012-11-26 2016-01-12 International Business Machines Corporation Systems for signal detection
US20170272164A1 (en) * 2016-03-21 2017-09-21 Cisco Technology, Inc. Pulse amplitude modulation (pam) over multi-mode link with receiver spatial filtering
CN110933352A (en) * 2019-11-27 2020-03-27 浙江大华技术股份有限公司 Fisheye image correction method and digital video recorder

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4053723A (en) * 1975-05-28 1977-10-11 Telefonaktiebolaget L M Ericsson Method and apparatus for measuring the bit error frequency in a cable caused by crosstalk between line pairs during transmission of a 3-level coded pcm signal
CN101119185A (en) * 2006-08-02 2008-02-06 凌阳科技股份有限公司 Automatic equalizer and digital eye pattern detecting unit and method
US20080175310A1 (en) * 2007-01-19 2008-07-24 Samsung Electronics Co., Ltd. Receiver with equalizer and method of operation
US8050317B2 (en) * 2007-01-19 2011-11-01 Samsung Electronics Co., Ltd. Receiver with equalizer and method of operation
US9235543B2 (en) * 2012-11-26 2016-01-12 International Business Machines Corporation Systems for signal detection
US20170272164A1 (en) * 2016-03-21 2017-09-21 Cisco Technology, Inc. Pulse amplitude modulation (pam) over multi-mode link with receiver spatial filtering
CN110933352A (en) * 2019-11-27 2020-03-27 浙江大华技术股份有限公司 Fisheye image correction method and digital video recorder

Also Published As

Publication number Publication date
TW202139187A (en) 2021-10-16

Similar Documents

Publication Publication Date Title
US11991025B2 (en) Transceiver parameter determination
US20240064216A1 (en) Device-to-device link training
US9954576B2 (en) System and method for PAM-4 transmitter bit equalization for improved channel performance
KR102143042B1 (en) Voltage reference calculation for memory judgment feedback equalizer
US20160041935A1 (en) Electronic device, communication control circuit, and communication control method
US11349692B2 (en) Computer program product and method and apparatus for adjusting equalization
US9935682B1 (en) System and method for PAM-4 transmitter bit equalization for improved channel performance
US11354062B2 (en) Memory system and operation method thereof
TWI824191B (en) Computer program product and method and apparatus for adjusting equalization
US20240323062A1 (en) Equalization for Pulse-Amplitude Modulation
TWI712050B (en) Computer program product and method and apparatus for adjusting equalization
US20230046702A1 (en) Temperature based decision feedback equalization retraining
CN113495849A (en) Data stream cutting device and method for physical layer
US10103910B1 (en) Pulse amplitude modulation equalization optimization system
US20190073255A1 (en) Storage device, host system, and information processing system
US20070022226A1 (en) Direct memory access system for iSCSI
WO2022062467A1 (en) Dual reference voltage generator, equalization circuit, and memory
US11924008B2 (en) Compensation circuit for adjusting ratio of coincidence counts of data patterns, and memory device including the same, and operating method thereof
US10660197B2 (en) Differential pair group equalization system
US10721105B2 (en) Joint adaptation of high and low frequency gains of a linear equalizer
US20210004074A1 (en) Phy calibration for active-idle power reduction
EP2811483A2 (en) Methods and apparatus for error rate estimation
US20240126663A1 (en) Semiconductor device and link configuring method
KR20220011226A (en) Memory decision feedback equalizer
US10581652B1 (en) System and method for PAM-4 transmitter bit equalization for improved channel performance beyond 32 Gbps