R23r8 little endian 0xfadeabad st id 32 0x00005566 69

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: o st Te st Big-Endian 0xFADEABAD 0xFFFFFFAD Test ID: 3251 Test ID: 3251 Te 0xffffff88 3251 Test ID: Down : 32 0x00000077 load 1169 1 69 -1 for any wrong 1 st ID er ID: 11 Te Dow nlo ade r ID: ID: 11691 Do de r Downloader ID : 116 91 wn lo ad er 1 69 11 nl oa : ID Do w st Test Test ID: 3251 Test ID: 3251 Te st ID : 32 51 Oxdia @ http://www.oxdia.com This test is copyrighted by the uploader and/or course instructor. Downloader id is shown and also encrypted throughout the document. Unauthorized reproduction/distribution is strictly prohibited. Do wn lo ad er ID : 11 69 1 Solution (if any) is NOT audited, so use at your discretion. Te st 51 32 : ID st Te Te st ID : 32 51 Page 4 of 11 Last Name (in case pages get detached):__________________ Tes t ID: 325 1 3. [10] Loop Operation: add movi LOOP: bge add call addi br DONE: ... r17, r0, r0 r16, 10 r17, r16, DONE r4, r17, r0 work r17, r17, 1 LOOP Tes t ID: 325 1 51 : 32 ID st Te Downl Which c-code matches the NIOS assembly above? Deciding which variables map to which registers is part of the problem. Just circle the right answer. 51 Te st 32 ID : 32 51 st i = 0; do { i++; work(i); } while (i < 10) wn Do for (i=0; i >= 10; i++) work(i); b) ID : a) er 69 1 ad lo : ID st : ID 51 32 Do Te wn lo ad e r ID: 11691 ID : 11 1 69 11 Downl oader Tes t ID: 51 for (i=0; i < 10; i++) work(i); er 11 ID ad 3251 lo Do wn i = 1; while (i >= 10){ work(i); i++; } Downloa der ID: 11691 Test st Te : ID 32 51 Starts from i=0 worth 2 Tests condition before first iteration worth 2 Tests the right condition worth 2 st Te : ID 51 32 -6 if (a) -8 if (b) -8 if (d) Te st ID : 32 51 Do wn lo ad er ID : 1 : 51 ID 32 r : ID: de ID 3251 nl oa st Do w Te 11 32 51 d) 69 st ID : ID: Te Te 1 69 : Test st ID : c) 32 325 1 11 69 1 Oxdia @ http://www.oxdia.com This test is copyrighted by the uploader and/or course instructor. 3251 Test ID: Downloader id is shown and also encrypted throughout the document. t ID: 3251 Unauthorized reproduction/distribution is strictly prohibited. Solution (if any) is NOT audited, so use at your discretion. oader ID: 1169 Page 5 of 11 Last Name (in case pages get detached):__________________ 51 32 Downloader ID: 11691 4. [10] Arrays: Assuming...
View Full Document

Ask a homework question - tutors are online