← RTL Design Interviews · SoC Architecture Interviews
Interview Question · Define the Hardware–Software Contract
Design a Microcontroller Memory Map
The Question
The interviewer asks
A microcontroller needs boot ROM, SRAM and peripheral registers. Firmware needs stable addresses and errors on unused space. What map would you give both teams?
You have two and a half minutes. Speak or type, then press Get Feedback under your answer. No credits needed.
Speech-to-text runs in your browser. Chrome and Edge may send audio to their own speech service.
You can edit your answer before you send it. Feedback uses AI and checks your answer only against our written answer. No credits are used and your answer is not saved.
Reveal the Model Answer
List each region with its owner, aligned base and size. Reserve space for growth and give unowned transfers a default error response. Generate the hardware decode and software addresses from the same map.
Self-Check
Tick each key point you covered in your answer.
What Interviewers Want to Hear (Fresher)
Locate the last byte of a region and the first byte outside it.
What Interviewers Want to Hear (Mid-Level)
Test the hardware selects and software constants against one ownership table.
Choose Your Follow-up
I’ve answered the opening question
Choose the route closest to your reasoning. Answer the follow-up aloud, then open the closing question.
I checked the starting addresses.
A proposed window starts at 0x4000 and spans 0x1000 bytes. Another starts at 0x4800. Is the second base free?
You have two and a half minutes. Speak or type, then press Get Feedback under your answer. No credits needed.
Speech-to-text runs in your browser. Chrome and Edge may send audio to their own speech service.
You can edit your answer before you send it. Feedback uses AI and checks your answer only against our written answer. No credits are used and your answer is not saved.
Reveal the Model Answer
Its end, base + size, is 0x5000. The second base lies inside the first window. Move or resize a region before generating the decoder.
Self-Check
Tick each key point you covered in your answer.
Keep Room for the Next Device
A future peripheral needs space beside an existing device. How would you preserve firmware compatibility and demonstrate the new boundary?
You have two and a half minutes. Speak or type, then press Get Feedback under your answer. No credits needed.
Speech-to-text runs in your browser. Chrome and Edge may send audio to their own speech service.
You can edit your answer before you send it. Feedback uses AI and checks your answer only against our written answer. No credits are used and your answer is not saved.
Reveal the Model Answer
Allocate a reserved window without moving a published region. Test the first and last valid addresses and the addresses just outside. Check the selected owner and completed response against the revised map.
Self-Check
Tick each key point you covered in your answer.
I checked the map for overlaps.
The map has no overlap. A read in a hole still selects the UART. What would you compare?
You have two and a half minutes. Speak or type, then press Get Feedback under your answer. No credits needed.
Speech-to-text runs in your browser. Chrome and Edge may send audio to their own speech service.
You can edit your answer before you send it. Feedback uses AI and checks your answer only against our written answer. No credits are used and your answer is not saved.
Reveal the Model Answer
Compare the implemented address comparison with the full region in the map. Ignoring a required upper bit can make two addresses select the same register.
Self-Check
Tick each key point you covered in your answer.
Keep Room for the Next Device
A future peripheral needs space beside an existing device. How would you preserve firmware compatibility and demonstrate the new boundary?
You have two and a half minutes. Speak or type, then press Get Feedback under your answer. No credits needed.
Speech-to-text runs in your browser. Chrome and Edge may send audio to their own speech service.
You can edit your answer before you send it. Feedback uses AI and checks your answer only against our written answer. No credits are used and your answer is not saved.
Reveal the Model Answer
Allocate a reserved window without moving a published region. Test the first and last valid addresses and the addresses just outside. Check the selected owner and completed response against the revised map.
Self-Check
Tick each key point you covered in your answer.
I provided a default target.
HREADY stays low forever on a NONSEQ read of the hole at 0x1000_7000. What is missing, and why should ERROR take two cycles?
You have two and a half minutes. Speak or type, then press Get Feedback under your answer. No credits needed.
Speech-to-text runs in your browser. Chrome and Edge may send audio to their own speech service.
You can edit your answer before you send it. Feedback uses AI and checks your answer only against our written answer. No credits are used and your answer is not saved.
Reveal the Model Answer
A default subordinate must answer the hole. HRESP=1 with HREADY=0 gives the manager time to cancel the following pipelined transfer. HRESP=1 with HREADY=1 finishes the failed read. An IDLE cycle gets OKAY.
Self-Check
Tick each key point you covered in your answer.
Keep Room for the Next Device
A future peripheral needs space beside an existing device. How would you preserve firmware compatibility and demonstrate the new boundary?
You have two and a half minutes. Speak or type, then press Get Feedback under your answer. No credits needed.
Speech-to-text runs in your browser. Chrome and Edge may send audio to their own speech service.
You can edit your answer before you send it. Feedback uses AI and checks your answer only against our written answer. No credits are used and your answer is not saved.
Reveal the Model Answer
Allocate a reserved window without moving a published region. Test the first and last valid addresses and the addresses just outside. Check the selected owner and completed response against the revised map.
Self-Check
Tick each key point you covered in your answer.
I aligned the windows.
For the 0x1000-byte window at 0x4000, which address bits must the decoder compare?
You have two and a half minutes. Speak or type, then press Get Feedback under your answer. No credits needed.
Speech-to-text runs in your browser. Chrome and Edge may send audio to their own speech service.
You can edit your answer before you send it. Feedback uses AI and checks your answer only against our written answer. No credits are used and your answer is not saved.
Reveal the Model Answer
The low twelve bits cover offsets 0x000 through 0xfff. Compare every higher bit against the base. A power-of-two size on its own size boundary makes that single comparison sufficient.
Self-Check
Tick each key point you covered in your answer.
Keep Room for the Next Device
A future peripheral needs space beside an existing device. How would you preserve firmware compatibility and demonstrate the new boundary?
You have two and a half minutes. Speak or type, then press Get Feedback under your answer. No credits needed.
Speech-to-text runs in your browser. Chrome and Edge may send audio to their own speech service.
You can edit your answer before you send it. Feedback uses AI and checks your answer only against our written answer. No credits are used and your answer is not saved.
Reveal the Model Answer
Allocate a reserved window without moving a published region. Test the first and last valid addresses and the addresses just outside. Check the selected owner and completed response against the revised map.
Self-Check
Tick each key point you covered in your answer.
What People Get Wrong
Common wrong answers and why they fail.
Misconception
I include base plus size as the last byte.
That claims the first byte of the next adjacent region.
Source S4.1, size and final address.
Half-Truth
A priority decoder fixes an overlap.
Priority hides one owner and can send software to the wrong device.