0% found this document useful (0 votes)
89 views1 page

CSE-331-Assignment3 Spring 2024

The document outlines an assignment for a microprocessor interfacing course. Students are asked to write programs and assembly code to find prime numbers within a given list of integers, and display the largest prime on a seven segment display. They must submit their work according to the specified guidelines on the canvas online portal. Late submissions within three days will incur a 20% point deduction.

Uploaded by

sumitkumarkar01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views1 page

CSE-331-Assignment3 Spring 2024

The document outlines an assignment for a microprocessor interfacing course. Students are asked to write programs and assembly code to find prime numbers within a given list of integers, and display the largest prime on a seven segment display. They must submit their work according to the specified guidelines on the canvas online portal. Late submissions within three days will incur a 20% point deduction.

Uploaded by

sumitkumarkar01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

‭CSE 331: Microprocessor Interfacing and Embedded Systems‬

‭Assignment#3‬

‭Spring 2024‬

‭Name: ___________________________________‬

‭Student ID: ___________________________‬

‭ irection:‬ ‭You‬ ‭can‬ ‭consult‬‭any‬‭resources‬‭such‬‭as‬‭books,‬‭online‬‭references,‬‭and‬‭videos‬


D
‭for‬ ‭this‬ ‭assignment,‬ ‭however,‬ ‭you‬ ‭have‬ ‭to‬ ‭properly‬ ‭cite‬ ‭and‬ ‭paraphrase‬ ‭your‬ ‭answers‬
‭when‬‭it‬‭is‬‭necessary.‬‭There‬‭will‬‭be‬‭points‬‭for‬‭partial‬‭attempts.‬‭You‬‭can‬‭upload‬‭a‬‭typed‬‭or‬
‭handwritten‬ ‭copy‬ ‭of‬ ‭your‬ ‭assignment‬ ‭to‬ ‭the‬ ‭canvas.‬ ‭However,‬ ‭you‬ ‭have‬ ‭to‬ ‭show‬ ‭the‬
‭original‬‭copy‬‭of‬‭your‬‭assignment‬‭in‬‭case‬‭of‬‭arising‬‭questions‬‭about‬‭the‬‭authenticity.‬‭You‬
‭should‬ ‭upload‬ ‭your‬ ‭assignment‬ ‭to‬ ‭canvas.‬ ‭There‬ ‭will‬ ‭be‬‭three‬‭days‬‭of‬‭grace‬‭period‬‭for‬
‭late submission, however, 20% of points will be deducted.‬

‭ ubmission‬ ‭guidelines:‬ ‭All‬‭our‬‭assignments‬‭will‬‭be‬‭based‬‭on‬‭100‬‭points‬‭so‬‭that‬‭we‬‭can‬


S
‭assign‬‭weights‬‭to‬‭get‬‭your‬‭points‬‭for‬‭final‬‭grade.‬‭Whoever‬‭fails‬‭to‬‭submit‬‭within‬‭the‬‭time‬
‭period‬ ‭assigned‬ ‭through‬ ‭NSU‬ ‭canvas‬ ‭but‬ ‭submit‬ ‭the‬ ‭assignment‬ ‭within‬ ‭the‬ ‭next‬ ‭three‬
‭days‬ ‭will‬ ‭be‬ ‭punished‬ ‭by‬ ‭20%‬ ‭deduction‬ ‭of‬ ‭points‬ ‭(e.g.‬ ‭start‬ ‭with‬‭-20‬‭points‬‭within‬‭100‬
‭points).‬ ‭The‬ ‭late‬ ‭submission‬ ‭will‬‭be‬‭open‬‭until‬‭semester‬‭through‬‭email‬‭to‬‭TA‬‭and‬‭CC‬‭to‬
‭the instructor. After the first 3 days of grace period, the deduction will be 30%.‬

‭ ote:‬‭You‬‭are‬‭allowed‬‭to‬‭use‬‭only‬‭instructions‬‭implemented‬‭by‬‭the‬‭actual‬‭MIPS‬‭hardware‬
N
‭provided‬‭in‬‭the‬‭Canvas‬‭references.‬‭Use‬‭assembly‬‭language‬‭format‬‭from‬‭the‬‭references‬‭or‬
‭the‬ ‭book.‬ ‭Note,‬ ‭base‬ ‭ten‬ ‭numbers‬ ‭are‬ ‭listed‬ ‭as‬ ‭normal‬ ‭(e.g.‬ ‭23),‬ ‭binary‬ ‭numbers‬ ‭are‬
‭prefixed‬‭with‬‭0b‬‭or‬‭format‬‭such‬‭as‬‭XX‬‭2‬ ‭and‬‭hexadecimal‬‭numbers‬‭are‬‭prefixed‬‭with‬‭0x‬‭or‬
‭format such as XX‬‭16‬‭/XX‬‭HEX‬

‭1.‬ P
‭ roblem (100 points):‬‭You have to write a to find‬‭the prime numbers from the following‬
‭integers: 4, 7, 11, 14, 16, 21, 23, 27, 29, 38, 39, 41, 47, 49, 53, 55, 69, 97, 99.‬
‭a.‬ ‭(10 points) Write a flow chart for the problem.‬
‭b.‬ ‭(10 points) Write a C program for the problem.‬
‭c.‬ ‭(40 points) Write an equivalent assembly program for the problem using ARMV7‬
‭Instructions Set Architecture (ISA). Also show the largest prime number in the‬
‭seven-segment display. You must use directives such as if you have a data‬
‭section or code section, show them clearly with directives.‬
‭d.‬ ‭(20 points) Optimize your assembly code so that it takes as few instructions as‬
‭possible.‬
‭e.‬ ‭(20 points) Write equivalent machine instructions in hexadecimal format for each‬
‭unique Instruction. (For example, if you have used an ADD instruction 7 times,‬
‭you will write equivalent machine instruction for ADD once).‬

You might also like