Sunday, October 6, 2019
Advanced Computer Engineering Essay Example | Topics and Well Written Essays - 1000 words
Advanced Computer Engineering - Essay Example The information prompts execution of certain functions as defined by the code developers. The source code enables programmers to understand the functioning of various applications through the written text. These codes are commonly utilised in differentiating various computer applications, performing similar functions. These applications are differentiated through the various commands required to perform specified functions. This exercise seeks to develop a program simulating performance of an 8-bit CPU. The whole process can be divided into three major sections of defining instruction set, describing simulator algorithm and writing the code for implementation of the identified simulator. This project could be defined through the following steps Identifying required bits Selecting the necessary instructions for the code Defining the required simulation algorithm Selecting the programming language being utilised in designing the code. Designing a simulator capable of simulating functio nality of 8-bit CPU. Testing the developed simulator design for compliance and similarity with required CPU. Concluding the project. Proposed solution The proposed CPU design shall involve various design choices and decisions aimed at improving the previous designs. In this example, the requirement needs writing of a program which simulates the performance of 8-bit CPU. The process begins with definition of instruction sets, which can be utilised by the CPU. The defined instruction set shall become the basis for developing CPU simulator algorithm, implemented through the C programming language. The C programming language could be identified as one which allows lexical variable scope, which makes the program become completely independent (King, 2008). This method remains the most commonly utilised programming language which much software remain compatible with. This make coding through this language sufficient as the systems could be utilised in many operations without experiencing d ifficulties. The process begins with consideration of the available options for breaking down the various instruction fields, to make complete Opcode, Addressing Mode and Operand. A format satisfying the basic CPU purposes shall be adopted for the context of this exercise. Within this exercise, 3-bit 8 independent Opcode shall be developed with, another bit being utilised in selection of the addressing mode, while the last four bits can be applied for the Operand. This will have created an 8-bit CPU, which can be utilised in undertaking various operations. Design Within the designing section, identification of the instruction set becomes the basis for beginning the designing process. The process of the CPU shall include loading of instructions into the register, thus the first instruction set identified shall be named LOAD. This instruction shall be associated with the main register as desired. The function shall be represented by LDA within the CPU. Following loading of the instruc tion the CPU shall also be required to store the entered information within the system. This shall become the second instruction set within the CPU, represented by STA. For the purposes of integrating arithmetic values within the CPU, a third instruction shall be called ADD, becomes necessary. Subtraction can be implemented through inclusion of negative integers within the system. Repetitive subtraction and addition components shall be utilised in implementing multiplication and division qualities. Other instruction sets could also be included to enhance the functioning and increase the number of operations, which the CPU can perform. The number of bits utilised in developing this
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.