// // Template for solution to LSU EE 4702-1 Spring 2000 Homework 5. // // Name: // Instructions: // // // Copy this file to a file named hw05sol.v in your class directory, // and use it for your solution. // // Use the module names provided in this file. // // The files will be copied from the class accounts soon after the // assignment is due. // // Problem 1 // module alu(res,err,a,b,op); input a, b, op; output res, err; parameter op_add = 0, // Addition. op_sub = 1, // Subtraction op_and = 2; // Bitwise and. // Insert solution here. It's okay to delete this comment. endmodule // alu // // Problem 2 // module latch_thing(w,x,y,z,a,b,c,d,r,clk); input a, b, c, d, r, clk; output w, x, y, z; // Insert solution here. It's okay to delete this comment. endmodule // latch_thing