----------------------------------- copy from website ------------------------------------------------------- Functional Coverage Introduction Typically in verification flow, we do code coverage, but doing code coverage shows only if all the lines of the DUT is executed, if all ...
$readmemh: read data from a file as hexadecimal, data in the file is seperated by space. example: reg reg_mem ; $readmemh("file_name.vec", reg_mem ); $readmemb: the same as $readmemh, except reading data as binary
$display: outputs to standar out, can use formater to print as specify format. example: $display( "%t",$time ); $sdiaplay: print to file example: $fdisplay(vec_file, "%t", $time)
天气 : 热 心情 : 平静 $stop: put the simulation into a halt mode, pass control to user. $finish: causes the simulator to exit and pass control back to the host OS. parameter: 0: prints nothing 1:prints simulation time and location 2:pint simulation time and location, statistics ab ...