// Do File for simulation on an Inverter with input signal 'in' //Prepare the simulation reset state -discard del traces -all del forces -all set radix binary //Add traces through do file instead of manually add trace in add trace out //Set the input as a clock. set clock period 20 force in 0 0 -r //signal in starts from 0. force in 1 10 -r //in will rise to 1 After 10ns //run the simulation for the given time (in nsec) run 50