Question: All question are in Verlog language 1. (5 points) Please write the following numbers: 1) Decimal number 120 as a sized 8-bit number in binary.
All question are in Verlog language
1. (5 points) Please write the following numbers: 1) Decimal number 120 as a sized 8-bit number in binary. Use_ for readability. 2) A 16-bit hexadecimal unknown number with all x's 3) A 4-bit negative 5 in decimal. Write the 2's complement form for this number 4) An unsized decimal number 12. We assume 32-bit machine and compiler are used. 5) For the following three positive numbers, which one is the largest number? (a) 4'bl111 (b) 4'ha (c) 4'10 2. (5 points) Declare the following variables in Verilog: 1) A 1-bit net called input a 2) An 8-bit vector net called a_in. 3) A 32-bit storage register called address. Bit 31 must be the most significant bit. 4) An integer called cout 5) A memory MEM containing 256 words of 64 bits each
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
