Interview Question · Waveform
AHB Address and Data Phases
- Asked at NVIDIA
- Likely at Broadcom
- Likely at Micron
The Question
The interviewer asks
What does it mean that AHB is pipelined? Draw three back-to-back zero-wait writes.
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
Every transfer has an address phase of one cycle and a data phase of one or more cycles. The next transfer's address phase happens during the current transfer's data phase. With no wait states, the bus finishes one transfer per cycle. Each transfer still takes two cycles from address to data. So write data trails its address by a cycle. At most two transfers are on the bus at once: one in address, one in data.
The data for address 0 is on HWDATA in cycle 1, while address 4 is already in its address phase.
Self-Check
Tick each key point you covered in your answer.
What Interviewers Listen For (Fresher)
A good fresher answer names the address phase and the data phase, and draws HWDATA one cycle after HADDR. It says the overlap gives one transfer per cycle.
What Interviewers Listen For (Junior)
A good junior answer says a wait state stretches the current data phase and keeps the next address phase on the wires. It knows a subordinate cannot stretch an address phase.
Cross-Questions
Where the interviewer goes next. Open a node to practise that follow-up.
WhyWhat IfProve ItBreak ItCompareScale It
- AHB Address and Data Phases
-
WhyWhat the AHB Pipeline BuysL1 Junior
Why pipeline the address at all? What does the subordinate gain?
2:30You 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
It gains a full cycle between seeing the address and having to produce or take the data. That is time to decode and start a memory access. Meanwhile the bus still completes one transfer per cycle. Without the overlap, a bus must halve its throughput. Or it must force every subordinate to answer in the same cycle it sees the address.
Self-Check
Tick each key point you covered in your answer.
What Interviewers Listen For (Junior)
A good junior answer says the overlap keeps one transfer per cycle. It also gives the subordinate a full cycle to decode the address.
What Interviewers Listen For (Mid-Level)
A good mid-level answer notes the cost: the next address is already on the bus when an error is found. That is why an AHB ERROR takes two cycles.
-
What IfThe Two-Cycle AHB ERRORL1 JuniorL2 Mid-Level
Why does an AHB ERROR response take two cycles when OKAY takes one?
2:30You 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 bus is pipelined. When a subordinate starts an ERROR, the next transfer's address phase is already on the bus. The first cycle (HRESP high, HREADYOUT low) holds that address phase and warns the manager. In the second cycle (HRESP high, HREADYOUT high), the manager can drive IDLE. That cancels the next transfer before anyone takes it. Wait states before the error carry HRESP low.
An ERROR on the Store to 0x9000; the Store to 0x104 Is CancelledMeasured: cycle 0 is edge 3 of the example. xferisHTRANS[1].All cyclesA token flies when an address phase is accepted. HRESP lit means ERROR.
- Cycle 1
The store to 0x100 is accepted.
- Cycle 2
0x100 completes with OKAY, and the store to 0x9000 is accepted at the same edge.
- Cycle 3
First ERROR cycle:
HRESPhigh,HREADYlow. The store to 0x104 is already on the wires, but nothing is accepted at this edge. - Cycle 4
The manager has replaced it with IDLE. Second ERROR cycle:
HREADYhigh,HRESPhigh. The 0x9000 store ends failed; the address phase taken here is IDLE. - Cycle 5
The bus is idle and OKAY again. 0x104 was never written: the dump reads 00 there.
The first ERROR cycle is a wait state that exists to give the manager this one decision.
Self-Check
Tick each key point you covered in your answer.
What Interviewers Listen For (Junior)
A good junior answer gives the two ERROR cycles exactly. It links them to the next address already being on the bus.
What Interviewers Listen For (Mid-Level)
A good mid-level answer knows the manager may cancel or continue the rest of a burst. It may change the address once the ERROR has started, and need not resend a cancelled burst.
Spec Misquote
After an ERROR the manager must abandon the rest of the burst.
Cancelling is allowed, not required. Continuing the remaining beats is also acceptable. If the manager cancels, it drives IDLE during the two-cycle response.
Source AMBA AHB Protocol Specification IHI 0033C §3.6.2 Early burst termination; §5.1.3 ERROR response
Spec Misquote
A one-cycle error is fine as long as HRESP is high when HREADYOUT is high.
HRESP high with HREADYOUT high is only the second cycle. It must follow a first cycle with HREADYOUT low. A one-cycle error gives the manager no chance to cancel the next transfer.
Source AMBA AHB Protocol Specification IHI 0033C §5.1 Subordinate transfer responses (Table 5-2); §5.1.3 ERROR response
Misconception
Read data that comes with ERROR is thrown away, so the subordinate can leave anything on HRDATA.
The manager may still use read data that comes with an ERROR. So a subordinate cannot rely on ERROR to hide a value. Driving HRDATA to zero on a read error is recommended.
Source AMBA AHB Protocol Specification IHI 0033C §5.1.3 ERROR response
- Cycle 1
-
What IfCancelling After an ERRORL2 Mid-Level
Beat 2 of an INCR4 write gets ERROR, and the manager drives IDLE in the second error cycle. What happens to beat 3, and must the manager redo the burst later?
text Data phase beat 1 beat 2 beat 2 HRESP OKAY ERROR ERROR HREADY 1 0 1 Address HTRANS SEQ SEQ IDLE What happens to the pipelined beat 3?2:30You 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
Beat 3's address phase was on the bus during the first error cycle. The manager turns it into IDLE in the second cycle. So no subordinate ever takes it, because it is never accepted as NONSEQ or SEQ with HREADY high. The manager need not rebuild the remaining beats later. During that waited cycle, it may also change the address, which the normal hold rule forbids.
Self-Check
Tick each key point you covered in your answer.
What Interviewers Listen For (Mid-Level)
A good mid-level answer explains that the cancelled beat is never accepted by any subordinate. It also says the manager need not resend the rest of the burst.
What Interviewers Listen For (Senior)
A good senior answer tests both manager choices, cancel and continue, in the bench. It checks that the subordinate keeps no partial state from the cancelled beat.
-
What IfA Manager That Continues After ERRORL2 Mid-Level
What if the manager does not cancel, and drives beats 3 and 4 after the ERROR? Is that legal, and what should your checker accept?
2:30You 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
It is legal: cancelling the rest of the burst is allowed, not required. So the checker must accept both IDLE in the second error cycle and a burst that carries on. The subordinate answers the later beats normally. A checker that flags the continued burst reports a false failure on a legal manager.
Self-Check
Tick each key point you covered in your answer.
Spec Misquote
"After an ERROR the manager must abandon the burst."
The spec allows either choice. A checker built on that belief fails legal managers.
Source AMBA AHB Protocol Specification IHI 0033C §3.6.2 Early burst termination
Missed Corner
"An ERROR on a read stops the manager using the data."
The manager may still use it. That is why the spec recommends driving HRDATA to zero on an errored read.
Source AMBA AHB Protocol Specification IHI 0033C §5.1.3 ERROR response
-
Break ItAsserting the Two-Cycle ERRORL2 Mid-Level
A subordinate sometimes gives a one-cycle ERROR. Write assertions that catch it.
2:30You 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
Check both directions. A first ERROR cycle (HRESP high, HREADYOUT low) must be followed by a second (HRESP high, HREADYOUT high). And a second cycle must be preceded by a first. The one-cycle error passes the first property vacuously: there is no first cycle to trigger it. It fails only the second, so a checker with just one of them misses it.
An ERROR with No Second CycleThe write to 0x8000 gets ERROR in a single cycle. At that same edge the write to 0x600 is accepted, and it completes. All cyclesap is 1 while a NONSEQ sits in the address phase. A token on the address wire is an address phase accepted at that edge.
- Cycle 1
The write to 0x8000 is accepted at this edge: its data phase is the next cycle.
- Cycle 2
The memory ends that data phase with HRESP and HREADY high together. The property
err_firstfails here: an ERROR must start with HREADY low. The same edge accepts the next address phase, the write to 0x600. - Cycle 3
The write to 0x600 completes with 77. A two-cycle ERROR would have given the manager the edge before this one to drive IDLE instead.
Measured on the lesson bench. This ERROR has one cycle only, so the next write is accepted and completes.
RUNVerilator · simulator serviceExpected:t=65 second_needs_first failedt=90 doneSelf-Check
Tick each key point you covered in your answer.
What Interviewers Listen For (Mid-Level)
A good mid-level answer writes both implications, first cycle to second and second cycle back to first. It explains why one of them alone misses the one-cycle error.
What Interviewers Listen For (Senior)
A good senior answer also covers the starting conditions, an ERROR with and without wait states before it. Then a pass really means the rule was tested.
- Cycle 1
-
CompareError Responses Across AMBAL2 Mid-LevelL3 Senior
Compare AHB ERROR with APB PSLVERR and AXI SLVERR and DECERR. Where does an AHB decode error come from?
2:30You 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
AHB has one response bit, so a decode error is ERROR from the default subordinate for unmapped NONSEQ or SEQ transfers. APB's PSLVERR counts only in the single completion cycle, and needs no second cycle because APB is not pipelined. AXI separates SLVERR (the end point refused) from DECERR (no end point). It reports per read beat and once per write, and never shortens a burst. Bridges map PSLVERR to HRESP or to RRESP/BRESP.
Self-Check
Tick each key point you covered in your answer.
What Interviewers Listen For (Mid-Level)
A good mid-level answer gets the error signalling of AHB, APB and AXI right. It knows the default subordinate makes the decode error on AHB.
What Interviewers Listen For (Senior)
A good senior answer explains that the cycle counts differ because of pipelining. It says what a bridge loses: AHB's one HRESP bit cannot carry SLVERR versus DECERR without extra status.
-
Prove ItSolve P4.5.1: A One-Cycle ErrorSimulator-graded
Show it, don't just say it: this Silicon Lab problem is graded by the simulator.
-
What IfAHB Wait States, HREADY and HREADYOUTL1 JuniorL2 Mid-Level
A subordinate inserts two wait states on a read. What happens on the bus during those cycles? And what is the difference between HREADY and HREADYOUT?
text Rising edge 0 1 2 3 Address phase READ A next held held Data phase prior READ A READ A READ A HREADY 1 0 0 1 HRDATA - ? ? D[A] Annotate the address/control signals that must remain stable.2:30You 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 wait states stretch the data phase of the read. They also stretch the address phase of the next transfer, which stays on the wires until HREADY is high. Each subordinate drives HREADYOUT for its own data phase. The multiplexor picks the HREADYOUT of the subordinate whose data phase is active. It sends that as HREADY to the manager and to every subordinate. A subordinate takes an address phase only at an edge where its HSEL and HREADY are both high.
Two Wait States Hold the Data of A and the Address of BMeasured: cycle 0 is edge 3. xferisHTRANS[1], 1 for NONSEQ or SEQ.All cyclesA token flies when an address phase is accepted: a transfer on HTRANS and HREADY high.
- Cycle 1
A's address phase, 0x1000, is accepted: NONSEQ and
HREADYhigh. - Cycle 2
A's data phase starts with 11 on
HWDATA, and B's address 0x1010 is already on the wires. The memory drivesHREADYOUTlow: nothing is accepted at this edge. - Cycle 3
Still waiting. The manager holds both the data of A and the address of B exactly as they were.
- Cycle 4
HREADYis high: A's data is written and B's address is accepted at the same edge. - Cycle 5
B's data, 22, moves while the read of 0x1000 is in its address phase. No waits this time.
- Cycle 6
The read's data phase ends with 11 on
HRDATA, the word A wrote.
A wait state costs every transfer in the pipeline a cycle, not only the slow one.
Self-Check
Tick each key point you covered in your answer.
What Interviewers Listen For (Junior)
A good junior answer says the next address phase is held during the wait. It tells HREADYOUT, one per subordinate, apart from HREADY, the shared bus signal.
What Interviewers Listen For (Mid-Level)
A good mid-level answer knows what a manager may still change in a wait. Those are an IDLE's address, IDLE to NONSEQ, and BUSY to SEQ. It explains why a subordinate needs HREADY as an input.
Missed Corner
A monitor can count a transfer at every edge where HTRANS is NONSEQ or SEQ.
While a data phase is stretched, the next transfer waits on the wires and shows NONSEQ at every edge. Below, the naive monitor logs 0x24 three times. Only edges with HREADY high count.
Run It
RUNIcarus Verilog · in your browserExpected:t=15 naive monitor logs address 0x00000020t=15 HREADY monitor logs address 0x00000020t=25 naive monitor logs address 0x00000024t=35 naive monitor logs address 0x00000024t=45 naive monitor logs address 0x00000024t=45 HREADY monitor logs address 0x00000024FAIL naive monitor counted 4 address phases; the bus carried 2PASS HREADY monitor counted 2 address phases; the bus carried 2Spec Misquote
The manager may change the address freely during a wait state.
It may change only while the waiting address phase is IDLE, or after an ERROR has started. Once it shows NONSEQ or SEQ, the address is held until HREADY is high.
Source AMBA AHB Protocol Specification IHI 0033C §3.7.2 Address changes during wait states
Misconception
A subordinate only needs HSELx; HREADY is the manager's business.
A selected subordinate must also see HREADY high. That tells it the previous transfer has finished, even if it belonged to another subordinate. Sampling on HSEL alone takes transfers that have not been accepted.
Source AMBA AHB Protocol Specification IHI 0033C §2.4 Decoder signals; §4.2 Address decoding
- Cycle 1
-
WhyWhy a Subordinate Takes HREADY InL1 JuniorL2 Mid-Level
A subordinate drives HREADYOUT. Why does it also need the bus HREADY as an input?
2:30You 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 data phase in front may belong to another subordinate. HREADY says when that data phase ends. Only then does the address phase on the wires count as accepted. A subordinate that samples on HSEL alone may act too early. The address phase may still change, such as an IDLE becoming NONSEQ, or the manager may cancel it after an ERROR.
Self-Check
Tick each key point you covered in your answer.
What Interviewers Listen For (Junior)
A good junior answer says HREADY tells the subordinate that the transfer in front has finished.
What Interviewers Listen For (Mid-Level)
A good mid-level answer gives the failure. If another data phase is stretched, a subordinate that looks only at HSEL takes the same address phase several times. Or it takes one that later changes.
-
Break ItA Subordinate That Samples on HSEL AloneL2 Mid-Level
Break it: a subordinate takes address and control whenever HSEL is high and ignores HREADY. Show the failure.
2:30You 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
While the data phase in front is in a wait state, HSEL and the address can already point at this subordinate. It then takes a transfer the bus has not accepted yet. If the manager changes IDLE to NONSEQ, or cancels after an ERROR, the subordinate acts on the wrong transfer. Across a long wait it can even take one transfer twice.
Self-Check
Tick each key point you covered in your answer.
Spec Misquote
"HSEL is high, so the transfer is for me and I take it."
HSEL only says the address decodes to you. The address phase counts only in a cycle where HREADY is high.
Source AMBA AHB Protocol Specification IHI 0033C §4.2 Address decoding
-
What IfHTRANS During a Wait StateL2 Mid-Level
While HREADY is low, may the manager change HTRANS? Give the exceptions.
2:30You 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
Normally no, with three exceptions. IDLE may become NONSEQ, and in a fixed-length burst BUSY may become SEQ. In an undefined-length INCR burst, BUSY may become anything, and IDLE or NONSEQ ends the burst. After any such change, HTRANS is held until HREADY is high. The address may change only for IDLE, or after an ERROR has started.
Self-Check
Tick each key point you covered in your answer.
What Interviewers Listen For (Mid-Level)
A good mid-level answer lists the three exceptions where HTRANS may change in a wait. It says HTRANS then holds until HREADY is high.
What Interviewers Listen For (Senior)
A good senior answer writes the hold checker with each exception as its own OR term. It makes stimulus hit each exception, so the checker does not pass without testing anything.
-
Prove ItSolve P4.4.1: The Hold CheckerSimulator-graded
Show it, don't just say it: this Silicon Lab problem is graded by the simulator.
-
Scale ItBounding AHB Wait StatesL3 Senior
Why should every AHB subordinate have a known maximum number of wait states? How would you check that across an SoC?
2:30You 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
Wait states stall the whole AHB interface. So the worst-case latency of every manager depends on the slowest subordinate it can reach. A known maximum per subordinate lets you compute that latency. Check it with a watchdog per subordinate, set to its documented bound. Add performance tests that hit the worst case and, for small blocks, a bounded-response property in formal.
Self-Check
Tick each key point you covered in your answer.
What Interviewers Listen For (Senior)
A good senior answer explains that a wait state stalls the whole bus. It turns each subordinate's documented maximum wait into a checked parameter.
What Interviewers Listen For (Staff)
A good staff answer adds the system view: in a multi-layer interconnect, arbitration delay adds to each subordinate's bound. It sets a latency budget for each real-time manager.
-
Break ItRules for an AHB MonitorL2 Mid-LevelL3 Senior
Write down the rules your AHB monitor uses. When is an address phase taken, and when does its data phase end? What do monitors usually get wrong?
2:30You 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
An address phase is taken at an edge where HREADY is high and HTRANS is NONSEQ or SEQ. On a subordinate port, HSEL must be high too. Its data phase ends at the next edge where HREADY is high, and HWDATA, HRDATA and HRESP belong to it there. Monitors often log at the address phase and pair the wrong data. Others ignore HREADY and log a waiting transfer several times, or read HRESP as final in the first ERROR cycle.
Self-Check
Tick each key point you covered in your answer.
What Interviewers Listen For (Mid-Level)
A good mid-level answer names both edges correctly: where the address phase is taken and where its data phase ends. It keeps one pending transfer between them.
What Interviewers Listen For (Senior)
A good senior answer handles the ERROR case, where the next address phase may be cancelled to IDLE. It keeps the monitor passive and the checks separate, and adds coverage on HBURST, HSIZE, waits and BUSY.
-
Prove ItSolve P4.11.1: The AHB MonitorSimulator-graded
Show it, don't just say it: this Silicon Lab problem is graded by the simulator.
-
Prove ItSolve P4.4.1: The Hold CheckerSimulator-graded
Show it, don't just say it: this Silicon Lab problem is graded by the simulator.
-
CompareAHB Pipelining Against AXI Outstanding TransactionsL1 JuniorL2 Mid-Level
Compare AHB's pipelining with AXI's outstanding transactions. When would you still pick AHB?
2:30You 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
AHB has one address and control path, with at most one transfer in address and one in data. Transfers complete in order, and a wait state stalls whatever is behind it. AXI has independent channels and IDs, so a manager can issue many requests without waiting. Responses with different IDs may return out of order. AHB wins on area and simplicity for a single manager with modest latency, such as a microcontroller memory bus.
Self-Check
Tick each key point you covered in your answer.
What Interviewers Listen For (Junior)
A good junior answer contrasts the two buses. AHB is two transfers deep and in order, while AXI allows many requests in flight, ordered by ID.
What Interviewers Listen For (Mid-Level)
A good mid-level answer links it to hiding latency. With memory latency L, AHB stalls for L cycles while AXI keeps L requests in flight. It picks AHB where latency is short and area matters.
-
Break ItRules for an AHB MonitorL2 Mid-LevelL3 Senior
Write down the rules your AHB monitor uses. When is an address phase taken, and when does its data phase end? What do monitors usually get wrong?
2:30You 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
An address phase is taken at an edge where HREADY is high and HTRANS is NONSEQ or SEQ. On a subordinate port, HSEL must be high too. Its data phase ends at the next edge where HREADY is high, and HWDATA, HRDATA and HRESP belong to it there. Monitors often log at the address phase and pair the wrong data. Others ignore HREADY and log a waiting transfer several times, or read HRESP as final in the first ERROR cycle.
Self-Check
Tick each key point you covered in your answer.
What Interviewers Listen For (Mid-Level)
A good mid-level answer names both edges correctly: where the address phase is taken and where its data phase ends. It keeps one pending transfer between them.
What Interviewers Listen For (Senior)
A good senior answer handles the ERROR case, where the next address phase may be cancelled to IDLE. It keeps the monitor passive and the checks separate, and adds coverage on HBURST, HSIZE, waits and BUSY.
-
Prove ItSolve P4.11.1: The AHB MonitorSimulator-graded
Show it, don't just say it: this Silicon Lab problem is graded by the simulator.
-
Prove ItSolve P4.2.1: A Zero-Wait AHB SubordinateSimulator-graded
Show it, don't just say it: this Silicon Lab problem is graded by the simulator.
What People Get Wrong
Common wrong answers and why they fail. Run It shows the wrong belief failing on a real simulator.
Misconception
A monitor can log each write with the HWDATA it sees in the same cycle as HADDR.
HWDATA belongs to the data phase, one cycle after its address phase. The same-cycle monitor below gives each write the previous write's data. The pipelined monitor gets it right.
Run It
FAIL same-cycle monitor: 0x0 <- 00 FAIL same-cycle monitor: 0x4 <- a1 PASS pipelined monitor: 0x0 <- a1 FAIL same-cycle monitor: 0x8 <- b2 PASS pipelined monitor: 0x4 <- b2 PASS pipelined monitor: 0x8 <- c3Spec Misquote
A subordinate that is not ready can hold the address phase.
No subordinate can extend an address phase, so every subordinate must sample the address in that cycle. It can only stretch its own data phase with HREADYOUT low.
Source AMBA AHB Protocol Specification IHI 0033C §1.3 Operation
Misconception
Pipelined means AHB keeps many transactions outstanding, like AXI.
The pipeline is one address phase overlapping one data phase. There are no IDs and no reordering. A wait stalls the next transfer too.
Source AMBA AHB Protocol Specification IHI 0033C §3.1 Basic transfers