Due date: September 20, 1995
This is to be an N-bit wide unit, so declare the width to be a generic, and include assertions to check that the connecting bus attributes correspond.
Also include a generic for timing values Tgate, gate propagation delay, and Treg, output register propagation delay.
Func_sel Operation 000 Z <= X 001 Z <= NOT X 010 Z <= X AND Y 011 Z <= X NAND Y 100 Z <= X OR Y 101 Z <= X NOR Y 110 Z <= X XOR Y 111 Z <= X XNOR YAll the logic in this part of your design will be assumed to have input-output propagation delay of Tgate.
There is to be an "accumulator" register to receive the result of the function computation and drives the output Z, with propagation delay Treg.
Revised 12/11/95