The invention discloses a method and a device for quickly establishing a post-
simulation environment of a digital
chip and a
simulation method and device. The method comprises the following steps of: establishing a basic file structure; putting a script to be executed in the basic file structure, creating a shortcut key of the script to be executed, and determining a hierarchical structure of a moduleA folder in the basic file structure; the method comprises the following steps of: searching a related file in a fixed
directory tree through a script to be executed, generating a file
list netlist.f file, and distinguishing an SDF (
Software Definition Function) anti-standard command through
macro definition to obtain an anti-standard file; according to the key word sdrange and the anti-standard file, the anti-standard content of the testbench file is updated; the method comprises the following steps: accessing a
makefile through a script to be executed, extracting case information, and generating a rear
imitation folder vcsend in combination with the extracted information;
simulation is carried out based on the post-simulation folder, the simulation result is analyzed, and the simulation report is generated, so that one-button post-simulation environment automatic construction is realized, and the efficiency and accuracy of post-simulation process construction are improved.