A method is disclosed for selectively overlaying portions of a default firmware code for a microcontroller of an fpga interface device. The fpga interface device includes a microcontroller, an on-board fpga, and a memory having first and second pages. Upon initial power-up of the interface device, the default firmware code is loaded into the first memory page. Thereafter, the microcontroller executes instructions received from a host system using the firmware code loaded in the first memory page. Where it is desired to update or modify the firmware code, an overlay code is stored in the second memory page. The overlay code corresponds to selected portions of the default firmware code. overlay flags are asserted for each of the selected portions of the default firmware code for which a corresponding overlay code is loaded in the second memory page. Then, during execution of subsequent instructions received from the host system, the overlay code is substituted for corresponding portions of the default firmware code for which the overlay flags are asserted.
|
11. A method of configuring an on-board fpga and a microcontroller both of an fpga interface device, the method comprising the steps of:
storing a default firmware code for the microcontroller for the fpga interface device on a first page of a first memory; storing a default on-board fpga configuration on a second page of the first memory; loading the default firmware code from the first memory into a first page of a second memory of the fpga interface device, whereby the microcontroller executes instructions received from a host using the default firmware code read from the first memory page; and downloading an overlay code into a second page of the second memory of the fpga interface device, the overlay code corresponding to selected portions of the default firmware code.
17. An fpga interface device, comprises:
a microcontroller for receiving and executing instructions from a host; a memory for loading the default firmware code into a first page of the memory of the fpga interface device and for downloading an overlay code into a second page of the memory of the fpga interface device, the overlay code corresponding to selected portions of the default firmware code stored in the first memory page, wherein the microcontroller executes instructions received from the host using the default firmware code read from the first memory page and otherwise executes instructions from the host using portions of the default firmware code and selected portions of the overlay code, wherein those portions of the default firmware code having asserted overlay flags are replaced by corresponding portions of the overlay code.
1. A method of selectively overlaying portions of a default firmware code for a microcontroller of an fpga interface device, the method comprising the steps of:
loading the default firmware code into a first page of a memory of the fpga interface device, whereby the microcontroller of the fpga interface device executes instructions received from a host using the default firmware code read from the first memory page; downloading an overlay code into a second page of the memory, the overlay code corresponding to selected portions of the default firmware code stored in the first memory page; asserting an overlay flag of each portion of the default firmware code for which a corresponding portion of the overlay code is loaded in the second memory page; and selectively substituting the overlay code for the default firmware code during execution of a subsequent instruction, wherein those portions of the default firmware code having asserted overlay flags are replaced by corresponding portions of the overlay code.
9. A method of selectively overlaying portions of a default firmware code for a microcontroller of an fpga interface device, the method comprising the steps of:
loading the default firmware code into a first page of a memory of the fpga interface device, wherein the microcontroller of the fpga interface device executes instructions received from a host using the default firmware code read from the first memory page; downloading an overlay code into a second page of the memory of the fpga interface device, the overlay code corresponding to selected portions of the default firmware code stored in the first memory page; asserting an overlay flag of each portion of the default firmware code for which a corresponding portion of the overlay code is loaded in the second memory page; and selectively substituting the overlay code for the default firmware code during execution of a subsequent instruction, wherein those portions of the default firmware code having asserted overlay flags are replaced by corresponding portions of the overlay code.
2. The method of
accessing from the first memory page a command of the default firmware code associated with execution of the subsequent instruction; determining whether the overlay flag corresponding to the command is asserted; accessing from the second memory page, in response to the determining step, a corresponding command of the overlay code; and executing the corresponding command of the overlay code.
3. The method of
4. The method of
setting a success flag associated with the command of the default firmware code loaded in the first memory page; returning to the execution flow of the microcontroller to the first memory page; and skipping, in response to the success flag, the command of the default firmware code when executing subsequent commands of the instruction.
7. The method of
10. The method of
12. The method of
13. The method of
14. The method of
15. The method of
16. The method of
18. The fpga interface device of
|
This application relates to the following commonly owned U.S. Patent Applications, all filed on the same day as this application, and all incorporated herein by reference:
U.S. Pat. No. 6,487,618 issued Nov. 26, 2002, entitled "METHOD FOR RESETTING AN FPGA INTERFACE DEVICE" invented by Conrad A. Theron and Donald H. St. Pierre, Jr.
U.S. Pat. No. 6,560,665 issued May 6, 2003, entitled "EMBEDDING FIRMWARE FOR A MICROPROCESSOR WITH CONFIGURATION DATA FOR A FIELD PROGRAMMABLE GATE ARRAY" invented by Edwin W. Resler, Conrad A. Theron, Donald H. St. Pierre, Jr., and Carl H. Carmichael
U.S. Pat. No. 6,308,311 issued Oct. 23, 2001, entitled "METHOD FOR RECONFIGURING A FIELD PROGRAMMABLE GATE ARRAY FROM A HOST" invented by Carl H. Carmichael, Conrad A. Theron, and Donald H. St. Pierre, Jr.
U.S. Pat. No. 6,175,530 issued Jan. 16, 2001, entitled "METHOD FOR DETECTING LOW POWER ON AN FPGA INTERFACE DEVICE" invented by Conrad A. Theron, Edwin W. Resler, and Donald H. St. Pierre, Jr.
U.S. Pat. No. 6,094,063 issued Jul. 25, 2000, entitled "METHOD FOR LEVEL SHIFTING LOGIC SIGNAL VOLTAGE LEVELS" invented by Donald H. St. Pierre, Jr., and Conrad A. Theron, and
U.S. Pat. No. 6,351,809 issued Feb. 26, 2002, entitled "METHOD OF DISGUISING A USB PORT CONNECTION" invented by Donald H. St. Pierre, Jr. and Conrad A. Theron,
U.S. Pat. No. 6,425,077 issued Jul. 23, 2002, entitled "SYSTEM AND METHOD FOR READING DATA FROM A PROGRAMMABLE LOGIC DEVICE" invented by Thach-Kinh Le, Chakravarthy K. Allamsetty, Carl H. Carmichael, Arun K. Mandhania, Donald H. St. Pierre, Jr. and Conrad A. Theron, and
Ser. No. 09/311,628 entitled "SYSTEM AND METHOD FOR TESTING A CIRCUIT IMPLEMENTED ON A PROGRAMMABLE LOGIC DEVICE" invented by Chakravarthy K. Allamsetty.
This invention relates generally to programmable devices such as field programmable gate arrays, and specifically to methods for selectively replacing microcontroller firmware code.
The CLBs 2, IOBs 3, and PSMs 5 of FPGA 1 are programmed by loading configuration data into memory cells (not shown for simplicity) connected to CLBs 2, IOBs 3, and PSMs 5. These memory cells control various switches and multiplexers within respective CLBs 2, IOBs 3, and PSMs 5 which implement logic and routing functions specified by the configuration data in the memory cells. Configuration data is provided to FPGA 1 via a configuration port 6 and thereafter routed to the memory cells using a dedicated configuration structure (not shown here but described in U.S. Pat. No. Re 34,363, 5,430,687, 5,742,531, and 5,844,829). Configuration port 6 is connected to the dedicated configuration structure by a configuration access port (CAP) 7, which is essentially a bus access point. Further information regarding various types of FPGAs can be found in "The Programmable Logic Data Book 1998", published in 1998 by Xilinx, Inc., and available from Xilinx, Inc., 2100 Logic Drive, San Jose, Calif. 95124.
Configuration data is typically downloaded to an FPGA from a host system such as a personal computer or workstation using an FPGA interface cable, as illustrated in FIG. 2. Well known design tool software operating on a suitable microprocessor within host system 20 creates a configuration bitstream which embodies the logic functions desired to be implemented by the target FPGA. The configuration bitstream is downloaded from host system 20 to interface cable 15 using, for instance, a serial port or a USB port. The interface cable 15 preferably includes an on-board FPGA that customizes the configuration bitstream received from the host system 20 into a format usable by target FPGA 10, although in some embodiments host system 20's microprocessor is used to customize the configuration bitstream for target FPGA 10. Since an FPGA is able to customize configuration data at a rate much faster than that of a microprocessor, FPGA interface cables having an on-board FPGA provide superior performance.
The default firmware code for the interface cable's microcontroller is typically stored in a dedicated, non-volatile memory. Upon power-up of the interface cable, the microcontroller reads the firmware code from the dedicated memory, and then boots up using the default firmware code. If it becomes necessary to modify the firmware code, e.g., where a software bug is discovered in the default firmware, or perhaps where a newer version of the firmware code is available, the dedicated memory is typically re-programmed with the new firmware code. Then, the interface cable is reset, and the microcontroller boots up using the new firmware code read from the dedicated memory.
Updating the microcontroller's firmware code in the manner described above is burdensome and time consuming. First, resetting the interface cable typically requires the user to manually activate a reset switch on the interface device, which is inconvenient and time consuming. Further, since the entire interface cable is reset in order to re-boot the microcontroller, the on-board FPGA must also be reset and then configured again, thereby undesirably consuming additional time. In addition, since the new firmware code is typically written to the same memory space that stores the default design, the default firmware code is no longer available after the firmware update. Accordingly, if a problem develops with the new firmware code, the default firmware code is not available, and thus must be re-programmed into the memory and the interface cable again reset.
The present invention provides a method for selectively overlaying portions of the default firmware code for a microcontroller of an FPGA interface device. In accordance with the present invention, an FPGA interface device includes a microcontroller, an on-board FPGA, and a memory having first and second pages. Upon initial power-up of the interface device, the default firmware code is loaded into the first memory page. Thereafter, the microcontroller executes instructions received from a host system using the firmware code loaded into the first memory page. Where it is desired to update or modify the firmware code, an overlay code is downloaded to the interface device and thereafter stored in the second memory page. The overlay code corresponds to selected portions of the default firmware code. Overlay flags are asserted for each of the selected portions of the default firmware code for which a corresponding overlay code is loaded in the second memory page. Then, during execution of subsequent instructions received from the host system, the overlay code is substituted for corresponding portions of the default firmware code for which the overlay flags are asserted. In this manner, the default firmware code may be selectively replaced by a new overlay code without resetting the interface device, thereby saving time. Further, by substituting the overlay code for selected portions of the default firmware code, as opposed to downloading an entirely new firmware code, the default firmware code is advantageously retained in the first memory page. Thus, for example, if the new overlay code is defective, the default firmware is easily reinstated by selectively de-asserting the overlay flags.
Like components in the Figures are similarly labeled.
Interface device 30 includes an on-board FPGA 32, a microcontroller 34, a static random access memory (SRAM) 36, and a serial programmable read-only memory (SPROM) 38. Interface device 30 also includes a Universal Serial Bus (USB) interface 40 and an RS-232 serial port interface 42, which are coupled to the USB and serial ports, respectively, of host system 20.
On-board FPGA 32 is coupled to receive serial data from SPROM 38 via its serial port 32s, and is coupled to provide data to and receive data from SRAM 36 in a byte-wide parallel format via its parallel port 32p. Data is transferred between on-board FPGA 32 and microcontroller 34 via an address/data bus 33. On-board FPGA 32 and microcontroller 34 each provide control signals to one or more dedicated pins of the other via control lines, shown collectively in
Interface device 30 further includes register 31 for controlling mode pins of FPGA 32, and optionally a one-shot device 39 for resetting FPGA 32.
Interface device 30 receives its supply voltage and ground potential reference from an external voltage supply 11 via flying wires 44a and 44b, respectively. A conventional voltage converter circuit 45 including suitable voltage step-up and step-down circuits and voltage regulators provides suitable voltage planes for interface device 30. In one embodiment, converter circuit 45 provides 5 volt and 3.3 volt power planes. In some embodiments, external voltage supply 11 is located on the circuit board of target FPGA 10 and, in other embodiments, external voltage supply 11 is a dedicated supply external to the circuit boards of both interface device 30 and target 10. A low power detection circuit 46 has an input terminal coupled to a power plane provided by converter circuit 45, and has an output terminal coupled to microcontroller 34 via signal line 47. In one embodiment, low power detection circuit 46 is incorporated into converter 45. In another embodiment, low power detection circuit 46 is formed by configuring a portion of FPGA 32.
On-board FPGA 32 is generally of the type discussed above with respect to
In one embodiment, microcontroller 34 is an 80930A microcontroller available from Intel Corporation of Santa Clara, Calif., and SPROM 38 is a XC1701 SPROM available from Xilinx, Incorporated. In some embodiments, SPROM 38 has a surface area less than 0.395 inches by 0.395 inches. Further, although shown in
In preferred embodiments, a first portion 32a of on-board FPGA 32 is configured to receive serial data from SPROM 38, parallelize the serial data, and provide the resulting parallel data to SRAM 36 in a byte-wide format, and a second portion 32b of on-board FPGA 32 is configured to monitor data received on serial port 42 via signal line 37. First and second on-board FPGA portions 32a and 32b are independent of one another and independent of the remaining portions of on-board FPGA 32.
Interface device 30 actively interfaces between host system 20 and target FPGA 10 during configuration and/or testing of target FPGA 10. To configure target FPGA 10 to implement one or more desired functions, a well known design tool is used to create a configuration bit file which embodies the one or more desired functions. A well known download software tool operating on host system 20's microprocessor sends the configuration bit file as a configuration bitstream to interface device 30 via USB port connection 40 or serial port connection 42. Microcontroller 34 routes the configuration bitstream via bus 33 to on-board FPGA 32 which, in turn, customizes the configuration data into a format compatible with and optimized for target FPGA 10. The resulting customized configuration data is provided to target FPGA 10 via signal lines 48. In some embodiments, the configuration bitstream is downloaded from host system 20 to interface device 30 in a compressed format, in which case microcontroller 34 uses a suitable well known de-compression technique to de-compress the configuration bitstream. In other embodiments, on-board FPGA 32 is configured to de-compress the configuration bitstream downloaded from host system 20.
In accordance with the present invention, both the default configuration design for on-board FPGA 32 and the default firmware code for microcontroller 34 are pre-loaded into SPROM 38. In preferred embodiments, the default configuration design for on-board FPGA 32 is stored in a first page of SPROM 38, and the default firmware code for microcontroller 34 is stored in a second page of SPROM 38. Storing both the default on-board FPGA configuration and the default microcontroller firmware in a single serial memory, i.e., SPROM 38, is in contrast to conventional interface devices which store microcontroller firmware in a dedicated, byte-wide memory element such as, for instance, EPROM or flash memory. By storing the default firmware code for microcontroller 34 and the default configuration design for on-board FPGA 32 in the same memory, which as mentioned above preferably has a surface area less than 0.395 inches by 0.395 inches, the dedicated firmware EPROM or flash memory is eliminated, thereby advantageously conserving board area on interface device 30.
On-board FPGA 32 may be configured in either a serial mode or a parallel mode, as determined by the logic states of dedicated configuration mode pins 32c and 32d. In some embodiments, dedicated logic 31 external to on-board FPGA 32 controls the logic state of on-board FPGA 32's dedicated configuration mode pins. In such embodiments, this external dedicated logic is configured to toggle the configuration mode pins of on-board FPGA 32 in response to a control signal received from on-board FPGA 32. As shown in
Initially, the configuration mode pins are set to the first logic state, e.g., logic high, so that on-board FPGA 32 reads its default configuration design from SPROM 38.
Referring also to FIG. 4 and the flow chart of
After FPGA 32 is configured with the default configuration, at steps 503 and 504, on-board FPGA 32 monitors the serial data clocked from SPROM 38 for the sentinel signal, which identifies the beginning of the default firmware code for microcontroller 34. When the sentinel signal has been detected, at step 505, switch 50 is reconfigured to route the subsequent firmware code to first on-board FPGA portion 32a which, as mentioned above, parallelizes the serial firmware code so as to be compatible with the byte-wide data pins of SRAM 36. The resultant parallel firmware code is then written to SRAM 36 (step 506) in a byte-wide format, and microcontroller 34 thereafter boots up using the firmware code received from SPROM 38 (step 507). In another embodiment, no SRAM 36 is provided, and FPGA 32 routes the parallelized data to internal RAM within itself.
In preferred embodiments, first on-board FPGA portion 32a includes two byte-wide registers which alternately load serial bytes from SPROM 38 and drive parallel bytes to SRAM 36.
Referring again to
Present embodiments advantageously allow the configuration of on-board FPGA 32 to be modified in-system from host system 20, without having to power-down interface device 30 or re-program SPROM 38. Being able to change the configuration design of on-board FPGA 32 is desirable, for instance, when using interface device 30 as a configuration conduit for various target FPGAs having different configuration formats.
In accordance with the present invention, a new on-board FPGA configuration design is downloaded from host system 20 to microcontroller 34 using either USB port 40 or RS-232 port 42, along with a command to reconfigure on-board FPGA 32 in parallel configuration mode.
As explained above, present embodiments use serial port 32s of on-board FPGA 32 for reading the default configuration design from SPROM 38, and use parallel port 32p of on-board FPGA 32 for reading new configuration designs from SRAM 36. In this manner, on-board FPGA 32 can be reconfigured without powering down interface device 30, thereby advantageously allowing interface device 30 to be easily adapted to perform additional functions on the target FPGAs beyond simply configuring and testing the FPGAs. Note that the target need not be a single FPGA device but may be several FPGAs, several CPLDs, or a combination of FPGAs, CPLDs and other in-system-programmable devices. A CPLD (complex programmagle logic device) includes a plurality of AND/OR structures interconnected by a programmable routing structure. Further, by using parallel port 32p to read new configuration designs from SRAM 36, present embodiments are able to retain the default on-board FPGA configuration design in SPROM 38, thereby allowing on-board FPGA 32 to re-boot itself using the default configuration design at any time.
During the reconfiguration process, FPGA 32 places itself into a tristate mode, so that contention will not occur while configuration is in an intermediate state. Usually an outside device applies a control signal to a programming pin PROG (
Using both the parallel and serial ports of on-board FPGA 32 for reading configuration designs in the manner described above with respect to
It may later become desirable to modify the default firmware code for microcontroller 34. For example, a software bug may be discovered within the firmware code, or a newer version of the firmware code may be available for download from host system 20. Present embodiments advantageously allow the default microcontroller firmware to be updated or selectively replaced with new firmware code without having to manually power-down and re-boot interface device 30, and without having to replace or re-program SPROM 38.
As mentioned above, upon initial power-up of interface device 30, on-board FPGA 32 parallelizes the default microcontroller firmware code received serially from SPROM 38 and provides it in byte-wide format to SRAM 36, from which it may be accessed by microcontroller 34 via on-board FPGA 32.
In accordance with present embodiments, SRAM 36 stores microcontroller firmware in an upper page 36a and a lower page 36b, as illustrated in
Thereafter, when a command is received from host system 20, microcontroller 34 first determines whether any overlay code has been downloaded from host system 20 by sensing its internal overlay flag. If the overlay flag is asserted, microcontroller 34 first searches lower SRAM page 36b for corresponding instruction code and, if there is a match, executes the received command using the corresponding overlay instruction code. If there is not a match within lower SRAM page 36b, microcontroller 34 then searches upper page 36a for the corresponding firmware code, and thereafter executes the received command using the default firmware code. In this manner, a user can easily modify or replace selected portions of the default firmware code from host system 20 without having to re-program SPROM 38 or re-boot microcontroller 34. In addition, the default firmware code is advantageously maintained in the upper SRAM page 36a, as well as permanently stored in SPROM 38, thereby allowing microcontroller 34 to operate according to its default firmware code at any time by simply resetting the overlay flags.
Substituting overlay code for default code can be initiated by setting a single flag indicating that some overlay code exists and checking on whether overlay code has been provided for a particular command, or it can be initiated by setting flags for each command having overlay code. The following description assumes there is a single flag. Referring to the flow chart of
If microcontroller 34 determines that the overlay flag is asserted (step 802), thereby indicating that new firmware code is successfully loaded into lower SRAM page 36b, microcontroller 34 changes the page of execution code to lower SRAM page 36b, and then compares the command received from host system 20 to overlay commands loaded within lower look-up table 60b associated with lower SRAM page 36b (step 807). Overlay commands stored in lower look-up table 60b point to start addresses in lower SRAM page 36b where the corresponding overlay instruction codes are located. If a match is found in lower look-up table 60b (step 808), microcontroller 34 retrieves the corresponding overlay instruction code from lower SRAM page 36b (step 809), and executes the command received from host system 20 in accordance with the retrieved overlay instruction code. Microcontroller 34 then sets a success flag (step 810) to indicate that the command has been executed according to the overlay code, thereby alerting the default code not to execute the command. Microcontroller 34 then waits for the next command (step 800).
If a match is not found in lower look-up table 60b (step 808), thereby indicating that there is no overlay code which corresponds to the received command, microcontroller 34 changes the page of execution code to upper SRAM page 36a, and searches upper look-up table 60a for a matching firmware command (step 803). Then, microcontroller 34 executes the received command using the default code as described above with respect to steps 804, 805, and 806.
Present embodiments also allow host system 20 to communicate with microcontroller 34 over the RS-232 serial port even when microcontroller 34 is not responsive to commands from host system 20 such as, for instance, when microcontroller 34 freezes or is servicing a long download file from host system 20. In accordance with the present invention, host system 20 sends a null character having a baud rate which is not normally used for communications between host system 20 and interface device 30 to instruct on-board FPGA 32 to perform some predetermined function, where one or more predetermined functions are defined by the baud rate of the null character. A second portion 32b of on-board FPGA 32 is configured to monitor the data line of RS-232 port 40 via line 37 for null characters sent from host system 20 at these. predetermined baud rates not normally used by host system 20. When such a null character is detected by on-board FPGA portion 32b, on-board FPGA 32 instructs microcontroller 34 to perform one of several predetermined functions, depending upon the baud rate of the null character. In this manner, present embodiments use on-board FPGA 32 to relay commands from host system 20 to microcontroller 34 where direct communication between host system 20 and microcontroller 34 is not working.
Typical valid baud rates over RS-232 serial port 42 are 9600, 19200, 38400, and 57600. The default baud rate is 9600, which corresponds to data characters requiring 83 microseconds per byte. As illustrated in
Sending a null character is also useful when negotiating the highest possible baud rate between host system 20 and interface device 30. Here, host system 20 initially communicates with microcontroller 34 at 9600 baud and, if successful, instructs microcontroller 34 to increase the baud rate of its UART to the next highest rate, e.g., 19200 baud. Host system 20 attempts to communicate with microcontroller 34 at this higher baud rate and, if successful, again instructs microcontroller 34 to increase the UART baud rate to the next highest baud rate. This process continues until the maximum baud rate of the UART of microcontroller 34 or the UART of the host is exceeded, at which point host system 20 is no longer able to communicate with microcontroller 34. Here, host system 20 sends a null character at 300 baud to reset microcontroller 34 via on-board FPGA 32 and, after microcontroller 34 re-boots itself, then instructs microcontroller 34 (at a baud rate of 9600) to change its baud rate to the last successful baud rate.
Host system 20 is able to relay other commands to microcontroller 34 via on-board FPGA 32 by sending null characters at other baud rates. For example, where a user operating host system 20 desires to abort a download from host system 20 to interface device 30, host system 20 sends a null character (one hexadecimal byte) at 600 baud to instruct on-board FPGA 32 to send an interrupt command to microcontroller 34. A byte sent at 600 baud has a pulse width of 1.333 milliseconds. Thus, when portion 32b of on-board FPGA senses a logic low data signal for a period of time between 1 and 1.5 milliseconds, on-board FPGA 32 sends an interrupt signal to microcontroller 34 by, for instance, toggling microcontroller 34's interrupt pin 35a.
The specific null character baud rates mentioned above for resetting and interrupting microcontroller 34, e.g., 300 and 600 baud, are arbitrary, and thus may be of any suitable baud rate which is significantly distinguishable from the baud rates normally used over serial port 42. The specific null character baud rates are preferably less than 9600 baud. In other embodiments, a conventional timer is used to detect null characters sent by host system 20.
As mentioned above with respect to
Low power detection circuit 46 is coupled to monitor the 5-volt plane generated by converter circuit 45, and has an output terminal coupled to microcontroller 34 via signal line 47. Initially, low power detection circuit 46 maintains line 47 at ground potential. Low power detection circuit 46 includes a comparator, resistor network, or other suitable logic which drives signal line 47 to logic high when the voltage on the 5 volt plane falls below a predetermined threshold voltage. In response to the logic high signal on line 47, microcontroller 34 sends to host system 20 a low power flag which notifies host system 20 that the 5 volt plane on interface device 30 has fallen below the predetermined threshold. In response thereto, host system 20 may take appropriate action, such as, for example, alerting the user to the low power condition and/or resetting interface device 30.
In one embodiment in which microcontroller 34 is operational as long as the 5 volt plane stays above approximately 4.3 volts, the predetermined threshold voltage is set to approximately 4.7 volts so as to give microcontroller 34 time to alert host system 20 of the low power condition. The typical RC time constant associated with the 0.4 volt cushion between the predetermined threshold voltage and the minimum operational voltage for microcontroller 34 allows microcontroller 34 sufficient time to send the low power flag to host system 20. In some embodiments, low power detection circuit 46 is implemented within converter circuit 45. In others, low power detection circuit 46 is implemented within FPGA 32.
Preferably, microcontroller 34 sends the low power flag to host system 20 using USB port 40. Here, a special register within host system 20 (not shown) stores the logic state of the low power flag where, for instance, a logic zero indicates that the low power flag is not asserted and a logic one indicates that the low power flag is asserted. In accordance with present embodiments, when detection circuit 46 senses that the voltage on the 5 volt power plane drops below the predetermined threshold voltage, microcontroller 34 asserts the low power flag by sending a logic high data packet to host system 20 over USB port 40. This logic high data packet has a USB endpoint which identifies the above-mentioned special register within host system 20 so that when received by host system 20, the logic high data packet is routed to and loaded into host system 20's special register.
Here, host system 20 is configured to determine the value stored in its special register before sending a command to interface device 30, and in some embodiments is configured to look to the special register in response to any downloading errors reported to host system 20 via USB handshaking. Accordingly, if host system 20 senses a logic one stored in the special register, host system 20 immediately alerts the user that a low power condition exists on interface device 30, and in some embodiments is configured to automatically reset interface device 30 in response to the low power condition. Host system 20 then resets the special register.
Although the low power flag may be sent to host system 20 over RS-232 serial port 42, USB port 40 is preferred since USB standards allow the low power flag to be sent to host system 20 immediately after being reported by detection circuit 46. Applicants have found that present embodiments are able to notify host system 20 of a low power condition via USB port 40 within a few microseconds, which allows host system 20 up to several milliseconds to take appropriate action before power to interface device 30 is lost.
Present embodiments also achieve increased compatibility with a variety of target devices by allowing the maximum voltage level of logic signals of interface device 30 to be converted so as to be compatible with a target device employing logic signals having a lower maximum voltage level. For instance, in one embodiment, interface device 30 employs a 3.3 volt logic level, that is, a signal line pulled to the 3.3 volt supply indicates a logic one, and a grounded signal line indicates a logic zero. If target FPGA 10 is a 3.3 volt device, the 3.3 volt logic signals of interface device 30 are compatible with target device 10 and no adjustment is needed. If, on the other hand, target FPGA 10 is a 2.5 volt device, the 3.3 volt logic levels are stepped down to approximately 2.5 volt logic levels to prevent damage to target FPGA 10.
Referring to
Microcontroller 34 writes to register 74 a control bit having a logic value indicative of whether target FPGA 10 is a 3.3 volt or 2.5 volt device. For example, if target FPGA 10 is a 3.3 volt device, microcontroller 34 writes a logic zero to register 74 and, conversely, if target FPGA 10 is a 2.5 volt device, microcontroller 34 writes a logic one to register 74. If the control bit in register 74 is logic zero, de-multiplexer 72 passes data signals from on-board FPGA output line OUT to output pin OUT_B and turns off switch 76. Thus, 3.3 volt logic high signals are provided from on-board FPGA 32 to target FPGA 10. Conversely, if the control bit in register 74 is logic one, de-multiplexer 72 passes data signals from on-board FPGA output line OUT to output pin OUT_A and turns on switch 76. In this case, 3.3 volt logic high signals from on-board FPGA 32 pass through switch 76 which, as mentioned above, effects a voltage drop of approximately 1 volt. Thus, the 3.3 volt logic signal is stepped down to approximately 2.3 volts before being provided to target FPGA 10. In this manner, 2.5 volt target devices are not driven with 3.3 volt logic high signals which, as mentioned above, may otherwise damage the target device.
Note that specific voltages mentioned in the above example with respect to
According to another aspect of the invention, interface device 30 is configured to disguise its connection to the USB port of host system 20 until interface device 30 is properly configured. According to the Universal. Serial Bus Specification, Revision 1.0, a host computer that will connect to a USB uses two data lines, each having pull-down resistors attached with resistances of 15kΩ±5%. These are weak pull-down resistors and assure that the two data lines will have logic 0 levels when there is no device attached to the USB port of the host computer. A peripheral device attached to this USB port must have a pull-up resistor with resistance of 1.5kΩ±5% attached to one of the two data lines. Thus, when a device is attached to the USB port, the host computer will detect a high voltage on one line (the low-resistance pull-up resistor in the peripheral device will override the host's pull-down resistor). The host detects a "connect" condition when one of the data lines is pulled high for more than 2.5 μs. In response to this combination of voltages, the host expects a sequence of identifying signals from the peripheral device. If the peripheral device does not identify itself within the required time, the host closes its USB port and the peripheral device is thereafter not able to communicate with the host.
In accordance with the invention, a pullup resistor in interface device 30, which the USB Bus Specification requires for peripheral devices, is connected through a switch to the positive voltage supply. When interface device 30 is first connected to host system 20, this switch is turned off, so that host 20 does not detect a high signal indicating the presence of interface device 30. Only after FPGA 32 is configured by SPROM 38, and default microcontroller firmware code is loaded into SRAM 36, is this switch turned on so that host 20 can recognize the presence of interface device 30 and interface device 30 can identify itself.
Referring to
While particular embodiments of the present invention have been shown and described, it will be obvious to those skilled in the art that changes and modifications may be made without departing from this invention in its broader aspects and, therefore, the appended claims encompass within their scope all such changes and modifications as fall within the true spirit and scope of this invention.
Theron, Conrad A., St. Pierre, Jr., Donald H.
Patent | Priority | Assignee | Title |
10289408, | Jan 21 2015 | Western Digital Technologies, INC | Managing wear of system areas of storage devices |
10360985, | Jun 16 2011 | Infineon Technologies LLC | Method and apparatus for staggered start-up of a predefined, random, or dynamic number of flash memory devices |
10387357, | Apr 30 2015 | SIEMENS HEALTHINEERS AG | Field-programmable gate array configuration circuit, radio-frequency unit and magnetic resonance system |
10409940, | Oct 26 2018 | DELL PRODUCTS, L.P. | System and method to proxy networking statistics for FPGA cards |
10411952, | Apr 05 2016 | WAGO Verwaltungsgesellschaft mbH | Automatic localization of a physical network fault at runtime |
10432196, | Jul 22 2015 | Nuvoton Technology Corporation | Communication device, communication system and operation method thereof |
10558576, | Jan 22 2018 | Western Digital Technologies, Inc.; Western Digital Technologies, INC | Storage device with rapid overlay access |
11640466, | Apr 20 2020 | Honeywell International Inc | Firmware for small MCU carrying a large set of features |
11899577, | Nov 24 2020 | Micron Technology, Inc. | Selective garbage collection |
6832374, | Sep 14 2000 | SYNQ TECHNOLOGY, INC | System and method for updating an executing executable file |
6925522, | Oct 26 2000 | Lite-On It Corporation | Device and method capable of changing codes of micro-controller |
6954850, | Oct 30 2000 | PANASONIC ELECTRIC WORKS CO , LTD | Electronic device that uses a pager network for remote reprogramming of the device |
7007159, | May 10 2002 | Sony Corporation of America | System and method for loading and integrating a firmware extension onto executable base system firmware during initialization |
7054947, | Jan 15 2001 | Samsung Electronics Co., Ltd. | Auto-negotiation method for high speed link in gigabit Ethernet using 1000 Base-T standard and apparatus thereof |
7103687, | Dec 22 2003 | Hewlett-Packard Development Company, L.P. | System and method for providing an image file in a computer system |
7146598, | Nov 07 2002 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Method and apparatus for configuring a programmable logic device |
7181606, | Oct 30 2000 | PANASONIC ELECTRIC WORKS CO , LTD | Electronic device that uses a communications network for remote reprogramming of the device |
7206967, | Feb 09 2004 | Altera Corporation | Chip debugging using incremental recompilation and register insertion |
7282949, | Sep 30 2005 | CAVIUM INTERNATIONAL; MARVELL ASIA PTE, LTD | FPGA powerup to known functional state |
7304493, | Sep 30 2005 | GLOBALFOUNDRIES Inc | FPGA powerup to known functional state |
7320067, | Mar 22 2000 | ENDRESS + HAUSER GMBH + CO KG | Method for reprogramming a field device |
7356620, | Jun 10 2003 | Altera Corporation | Apparatus and methods for communicating with programmable logic devices |
7489163, | Sep 30 2005 | GLOBALFOUNDRIES Inc | FPGA powerup to known functional state |
7530046, | Jan 24 2003 | Altera Corporation | Chip debugging using incremental recompilation |
7539900, | Jul 29 2003 | TAHOE RESEARCH, LTD | Embedded microprocessor for integrated circuit testing and debugging |
7574533, | Jun 10 2003 | Altera Corporation | Apparatus and methods for communicating with programmable logic devices |
7650438, | Jun 10 2003 | Altera Corporation | Apparatus and methods for communicating with programmable logic devices |
7676606, | Apr 24 2002 | Cisco Technology, Inc. | Method and system for monitoring and controlling status of programmable devices |
7676665, | May 10 2002 | Sony Corporation of America | Arrangements for initialization-time and run-time integration of firmware and software extensions for supporting add-in hardware |
7797696, | Jun 30 2006 | American Megatrends, Inc. | Dynamically updating a computer system and firmware image utilizing an option read only memory (OPROM) data structure |
8108663, | Mar 15 2007 | Hynix Semiconductor Inc. | Micro controller and method of updating the same |
8190787, | Jun 10 2003 | Altera Corporation | Apparatus and methods for communicating with programmable devices |
8250246, | Jul 09 2008 | II-VI Incorporated; MARLOW INDUSTRIES, INC ; EPIWORKS, INC ; LIGHTSMYTH TECHNOLOGIES, INC ; KAILIGHT PHOTONICS, INC ; COADNA PHOTONICS, INC ; Optium Corporation; Finisar Corporation; II-VI OPTICAL SYSTEMS, INC ; M CUBED TECHNOLOGIES, INC ; II-VI PHOTONICS US , INC ; II-VI DELAWARE, INC; II-VI OPTOELECTRONIC DEVICES, INC ; PHOTOP TECHNOLOGIES, INC | Loading and executing firmware module without resetting operation |
8266611, | Aug 21 2006 | Seagate Technology International | Hard disk drive with disk embedded DOS boot image and firmware download method |
8554959, | Jun 10 2003 | Altera Corporation | Apparatus and methods for communicating with programmable devices |
8555043, | Jun 30 2006 | American Megatrends, Inc. | Dynamically updating a computer system firmware image |
8578360, | Jun 30 2006 | American Megatrends, Inc. | Dynamically updating a computer system and firmware image utilizing an option read only memory (OPROM) data structure |
8625353, | Jun 16 2011 | Infineon Technologies LLC | Method and apparatus for staggered start-up of a predefined, random, or dynamic number of flash memory devices |
8638119, | Feb 14 2004 | TAHOE RESEARCH, LTD | Configurable circuits, IC's, and systems |
8719458, | Jun 10 2003 | Altera Corporation | Apparatus and methods for communicating with programmable devices |
8797062, | Nov 08 2004 | Altera Corporation | Configurable IC's with large carry chains |
8825920, | Jan 20 2010 | MONTEREY RESEARCH, LLC | Field upgradable firmware for electronic devices |
8847622, | Sep 21 2009 | Altera Corporation | Micro-granular delay testing of configurable ICs |
9036423, | Jun 16 2011 | Infineon Technologies LLC | Method and apparatus for staggered start-up of a predefined, random or dynamic number of flash memory devices |
9106553, | Mar 26 2007 | Qualcomm Incorporated | System and method for sharing resources and interfaces amongst connected computing devices |
9231595, | Jun 12 2013 | International Business Machines Corporation | Filtering event log entries |
9274980, | Jun 10 2003 | Altera Corporation | Apparatus and methods for communicating with programmable devices |
9395968, | Jun 30 2006 | American Megatrends, Inc. | Uniquely identifying and validating computer system firmware |
9459857, | Jan 21 2015 | Western Digital Technologies, INC | Managing wear of system areas of storage devices |
9465903, | Nov 18 2014 | XILINX, Inc.; Xilinx, Inc | Programmable IC design creation using circuit board data |
9583190, | Nov 11 2011 | TAHOE RESEARCH, LTD | Content addressable memory in integrated circuit |
9716503, | Jul 22 2015 | Nuvoton Technology Corporation | Function programmable circuit and operation method thereof |
9904608, | Jun 12 2013 | International Business Machines Corporation | Filtering event log entries |
9928919, | Jun 16 2011 | Infineon Technologies LLC | Method and apparatus for staggered start-up of a predefined, random, or dynamic number of flash memory devices |
Patent | Priority | Assignee | Title |
4080651, | Feb 17 1977 | Xerox Corporation | Memory control processor |
5212693, | Aug 02 1990 | IBM Corporation | Small programmable array to the on-chip control store for microcode correction |
5430687, | Apr 01 1994 | XILINX, Inc.; Xilinx, Inc | Programmable logic device including a parallel input device for loading memory cells |
5467286, | Nov 03 1993 | Square D Company | Metering unit with downloadable firmware |
5606660, | Oct 21 1994 | U S BANK NATIONAL ASSOCIATION, AS COLLATERAL AGENT | Method and apparatus for combining controller firmware storage and controller logic in a mass storage system |
5844829, | May 03 1996 | Xilinx, Inc | Configurable parallel and bit serial load apparatus |
5859993, | Aug 30 1996 | CALLAHAN CELLULAR L L C | Dual ROM microprogrammable microprocessor and universal serial bus microcontroller development system |
5870609, | Dec 17 1993 | Intel Corporation | Technique for bootstrapping executable code to an adapter |
6009500, | Jun 07 1995 | SAMSUNG ELECTRONICS CO , LTD | Replacement of erroneous firmware in a redundant non-volatile memory system |
6253281, | Jun 21 1997 | NXP B V | Method for updating firmware of a computer peripheral device |
RE34363, | Mar 12 1984 | XILINX, Inc. | Configurable electrical circuit having configurable logic elements and configurable interconnects |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
May 12 1999 | THERON, CONRAD A | Xilinx, Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 009972 | /0485 | |
May 13 1999 | ST PIERRE, DONALD H JR | Xilinx, Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 009972 | /0485 | |
May 14 1999 | XILINX, Inc. | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Apr 05 2007 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Apr 07 2011 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Apr 07 2015 | M1553: Payment of Maintenance Fee, 12th Year, Large Entity. |
Date | Maintenance Schedule |
Oct 07 2006 | 4 years fee payment window open |
Apr 07 2007 | 6 months grace period start (w surcharge) |
Oct 07 2007 | patent expiry (for year 4) |
Oct 07 2009 | 2 years to revive unintentionally abandoned end. (for year 4) |
Oct 07 2010 | 8 years fee payment window open |
Apr 07 2011 | 6 months grace period start (w surcharge) |
Oct 07 2011 | patent expiry (for year 8) |
Oct 07 2013 | 2 years to revive unintentionally abandoned end. (for year 8) |
Oct 07 2014 | 12 years fee payment window open |
Apr 07 2015 | 6 months grace period start (w surcharge) |
Oct 07 2015 | patent expiry (for year 12) |
Oct 07 2017 | 2 years to revive unintentionally abandoned end. (for year 12) |