Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I got the unsigned portion but not the signed comparator. We are using verilog PART 5 - Design an unsigned 3-bit comparator such that A

image text in transcribed I got the unsigned portion but not the signed comparator. We are using verilog

PART 5 - Design an unsigned 3-bit comparator such that "A" is compared to "B Inputs: A three bits (a2, a1, a0) Outputs: E A equal to B A less than B A greater than B B three bits (b2, b1, b0) E, L, and G are each one bit Example: if A 010 and B 100, then the outputs would be: E-1, L-0 and G 1 (if active low outputs) Write this problem statement in the form of a truth table. There will be 6 columns for inputs and 3 columns for outputs. You could use K-maps to simplify the equations for E, L and G. How many variables would this K-map have? With Verilog you could skip the K-maps and design a solution based on a truth table and all the input possibilities. The "if-then-else if" Verilog construct would have 64 entries. A "case" construct would have 64 entries as well. Pick one or the other and design a Verilog solution. What kind of modeling technique is this called? With a good text editor you can copy, paste and edit changes rather quickly. Compile, download and test your "truth table" type of solution. Include your truth table, your Verilog source listing, and the test bench source in your lab report. Next after doing the above unsigned comparator, design your comparator to "interpret" the A and B numbers as "SIGNED" in twos complement format PART 5 - Design an unsigned 3-bit comparator such that "A" is compared to "B Inputs: A three bits (a2, a1, a0) Outputs: E A equal to B A less than B A greater than B B three bits (b2, b1, b0) E, L, and G are each one bit Example: if A 010 and B 100, then the outputs would be: E-1, L-0 and G 1 (if active low outputs) Write this problem statement in the form of a truth table. There will be 6 columns for inputs and 3 columns for outputs. You could use K-maps to simplify the equations for E, L and G. How many variables would this K-map have? With Verilog you could skip the K-maps and design a solution based on a truth table and all the input possibilities. The "if-then-else if" Verilog construct would have 64 entries. A "case" construct would have 64 entries as well. Pick one or the other and design a Verilog solution. What kind of modeling technique is this called? With a good text editor you can copy, paste and edit changes rather quickly. Compile, download and test your "truth table" type of solution. Include your truth table, your Verilog source listing, and the test bench source in your lab report. Next after doing the above unsigned comparator, design your comparator to "interpret" the A and B numbers as "SIGNED" in twos complement format

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

What is Environment and Ecology? Explain with examples

Answered: 1 week ago

Question

1. Explain the 2nd world war. 2. Who is the father of history?

Answered: 1 week ago

Question

7. Where Do We Begin?

Answered: 1 week ago