Put the boot of ap_fpga in order for three ways of getting the fabric its design, and find when each half is ready.
Hardware context: ap_fpga: three boot orders, and one region of the fabric swapped behind a decoupler. FPGA SoC bring-up and partial reconfiguration
This is ap_fpga of lesson S10.19 with a shorter bitstream. A tick is one word through the configuration port. The bridge between the halves opens when the loader is done and the fabric is live, whichever is later.
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
| Step | Ticks |
|---|---|
| The boot ROM of the hard half, until the loader runs | 5 |
| The loader reads and checks the next image | 20 |
| The bitstream, one word a tick | 40 |
| The fabric wakes its logic and leaves reset | 3 |
| Order | Code | Who writes the bitstream |
|---|---|---|
| Kept design: the fabric holds its design without power | 1 | Nobody at boot |
| Fabric first: a configuration block loads the fabric while the hard half waits in reset | 2 | The configuration block, from flash |
| Hard half first: the loader writes the fabric | 3 | The loader |
| Step of the hard-first boot | Code |
|---|---|
| Power good | 1 |
| Boot ROM runs | 2 |
| Loader checks the bitstream | 3 |
| Bitstream written | 4 |
| Fabric leaves reset | 5 |
| Bridge opens | 6 |
Enter a code, a tick or a position.
| Entry | Your decision |
|---|---|
| LIVE_KEPT | Kept design: at what tick is the fabric live? |
| OPEN_KEPT | Kept design: at what tick does the bridge open? |
| LIVE_FIRST | Fabric first: at what tick is the fabric live? |
| LOADER_FIRST | Fabric first: at what tick is the loader done? |
| LOADER_HARD | Hard half first: at what tick is the loader done? |
| LIVE_HARD | Hard half first: at what tick is the fabric live? |
| WAIT_HARD | Hard half first: for how many ticks does the processor run before the fabric is live? |
| FIRST_PIN | Which order lets the fabric drive a pin earliest? Enter the code of the order. |
| SAME_CHAIN | In which order can the loader check the bitstream with the keys of the boot chain? Enter the code. |
| POS_RESET | In the hard-first boot, at what position (1 to 6) does the fabric leave reset? |
| OPEN_HARD_FIRST | The bitstream has W words. Everything else is as in the tables. In the order where the hard half boots first, at what tick does the bridge open? |
Examples
Example 1
LIVE KEPT- Input
Kept design: at what tick is the fabric live?
- Output
matches = 1
Nothing to load: only the 3 ticks to start.
Example 2
OPEN KEPT- Input
Kept design: at what tick does the bridge open?
- Output
matches = 1
The loader is done at 5 + 20 = 25, after the fabric.
Example 3
LIVE FIRST- Input
Fabric first: at what tick is the fabric live?
- Output
matches = 1
40 words and 3 ticks to start.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For OPEN_HARD_FIRST, enter a constant expression using W. Only this entry changes with the parameter. The supported integer range is 8 through 200, inclusive.
- Replace each unfinished 255 with your decision.
Hints
Hint 1
Find the order first: nobody, a configuration block, or the loader.
Hint 2
Add the steps that come one after another; steps of different halves may overlap.
Hint 3
The bridge needs both halves: take the later of the two times.
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 2 problems on this path