摘要 |
PROBLEM TO BE SOLVED: To provide an apparatus and method for generating an assertion based on a user program code, and an apparatus and method for verifying a processor using an assertion.SOLUTION: A method for generating an assertion based on a user program code may include: a step 110 of receiving a user program comprising at least one assertion directive, a compiled result of the user program, and architecture information of a processor; and a step 130 of generating, based on the compiled result of the user program and the architecture information of the processor, an assertion which states an operation that the processor needs to perform in accordance with a code of the user program indicated by the at least one assertion directive. |