This application claims priority from Indian patent application No. 1245/Del/2001, filed Dec. 14, 2001, which is incorporated herein by reference.
The present invention relates generally to a method and system for enabling rapid partial configuration of reconfigurable devices.
An FPGA (field-programmable gate array) typically includes configuration memory cells, configuration control elements and a matrix of logic blocks and I/O blocks. The configuration control elements are usually latches forming a configuration latch matrix.
When either write enable signal goes high, data present on data lines 111 are loaded into a selected latch column. If write enable output 101 is high then data is loaded into the latch column 131 and if enable output 102 is high then data is loaded into the latch column 132.
After the start of frame loading, checking for the end of the bit stream (2.1). If it is not the end of bit stream, retrieving a packet from the bit stream (2.2), checking whether the packet is a skip command or a write command (2.3). If the packet is a skip command, just increasing the address of the memory latch column, and retrieving the next frame (2.6). If it is write command, storing the bit stream in a data register (2.4), strobing the address register to load the data into memory cells (2.5) and incrementing the address (2.6). This process goes on until the end of the bit stream.
Problem with this approach is that if we need to load only few frames, even then we need to load skip or write commands for all the frames. In this case there will be many skip commands. Again if most of the frames are to be loaded again, then there will be write commands or skip commands for all the frames. In this case there will be more write command. It will cause a large configuration time.
In one aspect of the invention, the above drawbacks are obviated by enabling rapid partial configuration of reconfigurable devices.
To achieve this, a system is provided for enabling rapid partial configuration of reconfigurable devices, comprising:
The configuration definition means is a data frame and said starting address, the information and said desired configuration data are elements of said data frame.
The configuration means comprises:
The data frame is stored in a frame register while said address is stored in an address counter connected to the input of a decoder which controls a horizontal latch array and said configuration data is loaded into the selected latch column.
The starting address of said configuration means corresponds to the address of the initial configuration latch column and said data size of said configuration means corresponds to number of contiguous latch columns.
The address counter means stores a starting latch column address and said index counter means stores the number of contiguous latch columns.
The system includes:
Another aspect of the invention further provides a method for enabling rapid partial configuration of a reconfigurable device, comprising the steps of:
The partial configuration requirements are defined as a data frame and said starting address, said information and said desired configuration data are fields of said data frame.
The configuration is performed by:
The starting address of said configuration means corresponds to the address of the initial configuration latch column and said data size of said configuration means corresponds to the number of contiguous latch columns.
The address counter stores a starting latch column address and said data size corresponds to the number of contiguous latch columns.
a and 7b show the flow diagram for the partial configuration method according to an embodiment of the invention.
a shows the waveform of signals for partial configuration in a first condition according to an embodiment of the invention.
b shows the waveform for partial configuration in a second condition according to an embodiment of the invention.
The reconfiguration unit comprises an address counter 300, an index counter 310, and a controller 320.
Address counter 300 is used to store the address of the frame.
Index counter 310 is used to store number of frames to be loaded in continuation during the partial configuration. During normal configuration the index counter 310 remains idle. Controller 320 is used to control the loading of the data into the index counter 310 and address counter 300. The outputs of the address counter 300 are connected to a decoder circuit 200. Decoder circuit 200 decodes the address supplied by address counter 300 and only one output of the decoder circuit 200 goes high. The outputs of the decoder circuit 200 are connected to the horizontal latch array 100, which checks the value specified by the decoder circuit 200 only after a complete frame is loaded into the frame register (110 in
During a first time of configuration or full configuration, the configuration is done as for prior normal operation. After loading the pre-configuration data, frame data are shifted into the frame register 110. Once the complete frame is loaded, horizontal latch array 100 (
During partial configuration, after a pre-configuration frame is loaded, next data DIN is loaded into the index counter 310 and then to address counter 300. The value of index counter 310 shows the number of frames to be stored in sequence and the value of address counter 300 shows the starting frame address. Decoder circuit 200 decodes this address and the specified output of the decoder circuit 200 goes high. But the output of the horizontal latch array 100 will not go high until the complete frame is loaded into the frame register. Now the next data, which are frame data, are shifted into the frame register. Once a complete frame is loaded, horizontal latch array 100 takes the decoder output and the frame is loaded in that particular latch column whose address is represented by the address counter 300. Then, the value of address counter 300 is incremented, the index counter 310 is decremented; and the next frame is loaded into this new address. Address counter 300 is again incremented and index counter 310 decremented after the frame is loaded.
When the content of the index counter 310 value goes to 0, it means that all the consecutive frames have been loaded. Then, index counter 310 triggers the controller 320, which enables loading of new index counter and address counter values. Then, the next coming frames are loaded starting from this new address. When configuration is completed, start up sequence starts and the device comes into the operational state.
During normal configuration (full configuration) signal NIP is high. In this case output ENB_INDEX of the controller 320 is 0 and disables the index counter 310, which remains in idle state. ENB_CNTR remains high which makes the address counter 300 to work as an up-counter. Output TRIG of comparator 340 remains 0 and causes the signals CTRL, LD_CNTR and LD_INDEX to remain low.
A CLK circuit 350 selects the clock for the address counter 300 and index counter 310. When signal CTRL is low, data load clock FR_LOAD is selected, otherwise configuration clock CLKN is selected. After one frame is loaded in the configuration latches, clock FR_Load causes the address counter 300 to increment its value and index counter 310 to decrement its value when selected.
Before proceeding to the partial configuration operation in
Coming back to the
After the reconfiguration data have been loaded into the index counter 310 and address counter 300, then at the next negative edge of CLKN, CTRL goes low. Now clock FR_LOAD is selected by signal CTRL and supplied to index counter 310 and address counter 300.
a and 7b show the flow of frame loading in the partial configuration mode according to an embodiment of the invention. After loading the pre-configuration frame, the number of consecutive frames are loaded in index counter 310, then the starting frame address is loaded in the address counter 300. After that, configuration data are loaded into the frame register. When a complete frame has been loaded, it is shifted into the configuration latches. Now address counter 300 value is incremented (Frame address value) and the index counter value is decremented. Thereafter, index counter value is checked. If it is not equal to 0, then a new frame is loaded in the frame register and shifted to the configuration latches. Again the address counter value is incremented and the index counter value is decremented. This process goes on until the index counter value is equal to 0. When index counter value goes to 0, it is checked whether all the frames have been loaded or not. If all the frames have been loaded (Configuration is complete) then start-up is invoked, otherwise a new index counter value and a new address counter (frame address) value is loaded. The index counter value represents the number of consecutive frames starting with this new frame address value. Now the next frame is loaded and shifted into the configuration latch column whose address is decoded by the address counter value. Again, the address counter value is incremented and the index counter value is decremented. This process goes on until the complete configuration is completed.
a and
Now at the next negative edge of the CLKN, LD_CTR goes high and LD_INDEX goes low. Then at the next two positive edges of the CLKN, data is loaded into the address counter 300. Data is loaded into the address counter 300 from DIN in the same manner as in the index counter 310. Suppose we want to load 0122h in the address counter 300 as the starting address, then at first positive edge of CLKN, DIN value will be 01h and at next positive edge, DIN value will be 22h.
Now at the next negative edge of the CLKN, LD_CTR and CTRL will go low. Now FR_LOAD is selected as the clock for the index counter 310 and the address counter 300. When the positive edge of the FR_LOAD comes (after one complete frame is loaded into the frame register 110 of
b shows the waveform for partial configuration when, at the positive edge of the FR_LOAD, the index counter value goes to 0 (here we assume that the positive edge of FR_LOAD is in synchronization with the positive edge of CLKN). As the index counter value goes to all 0, TRIG goes high and at next negative edge of the clock CLKN, CTRL and LD_INDEX go high and again new index counter and address counter values are loaded as in the previous case (
In this particular case, output of the controller 320 is as shown in the
It will be apparent to those with ordinary skill in the art that the foregoing is merely illustrative and is not intended to be exhaustive or limiting, having been presented by way of example only and that various modifications can be made within the scope of the invention.
Accordingly, this invention is not to be considered limited to the specific examples chosen for purposes of disclosure, but rather to cover all changes and modifications, which do not constitute departures from the scope of the present invention. For example, the reconfiguration data may comprise, instead of the number of sequential frames to be loaded during partial configuration, the end address of the configuration data of the partial configuration or any other information indicative of when consecutive storing of configuration data is to be ended.
Number | Date | Country | Kind |
---|---|---|---|
1245/DEL/2001 | Dec 2001 | IN | national |
Number | Name | Date | Kind |
---|---|---|---|
5095483 | Dubler et al. | Mar 1992 | A |
5430687 | Hung et al. | Jul 1995 | A |
5781756 | Hung | Jul 1998 | A |
6057704 | New et al. | May 2000 | A |
6785284 | Hagen | Aug 2004 | B1 |
7043569 | Chou et al. | May 2006 | B1 |
Number | Date | Country | |
---|---|---|---|
20030145193 A1 | Jul 2003 | US |