Question: 2) Code the following IF-THEN statement using Thumb-2 instructions: if (r2 != r7) r2 r2-r7 else r2- r2+r4: 3) Design a simple 4-bit ALU and

 2) Code the following IF-THEN statement using Thumb-2 instructions: if (r2

2) Code the following IF-THEN statement using Thumb-2 instructions: if (r2 != r7) r2 r2-r7 else r2- r2+r4: 3) Design a simple 4-bit ALU and write your Verilog HDL code. This simple 4-bit ALU should include the logical AND, logical OR, arithmetic addition, and arithmetic subtraction. In addition to two input bits of opcode, two 4-bit inputs of 'A' and 'B', and one 4-bit output C', it should include zero, overflow, carry out output bits

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!