Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) For this problem you will need to turn in Verilog code and a picture of the w

ID: 2249745 • Letter: 1

Question

1) For this problem you will need to turn in Verilog code and a picture of the waveform generated by running a test bench. a) Write a Verilog module for the circuit below using a structural style b) Write a Verilog module for the circuit below using a dataflow style c) Write a Verilog testbench that applies all 8 different tests Notes: The waveform may be better captured using the Windows snipping tool rather than printing it out. The tutorial introduced you to QuestaSim, but you may use any Verilog simulation environment (ModelSim or Verilogger may work).

Explanation / Answer

Code:

module full_adder ( x ,y ,z, f );

output f ;
input x ;
input y ;
input z ;

assign f =( (x | y') & z) | (x'&y'&z');

endmodule