Predict what a service tool can learn from a mixed status word and what its read will consume.
Hardware context: Timer event register. Peripheral register interfaces
Read this exercise description for an eight-bit recorder. Each question starts from reset unless it gives another starting value.
This worksheet uses named constants. The first three entries show how to record your decisions.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Bits | Field | Rule |
|---|---|---|
| 7:6 | Reserved | Read zero, ignore writes |
| 5 | ARM | RW, reset one |
| 4 | BUSY | RO, live input |
| 3 | BELL | WO, writing one rings once, reads zero |
| 2 | FAULT | W1C, reset zero, hardware set wins |
| 1 | EDGE | RC, reset zero, hardware set wins |
| 0 | BANK | First write locks the written bit until reset, reads stored value, reset zero |
Writes cover the whole byte. Reading EDGE returns its old value and clears it. BUSY is low unless specified.
| Entry | Your decision |
|---|---|
| POWER_UP | What byte does the first read return? |
| BUSY_MASK | What value does BUSY add when high? |
| BELL_READ | How much does BELL contribute on readback? |
| EDGE_PAIR | EDGE alone rises after reset. What byte does the second consecutive read return? |
| FAULT_ACK | FAULT is set. Write 0x24. What byte reads back? |
| RACE | Hardware sets FAULT on that same 0x24 write. What byte reads back? |
| BANK_PAIR | Write 0x20, then 0x21. What does BANK read? |
| REARM | Write 0x21 and reset. What byte reads back? |
| BOTH | FAULT and EDGE both rise after reset. What byte does the first read return? |
| RESERVED | Write 0xc0. What byte reads back? |
| OBSERVED | After reset, bit 0 of FLAGS requests a hardware FAULT set and bit 1 requests an EDGE set. After those events, what byte does the first read return? |
Examples
Example 1
POWER UP- Input
What byte does the first read return?
- Output
matches = 1
Only ARM starts high. Its bit contributes 32.
Example 2
BUSY MASK- Input
What value does BUSY add when high?
- Output
matches = 1
Bit four contributes sixteen.
Example 3
BELL READ- Input
How much does BELL contribute on readback?
- Output
matches = 1
The bell emits a pulse and reads zero.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For OBSERVED, enter a constant expression using FLAGS. Only this entry changes with the parameter. The supported integer range is 0 through 3, inclusive.
Hints
Hint 1
Mark storage, live pins and pulses.
Hint 2
Return the pre-read value before applying a read side effect.
Hint 3
Apply the priority written for this device.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
11 checks on Icarus Verilog · server. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain your source only; samples require the simulation service. A passing result establishes the tested cases, not a proof for all possible inputs.
See all 3 problems on this path