You may refer to external sources as well and site

 

You may refer to external sources as well and site them.

Prompt

Design and build a simple CPU on Logisim and write programs that can run on it. you can download Logisim by following this link: http://www.cburch.com/logisim/download.html

Your design will go through four phases:

Phase One

Start by building an 8-bit ALU using Logisim. This ALU can implement 16 instructions on 8-bit operands. We would suggest the following minimum list of instructions:

  • Arithmetic addition
  • Increment
  • Decrement
  • Comparison (with 3 outputs: one for equals, one for less than and one for greater than)
  • Logic bitwise Not
  • Logic bitwise And
  • Logic bitwise Or
  • Register right logic shift
  • Register left logic shift

In addition to these nine instructions, please suggest five more instructions that the ALU can implement for a total of 14 instructions (we are reserving 2 instructions for branching). Justify the importance of the five instructions you added in a Word doc to submitted as part of this assignment. Label these instructions as ‘Phase One.’

After you’ve suggested and justified your five suggested instructions, please build at least the nine above-mentioned operations as blocks in Logisim.

Phase Two

In phase two of the project, you are required to design the instruction set of the ALU/CPU as follows:

  • Create the opcode table for the ALU by giving a binary code and a name for each instruction you built in Logisim in phase one.
  • Decide how many operands you want your instructions to handle and justify your choice. We suggest either one operand with accumulator or two operands with the result stored in one of the input registers.
  • In Logisim, add a multiplexer to the circuit you built in phase one that chooses one of the available operations. The simplest way to create this part of the CPU is to connect the outputs of the multiplexer to the inputs of AND arrays connected to the output of the operation blocks.

Phase Three

In phase three, you are required to use Logisim to implement the control unit for at least the following three operations:

  • addition
  • logic bitwise AND
  • right logic shift

In order to finish this phase, you need to add operand registers according to the decision you took for the number of operands in phase two and, if needed, a flag register.

Please record your answer to phase three in the same Word doc and label it ‘Phase Three.’

Phase Four

In order to be able to write assembly language for the CPU we need to add to instructions (without implementation):

  • branch to an address (name it JMP)
  • conditional branch to an address (name it CJMP and suppose that the jump takes place if the comparison operation result is ‘equals’)

Now, write the following programs using the assembly language you designed in the previous phases of the project as well as these two branching additional instructions:

  • Write a program that adds two operands.
  • Write a program that adds operands until the new value to be added is 0. You do not need to implement the input operations to modify the contents of the registers. Just assume that by the end of each iteration, the register content is modified.
  • Write a program that increments by 2 the content of a register 10 times.
  • Write a program that shifts the content of a register until the least significant bit is 0. Think of a way to stop shifting if the content of the register is 11111111 and add it to your program.

Please record your programs in the same Word doc and label them under the section ‘Phase Four.’

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

test title 2 – Premium Paper Help

Premium Paper Help is a professional writing service that provides original papers. Our products include academic papers of varying complexity and other personalized services, along with research materials for assistance purposes only. All the materials from our website should be used with proper references.

Sign up for access to the “Columbus State University Jobs”

Sign up for access to the “Columbus State University Jobs” Evaluate the key skills and responsibilities on a posting of your choosing. Copy the key sections of the job posting in our discussion post. Extracting the pertinent information, write about how your key skills and abilities are a match for

Assignment Part 1: Describe core Azure concepts Part 2: Describe

   Assignment Part 1: Describe core Azure concepts  Part 2: Describe core Azure services  Part 3: Describe core solutions and management tools on Azure You need to follow the following steps by reading below links for part 1, part2 and part 3.  1- Read  Part 1(https://docs.microsoft.com/en-us/learn/paths/az-900-describe-cloud-concepts/ ),  Part 2(https://docs.microsoft.com/en-us/learn/paths/az-900-describe-core-azure-services/ ),

Instructions Honor and Emotional Reactions Click here to read the

Instructions Honor and Emotional Reactions Click here to read the APA ethical principles of psychologists and code of conduct. (here is the website https://www.apa.org/ethics/code/index ) Using the South University Online Library, search the article, “A Bumpy Train Ride: A Field Experiment on Insult, Honor, and Emotional Reactions.” Pay special attention

As Healthcare Quality Manager of a healthcare facility (you may

As Healthcare Quality Manager of a healthcare facility (you may choose any – Hospital, Ambulatory Surgical Center, Nursing Home, etc.), you are responsible for ensuring the quality of healthcare data. For this assignment, compare and contrast the American Health Information Management Association’s (AHIMA’s) Data Quality Management Model (DQM)   http://library.ahima.org/PB/DataQualityModel#.WL2U-hBWDi8   with the Canadian

You are a successful small business owner and have been

 You are a successful small business owner and have been asked by the local chapter of the Junior Entrepreneurs Association, a club for high school students interested in business careers, to make a presentation. The title of the presentation is “The U.S. Legal System and Business.” You have been provided

Crisis Ready: How To Build An Invincible Brand By: Melissa

Crisis Ready: How To Build An Invincible Brand By: Melissa Agnes In this video, you will learn the difference between crisis and issue and be able to define a situation as one or the other. You will also learn what it takes to effectively manage a crisis situation. By: Melissa

Refer to the case “Managing Innovation: The Aquadronic Experiment and Market Response”. In 750-1000 words and using APA format, perform an analysis

Refer to the case “Managing Innovation: The Aquadronic Experiment and Market Response”. In 750-1000 words and using APA format, perform an analysis in this case.  This assignment emphasizes identifying, focusing on, and briefly analyzing innovation related challenges within a large industry, plus using concepts learned during our class. Think about

Read the briefing articles, “Slowbalisation”, The Economist, January 26, 2019,

Read the briefing articles, “Slowbalisation”, The Economist, January 26, 2019, pg. 23-26, “Goodbye Globalisation” and “Torn Apart”, The Economist, May 16, 2020, pg.7, and pg. 59-61. The articles are available on Canvas AssignmentsWriting Assignment.   I have attached the articles below.  1. According to the briefing article “Slobalisation”, what is

Topic 3 DQ 1 Submit a summary of six of

  Topic 3 DQ 1  Submit a summary of six of your articles on the discussion board. Discuss one strength and one weakness for each of these six articles on why the article may or may not provide sufficient evidence for your practice change.  The first article “Promotion and Support of

Please find at least one quote on creativity and one

Please find at least one quote on creativity and one on innovation that resonates with you. Present each of these quotes and attribute them to their authors. Then, in your own words explore what each one means. Connect each of these quotes with ideas you have considered during this course

Overview In Milestone One, you analyzed the brand implications of

  Overview In Milestone One, you analyzed the brand implications of reopening the park, and you have delivered the analysis report in the form of a presentation. In your role as regional marketing director of one of the theme parks in the southeastern United States, you have been tasked by

Discussion Question: Discuss the Introduction, Description of the Problem or

Discussion Question: Discuss the Introduction, Description of the Problem or Issue, and Analysis of the Academic Article Critique Assignment for the selected topic for the Week 2 Assignment. The purpose of this assignment is to review and provide feedback to your peers prior to the final submission of the Week 2 Academic Article Critique. You will

Agency Overview

In order to properly conduct evaluation research, it is important to understand the agency and the types and sources of information available from the agency. Please provide an overview of the agency and address the following points to determine what information is available from the agency with which you are

Please find attached Newyork time case and answer REQUIRED COMPONENTS

  Please find attached Newyork time case and answer   REQUIRED COMPONENTS  1. Summarize the relevant points  2. Summarize the business problem / crisis faced by the marketing manager.  3. Analyze / gain insights from included data.  4. Describe possible decisions.  5. Declare what you find to be the best solution

Death on the Border

Description Select a contemporary social condition or issue-The Wall Trump is planning to build and the rise in deaths it could potentially cause by forcing immigrants further into more desolate areas at the border. Using online resources, locate two (2) photographs that are reflective of the one contemporary social condition