Question: (60 points total) Consider the following C code snippet: // Global variable uint8_t ipt1[4]; // Input data 1 uint16_t ipt2[4]; // Input data 2 uint32_t
(60 points total) Consider the following C code snippet:
// Global variable uint8_t ipt1[4];
// Input data 1 uint16_t ipt2[4];
// Input data 2 uint32_t ipt3[4];
// Input data 3 int main(void) {
for (int i = 0; i < 4; i++) {
ipt1[i] = i<<4; ipt2[i] = i<<5; ipt3[i] = i<<6; }
}
Assuming the addresses of arrays ipt1, ipt2, and ipt3, are 0x2000_0000, 0x2000_0010, and 0x2000_0020, respectively. Draw the memory map (addresses in hexadecimal and contents in decimal) in a similar way to those shown on page 1 of class notes of Module 7.
a. (10 points) Draw the memory map of the first 4 addresses starting from ipt1.
b. (20 points) Draw the memory map of the first 8 addresses starting from ipt2.
c. (30 points) Draw the memory map of the first 16 addresses starting from ipt3.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
