The invention relates to the technical field of
semiconductor manufacturing virtual
simulation, and discloses a method and a
system for simulating a hardware communication protocol. According to the scheme, asynchronous decoupling communication between the AMHS service and the
machine service is achieved through the
message queue (such as MQ), and a traditional hardware parallel I / O
interaction mode is replaced. The method comprises the following steps of: defining a protocol format (such as a 16-bit binary number) of multi-bit
signal packaging, and encoding signals such as VALID (Video Address Limit Identifier) and CS0 (Coding Sequence 0) into a
single sequence message (such as hexadecimal '4030'); maintaining a predefined sequence
list (an index corresponds to a communication step) and a latest sequence state; and checking whether a new message is matched with an expected sequence or not when receiving the new message, if so, updating the state propulsion process, otherwise, refusing and resetting. The
system comprises an AMHS service, a
machine service, a
message queue component, a storage module and a
verification module. According to the method, the problems of service dependence, bandwidth waste and sequence
verification complexity in a virtual scene are solved, the
simulation efficiency and fidelity are remarkably improved, and the method is suitable for
interactive simulation of the AMHS and the
machine of the
semiconductor FAB factory.