Mt2015 q4

From HDLBits


Taken from 2015 midterm question 4

See mt2015_q4a and mt2015_q4b for the submodules used here. The top-level design consists of two instantiations each of subcircuits A and B, as shown below.

Mt2015 q4.png

Implement this circuit.

Module Declaration

module top_module (input x, input y, output z);

You may choose to create this circuit hierarchically using the two submodules as shown in the diagram, or create the same functionality without hierarchy.

Write your solution here

Upload a source file...