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
| Signal | Width | Role |
|---|---|---|
question | 8 | input 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.
| Entry | Your decision |
|---|---|
| MODE_1 | 8 Mpixel/s × 4 bits/pixel at 100% useful time |
| MODE_2 | 16 Mpixel/s × 4 bits/pixel at 100% useful time |
| MODE_3 | 24 Mpixel/s × 5 bits/pixel at 100% useful time |
| MODE_4 | 25 Mpixel/s × 5 bits/pixel at 100% useful time |
| MODE_5 | 26 Mpixel/s × 5 bits/pixel at 100% useful time |
| MODE_6 | 50 Mpixel/s × 5 bits/pixel at 80% useful time |
| MODE_7 | 51 Mpixel/s × 5 bits/pixel at 80% useful time |
| MODE_8 | 32 Mpixel/s × 6 bits/pixel at 75% useful time |
| MODE_9 | 63 Mpixel/s × 8 bits/pixel at 100% useful time |
| NEW_MODE | At 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