Implement a python program

Assignment Help Other Engineering
Reference no: EM132163643

Project: MIPS mini SIM

For this project, you will implement a python program, which takes as input a text file

1. Result of run: end content of PC, $1 - $7, and Dynamic Instruction Count

2. Cycle number details, in the following cases:
a. a multi-cycle MIPS CPU:
i. total # of cycles, breakdown of the 3 / 4 / 5 cycle instructions
ii. instruction by instruction information
b. a pipelined MIPS CPU (assuming branches are resolved at the 2nd ID stage, and all the forwarding paths supported to solve data hazard):
i. total # of cycles, breakdown on the total # of stalls inserted to deal with control & data hazards
ii. instruction by instruction information

3. Cache access behavior of lw instructions: provide cache access log, hit / miss info for each lw instruction, and hit rate of the program.
a. with a directly mapped cache with block size of 4 words, a total of 2 blocks.
b. with a directly mapped cache with block size of 2 words, a total of 4 blocks.
c. with a fully-associated cache, with block size of 2 words, a total of 4 blocks.
d. with a 2-way set-associative cache with block size of 2 words, 4 sets, (therefore a total of 16 blocks)

4. Extra credit: supporting any set-associative cache configurations by allowing the user to input block size (# of words), # of ways, and # of sets.

Assume the following limited support / subset of MIPS ISA for your program:
- Instructions: add, sub, xor, addi, beq, bne, slt, lw, sw
- Registers: $0 (always = 0), $1 - $7
- data memory address range: [0x2000, 0x3000)
- instruction memory address range: [0x0000, 0x1000)
- All the registers / data memory content are initialized to be 0
- The program will end at a dead loop "label: beq $0, $0, label" the machine code of which is 0x1000FFFF

Your python code should be able to read the file containing a valid MIPS program in hex, simulates its running, and correctly output the relevant information.

You should be able to use MARS to partially help verifying your code. For example, the behavior of the following code can be checked by MARs.

Attachment:- Project assignment.rar

Verified Expert

The assignment demands a python program to write MIPS program in hex that should contain text file named i_mem.txt. Different question based on program were answered.

Reference no: EM132163643

Questions Cloud

Amazon launchs their own delivery service : Amazon launchs their own delivery service. Discuss customer value and satisfaction.
What type of lease has wolverine signed : Wolverine is unaware of Boilermaker's implicit rate, but Wolverine's incremental borrowing rate is 5% per year. What type of lease has Wolverine signed
Corporate level strategy of diversification : How does Apple Company incorporate vertical and horizontal integration into its corporate level strategy of diversification?
Define five offenses with the highest occurrence : Include speaker notes with each slide of your presentation that provide information on the topics below. Outline the five offenses with the highest occurrence.
Implement a python program : Implement a python program, which takes as input a text file i_mem.txt (containing a MIPS machine code in hex) and output some important information of running
Compute the taket time : Total time per shift is 240 minutes per day, and there are three shifts per day. There are one 20-minute rest break per shift. Daily demand is 120 units.
Discuss about the policy process : The employed personnel should always be familiar with their work flow to make sure that the products are of high quality.
How stable are the big five traits over one lifespan : You will need to provide a more in-depth discussion (4-5 paragraphs). This is a college level psychology discussion question.
Difference between management and leadership : What is the difference between management and leadership? Explain the distinction using examples from sport organizations.

Reviews

inf2163643

12/19/2018 3:24:38 AM

vc they wanted to check for part 1 and part 2 and i got a response back i need to have the simulator done with mips isa. and pc should have the right instructions. when i run the file it does not run. can you show me what the simulator does for you. "30881729_1Projec t4-v1 PA PB1.pdf" he needs to use that to do the project part 1,2,3,4 in like a pdf. screenshots would be great as well the programs that are required to demonstrate for simulator of project 4. 30881729_1Project4-v1 PA PB1.pdf They have highly experienced staff and they did it in so professional manner that my professor appreciated me for my assignment. The rates are quite affordable

inf2163643

12/19/2018 3:24:21 AM

python programming idk if he used the ISA but its supposed to be MIPS. the code i provided you have to use that code and simulate it. i have attached my friends output its suppose to be like that. do not copy it please. its due thursday night so please try to do it before that 30881749_1p4 output imem A1.txt this following is what i need to submit can you please send me the following. file name is on the left and right has the description of it p4_sim.py: Python simulator for your ISA p4_output_imem_A1.txt: result screen output for program A1 p4_output_imem_A2.txt: result screen output for program A2 p4_output_imem_B1.txt: result screen output for program B1 p4_output_imem_B2.txt: result screen output for program B2

inf2163643

12/19/2018 3:23:13 AM

python programming idk if he used the ISA but its supposed to be MIPS. the code i provided you have to use that code and simulate it. i have attached my friends output its suppose to be like that. do not copy it please. its due thursday night so please try to do it before that 30881749_1p4 output imem A1.txt this following is what i need to submit can you please send me the following. file name is on the left and right has the description of it

Write a Review

Other Engineering Questions & Answers

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd