Here is a sample solutions to Assignment 0: Rise up!.
// 1-bit half adder module ha(sum, cout, a, b); output sum, cout; input a, b; assign sum=a^b; assign cout=a&b; endmodule // 16-bit incrementer module inc(b, a); parameter BITS = 16; output [BITS-1:0] b; input [BITS-1:0] a; wire [BITS-1:0] c; ha g(b[0], c[0], a[0], 1); genvar i; for (i=1; i
The C program that generated this page was written by Hank Dietz using the CGIC library to implement the CGI interface.
Advanced Computer Architecture.