Unless specifically stated otherwise, you are encouraged to discuss solutions to the homework with other students. However, you must (1) spend at least 15 minutes on each and every problem alone, before discussing it with others, and (2) write up each and every problem in your own writing, using your own words, and understand the solution fully. You may also apply the Gilligan's Island approach - work together on a problem as much as you want, but watch a full episode of Gilligan's Island before writing down the solution or entering the program on your own.
Assignments are due at the beginning of class on the assigned due date. Assignments handed in during or immediately after class will incur a 10% penalty. We will not accept assignments after we have left the classroom.
Katz: Chapter 2, pp. 64-80
// CSE 370 Example: Verilog test fixture for full adder // Mat Martineau 1/8/1998 `timescale 1 us / 1 us module carrytest; // Your module name must be different from the first // eight letters of your schematic filename `include "carry.tfi" // This should be the same as your schematic // filename, except with a ".tfi" extension. initial begin // Start test // Assumes the inputs to your carry unit are A, B, and CI (carry in). // Change the names if you need to. A = 0; B = 0; CI = 0; // Set the inputs #10 // Time delay (10 microseconds) A = 0; B = 0; CI = 1; // Change the inputs #10 // Wait A = 0; B = 1; CI = 0; // etc... #10 A = 0; B = 1; CI = 1; #10 A = 1; B = 0; CI = 0; #10 A = 1; B = 0; CI = 1; #10 A = 1; B = 1; CI = 0; #10 A = 1; B = 1; CI = 1; end // End test endmodule