V8.5.2 Tie-Offs, Parameters and Straps

MediumImplement22 minIcarus Verilog · serverReview the topic

Choose how to check each pin nobody drives on ap_soc. Then count the chip's constants and work out memory sizes from its parameters.

Hardware context: The BOOT strap, the tie-offs of connect.csv and the instance parameters of ap_soc v1.5. Choosing how to check straps, tie-offs and parameters.

connect.csv of ap_soc v1.5 has 357 rows; 10 of them have a constant driver (clock column const). The site's parameters part proves 7 instance values, among them ROM WORDS = 1024 and SRAM WORDS = 16384. The guard block's own default is N = 5, and every instance sets N = 1. The BOOT strap is sampled once, after the PLL locks, and read back in STRAPS bit 0. Enter a code for each check, and whole numbers for the rest.

This worksheet uses named constants. The first three entries show how to record your decisions.

Replace each unresolved value of 1048575 with your result.

Signals in the Timeline

SignalWidthRole
question8input of each check
Full specification
CodeThe check to choose first
1A connectivity proof row with a constant driver
2A test that runs with the board strap at each value
3A parameter check at the instance (proof or elaboration)
4A test through a register the strap or tie-off feeds
EntryYour decision
HART_IDThe core's hart ID input is tied to 0.
BOOT_BOTHThe chip boots from SRAM with BOOT high and from ROM with BOOT low.
GUARD_NEach clock guard is built for one block, not the default five.
DEV_MODEThe watchdog's development mode is tied off, so it counts through a debug halt.
STRAPS_READFirmware can read where the chip started.
CONSTSRows of connect.csv with a constant driver.
ROM_BYTESBytes of the boot ROM, from its instance parameter.
SRAM_BYTESBytes of SRAM, from its instance parameter.
SRAM_TOPThe address of the last word of SRAM, which starts at 0x8000_0000, as a decimal offset from the base.
BYTES_ATBytes of a memory instance whose WORDS parameter is WORDS, at 4 bytes a word.

Examples

Example 1

HART ID
Input
The core's hart ID input is tied to 0.
Output
matches = 1

A constant at an instance input: one row, proved with no stimulus.

Example 2

BOOT BOTH
Input
The chip boots from SRAM with BOOT high and from ROM with BOOT low.
Output
matches = 1

A strap has two legal values; each needs its own run.

Example 3

GUARD N
Input
Each clock guard is built for one block, not the default five.
Output
matches = 1

A parameter mismatch between a block's default and its instance.

Constraints and Contract

  • Keep the parameter and named constants. Use the numeric codes and units on this page.
  • For BYTES_AT, enter a constant expression using WORDS. Only this entry changes with the parameter. The supported integer range is 1024 through 65536, inclusive.

Hints

Hint 1

One row with the constant as its driver; the proof needs no stimulus.

Hint 2

Two runs, one per board value; read STRAPS in each.

Hint 3

Prove or print the instance value; never trust the block's default.

What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.

14 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

HART ID

Input
The core's hart ID input is tied to 0.
Expected output
matches = 1

A constant at an instance input: one row, proved with no stimulus.

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

Icarus Verilog · server