S10.19.2 Order the FPGA SoC Boot

EasyImplement12 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
StepTicks
The boot ROM of the hard half, until the loader runs5
The loader reads and checks the next image20
The bitstream, one word a tick40
The fabric wakes its logic and leaves reset3
OrderCodeWho writes the bitstream
Kept design: the fabric holds its design without power1Nobody at boot
Fabric first: a configuration block loads the fabric while the hard half waits in reset2The configuration block, from flash
Hard half first: the loader writes the fabric3The loader
Step of the hard-first bootCode
Power good1
Boot ROM runs2
Loader checks the bitstream3
Bitstream written4
Fabric leaves reset5
Bridge opens6

Enter a code, a tick or a position.

EntryYour decision
LIVE_KEPTKept design: at what tick is the fabric live?
OPEN_KEPTKept design: at what tick does the bridge open?
LIVE_FIRSTFabric first: at what tick is the fabric live?
LOADER_FIRSTFabric first: at what tick is the loader done?
LOADER_HARDHard half first: at what tick is the loader done?
LIVE_HARDHard half first: at what tick is the fabric live?
WAIT_HARDHard half first: for how many ticks does the processor run before the fabric is live?
FIRST_PINWhich order lets the fabric drive a pin earliest? Enter the code of the order.
SAME_CHAINIn which order can the loader check the bitstream with the keys of the boot chain? Enter the code.
POS_RESETIn the hard-first boot, at what position (1 to 6) does the fabric leave reset?
OPEN_HARD_FIRSTThe 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

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

LIVE KEPT

Input
Kept design: at what tick is the fabric live?
Expected output
matches = 1

Nothing to load: only the 3 ticks to start.

Run samples executes all 3 public checks. Check all tests runs 11 checks on the server.

Icarus Verilog · server