Question

1.) 2-bit binary numbers represent the values 0..3 with the following encoding: Encoding [1:0] Value 0...

1.) 2-bit binary numbers represent the values 0..3 with the following encoding:

Encoding [1:0] Value

0 0 0

0 1 1

1 0 2

1 1 3

Develop the simplest Sum-of-Products equation possible that, when given two 2-bit binary numbers X[1:0] and Y[1:0], will output whether the value of X is greater than the value of Y.

2.) Assume that we have already implemented the solution to problem #1 as a module “isGreater(F, X, Y)” in Verilog, and cannot change that module at all. Using that module, write the simplest possible Verilog module that will compute whether A[1:0] is greater than or equal to B[1:0].

Please help on the modules of problem 1 and 2.

Homework Answers

Answer #1

GIVEN,

1)

X[1:0] AND Y[1:0] TWO BIT BINARY NUMBERS; WE NEED TO FIND OUT SUM OF PRODUCTS EQUATION FOR THE OUTPUT WHETHER THE VALUE OF X IS GREATER THAN THE VALUE OF Y

HERE IS THE SOLUTION

IF X[1:0] IS GREATER THAN Y[1:0] THEN

2)

VERILOG CODE FOR

X GREATER THAN Y AND X LESS THAN Y AND X EQUAL TO Y

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
VERILOG Design an Arithmetic Logic Unit (ALU) that can perform four-bit 1. Four-bit addition; 2. Four-bit...
VERILOG Design an Arithmetic Logic Unit (ALU) that can perform four-bit 1. Four-bit addition; 2. Four-bit subtraction; 3. Four-bit multiplication; 4. Four-bit comparator (that compares two binary numbers to check whether two numbers are equal, or one is less/greater than other). Write test benches and simulate each module/submodule. Hint: First make individual modules of the four-bit adder, four-bit subtractor, four-bit multiplier, four-bit comparator modules (make all these in same/one project) and then use a multiplexer to combine these modules to...
2 Convert each of the following octal numbers to 10-bit binary, hexadecimal, and decimal. Show your...
2 Convert each of the following octal numbers to 10-bit binary, hexadecimal, and decimal. Show your work. (a) 368 (b) 7568 3 Convert the following binary values into Decimal, Octal and hexadecimal. Show your work. (a) 111010101011112 (b) 1010111011001102 (c) 1011101010001112 (d) 1111101011102 4 Convert the following hexadecimal numbers to 16-bit binary and decimal numbers. Show your work. (a) FE9816 (b) FCAD16 (c) B00C16 (d) FEDF16 5 Perform the addition on the following unsigned binary numbers. Indicate whether or not...
Express the decimal number (-37)10 as an 8-bit 2's complement binary number. Given the two signed...
Express the decimal number (-37)10 as an 8-bit 2's complement binary number. Given the two signed binary numbers (2's comp.) X = -8 and Y = 14, what is their sum? What is the BCD representation of the decimal value (9371)10?
Adder Start out by picking 2 positive six bit binary numbers that are less than 3210,...
Adder Start out by picking 2 positive six bit binary numbers that are less than 3210, written in 2's complement notation. The eventual goal is to add these two numbers. 1) Look at the LSB bit of the numbers, and using logic gates (NANDs, NORs, etc.) design a circuit that correctly gives the right output for any possible combination of bits in the LSB place. 2) Now look at the next column to the left (next to LSB). In this...
QUESTION 1 During a single clock tick, how many 64-bit values can be written to an...
QUESTION 1 During a single clock tick, how many 64-bit values can be written to an input of a register file with 8 64-bit registers (i.e. an 8x64 register file)? QUESTION 2 Suppose you are designing a processor that contains a register file with 32 32-bit registers (i.e. a 32x32 register file). What is the minimum number of bits required in order to select which register is being written to? QUESTION 3 If the decimal value, 30, is shifted to...
1. Consider the following optimization problem. Find two positive numbers x and y whose sum is...
1. Consider the following optimization problem. Find two positive numbers x and y whose sum is 50 and whose product is maximal. Which of the following is the objective function? A. xy=50 B. f(x,y)=xy C. x+y=50 D. f(x,y)=x+y 2. Consider the same optimization problem. Find two positive numbers x and y whose sum is 50 and whose product is maximal. Which of the following is the constraint equation? A. xy=50 B. f(x,y)=xy C. x+y=50 D. f(x,y)=x+y 3. Consider the same...
PLEASE DON'T USE ANY OTHER PROOFS FROM POOFS BY CASES! USE DEFINITION OF ABSOLUTE VALUE! And...
PLEASE DON'T USE ANY OTHER PROOFS FROM POOFS BY CASES! USE DEFINITION OF ABSOLUTE VALUE! And I was thinking of doing 4 cases: 1. x greater than or equal to  0, and y greater than or equal to  0 2. x greater than or equal to 0, y less than 0 3. x less than 0, y greater than or equal to 0 4. x less than 0 , and y is less than 0. Proofs by cases - absolute value. Prove...
solve the following initial value problem y(3)+y'' = 5x + 8e-x, y(0)=1, y'(0)=0, y''(0)=1
solve the following initial value problem y(3)+y'' = 5x + 8e-x, y(0)=1, y'(0)=0, y''(0)=1
Solve the initial value problem: X' = ( 1/2 0 1 -1/2 )X, X(0) = 3...
Solve the initial value problem: X' = ( 1/2 0 1 -1/2 )X, X(0) = 3 5
In Exercises 31-42, solve the initial value problem. 3(x^(2))y''-4xy'+2y=0, y(1)=2, y'(1)=1
In Exercises 31-42, solve the initial value problem. 3(x^(2))y''-4xy'+2y=0, y(1)=2, y'(1)=1
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT