发明名称 METHOD FOR MANAGING COMMANDS IN COMMAND QUEUE, MEMORY CONTROL CIRCUIT UNIT AND MEMORY STORAGE APPARATUS
摘要 A method for managing commands in a command queue, a memory controller, and a memory storage apparatus are provided. The method includes: storing at least one first command in a command queue register according to a plurality of first indication bits and updating the first indication bits according to a current storage status of the command queue register; generating a plurality of updated second indication bits according to the updated first indication bits and a plurality of second indication bits. The method also includes: obtaining at least one first command index corresponding to at least one register block storing the at least one first command in the command queue register according to the updated second indication bits and adding the at least one first command index into a command index register; executing commands corresponding to un-executed command indices in the command queue register.
申请公布号 US2015012687(A1) 申请公布日期 2015.01.08
申请号 US201314017284 申请日期 2013.09.03
申请人 Phison Electronics Corp. 发明人 Huang Yi-Hsiang;Chan Chao-Ming
分类号 G06F3/06 主分类号 G06F3/06
代理机构 代理人
主权项 1. A method for managing a plurality of commands received from a host system, the method comprising: configuring a command queue register, a first indicator, and a second indicator, wherein the command queue register comprises a plurality of command transient units, and each of the command transient units has a command index pointing to a command storage address; configuring a command index register, wherein the command index register comprises a start index, an end index, and an outstanding command index; receiving at least one first command from the host system; storing the at least one first command in the command queue register according to a plurality of first indication bits in the first indicator and updating the first indication bits according to a current storage status of the command queue register to generate a plurality of updated first indication bits; generating a plurality of updated second indication bits according to the updated first indication bits in the first indicator and a plurality of second indication bits in the second indicator; obtaining the number of the at least one first command and at least one first command index among the command indices according to the updated second indication bits, wherein the at least one first command index corresponding to at least one command transient unit storing the at least one first command in the command queue register; adding the at least one first command index into the command index register and updating the end index according to the number of the at least one first command; and executing the commands corresponding to a plurality of un-executed command indices recorded in the command index register, wherein the commands are stored in corresponding command transient units among the command transient units of the command queue register.
地址 Miaoli TW