Real time automated checking mechanism for a bus protocol on an integrated bus system

A bus protocol is checked automatically during design or manufacture by connecting a bus protocol monitor to the bus and monitoring signals applied to the bus. The response to those signals is then compared with a predetermined desired response. A signal is generated to alert the protocol designer or manufacturing controller if there is an improper response that indicates that the protocol is in error. The invention is particularly useful as applied to check an LPC bus protocol.

BACKGROUND OF THE INVENTION

This invention relates to bus protocols. In particular, it is a method of and an apparatus for performing a check on an LPC (low pin count) bus protocol that is in the process of design or manufacture, but it can be used with other bus protocols.

A part of the design of a semiconductor chip is ensuring that a bus protocol is performing properly. This normally involves manually checking the protocol by following a sequence of steps to compare actual performance of the protocol with the desired performance. This is a time-consuming process that has many chances for errors. It would be helpful to have a way to check the protocol automatically. Such a process would also be of value in checking to see that production chips had properly functioning protocols.

SUMMARY OF THE INVENTION

A bus protocol is checked automatically during design or manufacture by monitoring signals applied to a bus and comparing the response to those signals with a predetermined desired response. A signal is generated to alert the protocol designer or manufacturing controller if there is an improper response that indicates that the protocol is in error. The invention is particularly useful as applied to check an LPC bus protocol.

DETAILED DESCRIPTION OF THE INVENTION

FIG. 1 is a block diagram of the operation of the bus protocol monitor of the present invention. In FIG. 1 , a bus protocol monitor 10 is connected to an LPC bus 12 . The bus protocol monitor 10 may be a computer for control. The LPC bus 12 carries signals associated with a low-pin-count protocol. This is a standard protocol used as a design aid to minimize pin count in a design. An LPC-flash device 14 is also connected to the bus 12 as the protocol to be checked. A host 16 is connected to the bus 12 as a stimulus generator to provide signals to test the LPC flash device 14 . The LPC bus 12 is used here as exposing the protocol to be tested, but other protocols could be tested as with the other device 18 that is also 15 connected to the bus 12 . A line 19 may connect the bus protocol monitor 10 , the LPC-flash device 14 , and the host 16 to supply a TEST signal to begin the protocol test.

FIG. 2 is a block interface diagram of the operation of the present invention. In FIG. 2 , the bus protocol monitor 10 of FIG. 1 is shown as receiving several signals from the bus 12 of FIG. 1 . These signals are LFRAME 20 , LCLK 22 , LAD 24 , and LRESET 26 . These signals are compared in bus protocol monitor 10 with the expected signals and an error flag 28 is generated if the signals do not compare.

FIG. 3 is a state diagram of the inputs to and the output of the Bus Protocol Monitor of the present invention. In FIG. 3 , an idle state 30 is on the bus 10 of FIG. 1 before testing starts. A check block 32 begins the test of the protocol by checking for the signal LFRAMEB to be equal to zero and START-state which consists of LAD 3 . 0 0000. . A check block 34 next checks for the cycle type value. A check block 36 then checks for the desired bus protocol with reference to the cycle type value from the check block 34 . A check block 38 then checks to see if two or more systems are in contention if more than one device of the type being tested is on the bus 10 at the same time. Signals are taken from the check blocks 32 , 34 , 36 , and 38 to a block 40 that sets an error flag if any of the check blocks 32 , 34 , 36 , or 38 detects a discrepancy in the protocol being tested. The error flag can be programmed to identify the location and type of the error.

The automated test of the protocol that is provided by the present invention increases the effectiveness of a protocol designer by producing instant results when there is an error or inconsistency in a protocol being tested. The test also can be applied in the production of chips to be sure that the protocol programmed into the chip is functioning as the designer planned it to.

The disclosure of the invention provided above is intended to be illustrative and not limiting. The scope of the invention should be limited only by the claims and their equivalents.