ece333 | doering | ece labs | ece | rhit |
General InstructionsFor each problem:
Include hardcopy of all Verilog code. Include annotated hardcopy of simulation results (“annotated” means that you include handwritten comments on the waveforms to explain the input stimulus, and to clearly explain how the simulated output shows that your circuit is working properly). Problem 1Decoder – 2-to-4 decoder (also called 1-of-4 decoder). Active low outputs. Only one output is enabled at a time. An additional input control signal (active high) is used to enable the decoder output; all outputs remain high if the enable is deasserted. Problem 2Adder / Subtractor – Accepts two 16-bit inputs A and B. Produces a 17-bit output Y. A control line input determines whether the operation is “A plus B” or “A minus B”. Problem 3Bit Rotater – Accepts an 8-bit value and produces an 8-bit output. Three control lines (3-bit bus) determine how many bit positions to right-rotate the input data. For example, a control code of 000 causes the input pattern b7b6b5b4b3b2b1b0 to appear on the output unchanged. A control code of 001 causes the output b0b7b6b5b4b3b2b1, value 010 causes the output b1b0b7b6b5b4b3b2, and so on. Problem 4Range Tester - Accepts a 12-bit value interpreted as an unsigned binary number M. Generates three active-high outputs to indicate when the input is in a specific range: 0 <= M <= 100, 100 < M <= 1000, and M > 3000 (all numerical values for the ranges are base 10).
|
|