// This force file generates a clock with 40ns period for the 2 bit // counter. The simulation runs for 500ns. // // -Todd M. Bezenek, March 1998. // Note: The ordering of these commands is important in some cases. If // you are getting errors, you can find out more (a little more, maybe) // about what is wrong by executing the force file using the "dofile" // command. Do this by typing "dofile ". // // This command is normally executed by "Setup > Force > From file..." // You can find out more about what commands can go in a force file by // looking in the document "SimView Common Simulation Reference Manual" // using the BOLD Browser. Also, note that force files are essentially // written in the language AMPLE. Several of the documents in the BOLD // Browser "File > Open > Document..." list are about the AMPLE // language. // Reset the old trace. $reset_state(); $delete_forces(@all, void); // Window commands below will now affect the trace window. open trace $set_active_window("trace"); delete traces -all delete cursor -all // Insert the traces and the cursor. add traces clk out0 out1 add cursor cursor1 0 // Set up the trace window. set user scale -type time 1e-09 set label interval 40 40 // Set up the clock force. set clock period 40 force clk 0 0 -repeat force clk 1 20 -repeat // Run the simulation. run 500