计算机代考 COMP2421 Computer Organization 2019/20 Semester 1

COMP2421 Computer Organization 2019/20 Semester 1
Lab 1 PC Components and MIPS Simulator
In this lab, some common hardware components of a personal computer (PC) will be introduced. In addition, you are going to get yourself familiar with QtSpim, a Microprocessor without Interlocked Pipelined Stages (MIPS) simulator, which reads and executes assembly language programs written for the MIPS processor, which will be used for your programming assignments in this course.
Task 1 Examining the hardware of your PC

Copyright By PowCoder代写 加微信 powcoder

1. If you are using Windows machines, it is not difficult to retrieve a list of hardware components from the system. Go to [Control Panel] -> [Hardware and Sound]. Under [Devices and Printers], choose [Device Manager].
2. A more detailed configuration of the PC can be shown using a 3rd party software named, HWiNFO. Download and install “HWiNFO Installer” from https://www.hwinfo.com/. Use this software to examine the hardware configuration of the lab machine and your laptop/desktop machine(s).

COMP2421 Computer Organization
2019/20 Semester 1
Find out the followings:
1. CPU frequency
2. Total size of Random Access Memory (RAM)
3. Total size of harddisk
4. Number of cache level and the size of each
Below shows a common PC motherboard:

COMP2421 Computer Organization 2019/20 Semester 1
Task 2 Experiencing QtSpim
1. Visit https://sourceforge.net/projects/spimsimulator/files/. Download and install “QtSpim_9.1.20_Windows.msi”. Note: this version will be used to assess your programming assignments.
2. After successful installation, an icon should appear on the Desktop. Double click the icon and execute the program. Two windows, “QtSpim” and “Console” will appear.
There are three different panels in QtSpim’s main window:
i. Register Panel – The left panel displays values of registers, which are the memory internal to CPU. There are two tabs – one for integer registers and one for float- point registers.
ii. Memory Panel – The right and wider panel shows the “Text” tab or the “Data” tab. For “Text” tab, it displays the content of the main memory in terms of instructions (program statements). For “Data” tab, it displays the content in each memory location in terms of hexadecimal values.
iii. Message Panel – The panel at the bottom shows the system’s message.

COMP2421 Computer Organization 2019/20 Semester 1
Task 3 Hello World
1. Download “lab01.s” from Blackboard. In QtSpim, load the program file by selecting [File] → [Reinitialize and Load File]. Choose “lab01.s”. Click (Run/Continue).
2. This program prompts for two integers and performs addition and subtraction on the inputs.
3. Use a text editor to open the source file, “lab01.s”. Read and have a taste of assembly language. We will go through the details of the code.
[Questions] Input A as 2147483646 and B as 1. What is the output?
[Questions] Input A as 2147483647 and B as 1. What is the output? Why?
The following serves as a good reference for your study in MIPS assembly language:
https://www.scribd.com/document/3577342/MIPS-assembly-language-programming

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com