DPST1092编程 写作、 辅导c/c++

” DPST1092编程 写作、 辅导c/c++DPST1092 21T2 Assignment 1: cellular, 1D Cellular Automaton in MIPSAssignment 1: cellular, 1D Cellular Automaton inMIPSversion: 1.0 last updated: 2021-06-3 20:00:00Aimsto give you experience writing MIPS assembly codeto give you experience with Data and control structures in MIPSGetting StartedCreate a new directory for this assignment called cellular, change to this directory, and fetch the provided code by running thesecommands:$ mkdir cellular$ cd cellular$ 1092 fetch cellularThis will add the following files into the directory:cellular.c: a cellular automaton renderercellular.s: a stub assembly file to completecellular.c: A Cellular Automaton Renderercellular.c is an implementation of a one-dimensional, three-neighbour cellular automaton. It examines its neighbours and its value inthe previous generation to derive the value for the next generation.Here, we using # to indicate a cell thats alive; and . to indicate a cell that is not.Given we examine three neighbours, there are eight states that the prior cells could be in. They are:For each one, we decide what action to take. For example, we might choose to have the following rule:We apply this rule to every cell, to determine whether the next state is alive or dead; and this forms the next generation. If we print thesegenerations, one after the other, we can get some interesting patterns.The description of the rule above by example, showing each case and how it should be handled is inefficient. We can abbreviatethis rule by reading it in binary, considering live cells as 1s and dead cells as 0s; and if we consider the prior states to be a binary valuetoo the above rule could be 0b00011110, or 30.To use that rule, we would mix together the previous states were interested in left, middle, and right which tells us which bit of therule value gives our next state.The size of a generation, the rule number, and the number of generations are supplied on standard input. For example:Files c.out and mips.out are identicalTry this for different values of the parameters.Assumptions and ClarificationsLike all good programmers, you should make as few assumptions as possible.Your submitted code must be hand-written MIPS assembly, which you yourself have written. You may not submit code in otherlanguages. You may not submit compiled output.You may not copy a solution from an online source (e.g., Github).There will be a style penalty for assignments that do not use the stack to save and restore $ra (in main)There will be a style penalty for assignments that do not follow these important MIPS calling conventions:function arguments should be passed in $a0 through $a3$s0..$s9 should be preserved across function calls: if a function changes these registers, it must restore the original value beforereturningThe above two style penalties apply only to assignments which score above CR (65+) on performance testing.If you need clarification on What you can and cannot use or do for this assignment, ask in the class forum.You are required to submit intermediate versions of your assignment. See below for details.AssessmentWhen you think your program is working, you can use autotest to run some simple automated tests:$ 1092 autotest cellular cellular.sSubmissionWhen you are finished working on the assignment, you must submit your work by running give:$ give dp1092 ass1_cellular cellular.sYou must run give before June 28 23:59:59 to obtain the marks for this assignment. Note that this is an individual exercise, the workyou submit with give must be entirely your own.You can run give multiple times.Only your last submission will be marked.You cannot obtain marks by e-mailing your code to tutors or lecturers.You can check your latest submission on CSE servers with:$ 1092 classrun -check ass1_cellularManual marking will be done by your tutor, who will mark for style and readability, as described in the Assessment section below. Afteryour tutor has assessed your work, you can collect your assignment by typing on the command line:$ 1092 classrun -collect ass1_cellularThe resulting mark will also be available by typing:$ 1092 classrun -sturecDue Date2021/6/18 DPST1092 21T2 Assignment 1: cellular, 1D Cellular Automaton in MIPSDue DateThis assignment is tentatively due June 28 23:59:59.If your assignment is submitted after this date, each hour it is late reduces the maximum mark it can achieve by 2%. For example, if anassignment worth 74% was submitted 10 hours late, the late submission would have no effect. If the same assignment was submitted 15hours late, it would be awarded 70%, the maximum mark it can achieve at that time.Assessment SchemeThis assignment will contribute 9 marks to your final DPST1092 mark.80% of the marks for assignment 1 will come from the performance of your code on a large series of tests.20% of the marks for assignment 1 will come from hand marking. These marks will be awarded on the basis of clarity, commenting,elegance and style. In other Words, you will be assessed on how easy it is for a human to read and understand your program.An indicative assessment scheme follows. The lecturer may vary the assessment scheme after inspecting the assignment submissions,but it is likely to be broadly similar to the following:HD (85+) beautiful documented code, which uses the stack with MIPS calling conventions, andimplements spec perfectlyDN (75+) very readable code, prints cells correctly if n_generations positive or negative, all rulescorrectly handledCR (65+) readable code, prints cells correctly if n_generations positive, rules mostly workingPS (55+) prints initial world (first line) correctly and sometimes more correct linesPS (50+) good progress on assignment but not passing autotests0% knowingly providing your work to anyoneand it is subsequently submitted (by anyone).0 FL forDPST1092submitting any other persons work; this includes joint work.academicmisconductsubmitting another persons work without their consent;paying another person to Do work for you.Intermediate Versions of WorkYou are required to submit intermediate versions of your assignment.Every time you work on the assignment and make some progress you should copy your work to your CSE account and submit it usingthe give command below. It is fine if intermediate versions do not compile or otherwise fail submission tests. Only the final submittedversion of your assignment will be marked.Attribution of WorkThis is an individual assignment.The work you submit must be entirely your own work, apart from any exceptions explicitly included in the assignment specificationabove. Submission of work partially or completely derived from any other person or jointly written with any other person is notpermitted.You are only permitted to request help with the assignment in the course forum, help sessions, or from the teaching staff (the lecturer(s)and tutors) of DPST1092.Do not provide or show your assignment work to any other person (including by posting it on the forum), apart from the teaching staffof DPST1092. If you knowingly provide or show your assignment work to another person for any reason, and work derived from it issubmitted, you may be penalized, even if that work was submitted without your knowledge or consent; this may apply even if your workis submitted by a third party unknown to you. You will not be penalized if your work is taken without your consent or knowledge.Do not place your assignment work in online repositories such as github or any where else that is publically accessible. You may use aprivate repository.Submissions that violate these Conditions will be penalised. Penalties may include negative marks, automatic failure of the course, andpossibly other academic discipline. We are also required to report acts of plagiarism or other student misconduct: if students involvedhold scholarships, this may result in a loss of the scholarship. This may also result in the loss of a student visa.Assignment submissions will be examined, both automatically and manually, for such submissions.Change LogVersion 1.0 Initial release.请加QQ:99515681 或邮箱:99515681@qq.com WX:codehelp

添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导