S10.5.1 Lanes for the Camera

MediumImplement22 minIcarus Verilog · serverReview the topic

Decide which camera modes fit the connector after accounting for framing time.

Hardware context: Camera and storage controller attachment. Camera and storage bring-up

You have four data lanes. Any whole width from one through four is wired. Report the smallest width that can carry the stream, or zero if none fits.

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

Replace each unresolved value of 255 with your result.

Signals in the Timeline

SignalWidthRole
question8input of each check
Full specification

Exercise values only. Each row gives active megapixels per second, packed bits per pixel and the useful percentage. Each lane runs at 64 Mbit/s before overhead. Use decimal units. Exact fits are legal.

EntryYour decision
MODE_18 Mpixel/s × 4 bits/pixel at 100% useful time
MODE_216 Mpixel/s × 4 bits/pixel at 100% useful time
MODE_324 Mpixel/s × 5 bits/pixel at 100% useful time
MODE_425 Mpixel/s × 5 bits/pixel at 100% useful time
MODE_526 Mpixel/s × 5 bits/pixel at 100% useful time
MODE_650 Mpixel/s × 5 bits/pixel at 80% useful time
MODE_751 Mpixel/s × 5 bits/pixel at 80% useful time
MODE_832 Mpixel/s × 6 bits/pixel at 75% useful time
MODE_963 Mpixel/s × 8 bits/pixel at 100% useful time
NEW_MODEAt RATE Mpixel/s, use 8 bits/pixel and 75% useful time.

Examples

Example 1

MODE 1
Input
8 Mpixel/s × 4 bits/pixel at 100% useful time
Output
matches = 1

Compare 32 Mbit/s with multiples of 64 Mbit/s per lane. It fits on 1 lane(s). (lanes = 1)

Example 2

MODE 2
Input
16 Mpixel/s × 4 bits/pixel at 100% useful time
Output
matches = 1

Compare 64 Mbit/s with multiples of 64 Mbit/s per lane. It fits on 1 lane(s). (lanes = 1)

Example 3

MODE 3
Input
24 Mpixel/s × 5 bits/pixel at 100% useful time
Output
matches = 1

Compare 120 Mbit/s with multiples of 64 Mbit/s per lane. It fits on 2 lane(s). (lanes = 2)

Constraints and Contract

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

Hints

Hint 1

Multiply packed bits per pixel by the pixel rate.

Hint 2

Apply efficiency to each lane. Keep the fraction until you choose a whole width.

Hint 3

Compare the required width with the four routed lanes.

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

MODE 1

Input
8 Mpixel/s × 4 bits/pixel at 100% useful time
Expected output
matches = 1

Compare 32 Mbit/s with multiples of 64 Mbit/s per lane. It fits on 1 lane(s). (lanes = 1)

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

Icarus Verilog · server