Add comments.

This commit is contained in:
2018-06-05 23:42:20 -07:00
parent d00131973b
commit 672eae920a
9 changed files with 111 additions and 46 deletions

View File

@@ -1,6 +1,8 @@
/* A two-input multiplexer.
*/
module mux2 #(width=32)
(input logic [width-1:0] left, right,
input logic select,
output logic [width-1:0] out);
assign out = select ? right : left;
endmodule
endmodule