1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
padilas [110]
3 years ago
13

This assignment covers the sequential circuit component: Register and ALU. In this assignment you are supposed to create your ow

n storage component for two numbers using registers. Those two numbers are then passed into a custom ALU that calculates the result of one of four possible operations. Key aspect of this assignment is to understand how to control registers, how to route signals and how to design a custom ALU.
Engineering
1 answer:
Luba_88 [7]3 years ago
4 0

Answer:

The part I called command in the first diagram has been renamed to opcode, or operation code. This is a set of bits (a number) that will tell the ALU which action to perform. I can get the LC-3 opcodes for ADD and NOT and ADD from the book, so I'm not too worried.

Note the #? comment by the switch above opcode. This means I'm not sure how many switches I will need. How many bits do I need to perform all the operations I want? The textbook will tell me.

Materials

Now I make a list of all the materials you have accumulated so far. This list is just an example; yours may be different.

Two 4-bit inputs

One 4-bit output

Two keypads for 4-bit input

Three 7-segment displays (2 for input, 1 for output)

A bunch of switches for opcode (could use a keypad, I guess, but switches are so much more geeky)

A bunch of lights too

The "is zero" LED

One button for clock

One button for reset

One switch for carry-in

Include logic to perform a SUB instruction. That is, subtract the second operand from the first (out = in1 - in2). All three values -- both inputs and the output -- must be two's complement numbers (negative numbers must be represented). Your design may work in one (8 points) or two (4 points) clock cycles.

Explanation:

You are allowed to use the Logisim built-in registers.

The clear input of the register should not be used (do not connect anything to

them).

Custom ALU

Use the provided subcircuit in the template to implement your ALU. You do not have to create additional subcircuits to do this. The ALU has a total of three inputs: First number, second number and select operation input. And one output: Result. The first and second number are used as input for the operations the ALU performs. The select input decides which operation result will be on the single output of the ALU. The ALU is supposed to calculate: NumberA OPERATION NumberB. Register 1 of the storage contains NumberA and Register 2 contains NumberB. The ALU must be able to compute signals with a 4-bit width. Make sure to add labels to all inputs and outputs.

The following operations should be performed for each select input combination (s1s0): • 00: Logic Bitwise XOR

• 01: Multiplication

• 10: Division

• 11: Addition Notes:

You can change the inputs bit width / data bits of any gate to more that 1-bit.

The Logic Bitwise XOR operation can be done with a single XOR gate.

You are also allowed to use the built-in arithmetic logic components and multi- plexer provided by Logisim.

If the result is larger than 4 bits, it will be truncated (only 4 LSB will be shown). This behavior is intended for this assignment. Also, negative results do not have to be considered.

Once you have implemented the ALU circuit, connect the wires in the main circuit properly and test all four operations of your ALU in combination with the storage component.

You might be interested in
Given a matrix, clockwise-rotate elements in it. Please add code to problem3.cpp and the makefile. Use the code in p3 to test yo
rusak2 [61]

Answer:

/* C Program to rotate matrix by 90 degrees */

#include<stdio.h>

int main()

{

int matrix[100][100];

int m,n,i,j;

printf("Enter row and columns of matrix: ");

scanf("%d%d",&m,&n);

 

/* Enter m*n array elements */

printf("Enter matrix elements: \n");

for(i=0;i<m;i++)

{

 for(j=0;j<n;j++)

 {

  scanf("%d",&matrix[i][j]);

 }

}

 

/* matrix after the 90 degrees rotation */

printf("Matrix after 90 degrees roration \n");

for(i=0;i<n;i++)

{

 for(j=m-1;j>=0;j--)

 {

  printf("%d  ",matrix[j][i]);

 }

 printf("\n");

}

 

return 0;

 

}

5 0
4 years ago
How does a rudder help maneuver an airplane?
Nonamiya [84]
It’s just helps it like
4 0
3 years ago
What can be the main disadvantage of pulse amplitude modulation?​
Feliz [49]

Answer:

transmission bandwidth required is very large.

Explanation:

4 0
2 years ago
Ok there........................................................................
Juliette [100K]

Answer:

ok THERE

Explanation:

4 0
3 years ago
Which of the following fluid power systems is portable and human-scale?
meriva

Answer:

a fluid power engine okk done please

7 0
2 years ago
Read 2 more answers
Other questions:
  • Technician A says diesel engines are also called compression ignition engines. Technician B says diesel engines have much higher
    9·1 answer
  • System grounding on a power system means electrically connecting the __?__ of every wye-connected transformer or generator to ea
    12·1 answer
  • Technician A says that when the malfunction indicator light or service engine light is on you should retrieve the diagnostic tro
    10·1 answer
  • . Carly's Catering provides meals for parties and special events. In Chapter 2, you wrote an application that prompts the user f
    10·1 answer
  • Calculate the electroosmotic velocity of an aqueous solution through a glass capillary 5 cm long with a 0.5 mm internal diameter
    11·1 answer
  • A soil has the following Green-Ampt parameters Effective porosity 0.400 Initial volumetric moisture content-15% Hydraulic Conduc
    6·1 answer
  • Please Help It's really Important
    12·1 answer
  • State the mathematical expression to define the availability of equipment over a specified time and operational availability?
    6·1 answer
  • Is a compass a analog or a digital sensor?
    14·1 answer
  • What is the name of the first federation vessel in star trek hint 17?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!