Fill in the sizing sheet of a network node with a shorter blackout and larger chained buffers, the way lesson S11.12 does.
Hardware context: A small Ethernet node: MAC with DMA and a receive ring, a PHY on the board through MII. Size the receive pool, descriptors and SRAM of a network node, and predict how coalescing behaves.
This is the node of lesson S11.12 with other numbers. Size the receive pool for both floods, and see how coalescing behaves.
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
| Input | Value |
|---|---|
| Line | 100 Mb/s; each frame has 8 bytes of preamble and SFD before it and a gap of 12 bytes after it |
| Frames | smallest 64 bytes, largest 1518 bytes |
| Blackout of the core | 1500 µs |
| Buffers | one 1536-byte buffer per frame, or chained buffers of 256 bytes |
| Coalescing | one request for 8 frames, or 200 µs after the first waiting frame, whichever is first |
| SRAM | the chained pool, 4 transmit buffers of 1536 bytes, 8 bytes for each descriptor (pool plus 4), and 4096 bytes of stack; a power of two |
A frame needs a buffer from the moment it starts. Round counts up. Enter KiB as a number.
| Entry | Your decision |
|---|---|
| MIN_FRAME_NS | Wire time of the smallest frame, in ns. |
| WIRE_BYTES_MIN | Bytes of wire time for the smallest frame. |
| WIRE_BYTES_MAX | Bytes of wire time for the largest frame. |
| MIN_FRAMES | Smallest frames that start in the blackout. |
| MAX_FRAMES | Largest frames that start in the blackout. |
| BUFS_PER_MAX | Chained buffers for one largest frame. |
| CHAIN_MAX | Chained buffers for the flood of largest frames. |
| CHAIN_BUFFERS | Chained buffers the pool needs. |
| POOL_BYTES | Bytes of the chained pool. |
| ONE_SIZE_KIB | KiB with one 1536-byte buffer per frame. |
| DESC_BYTES | Bytes of descriptors. |
| SRAM_KIB | KiB of SRAM. |
| FRAMES_PER_REQ_MIN | In a flood of smallest frames, frames for each request. |
| FRAMES_PER_REQ_MAX | In a flood of largest frames, frames for each request. |
| MIN_FRAMES_AT_B | The blackout is B microseconds. How many of the smallest frames start inside it? |
Examples
Example 1
MIN FRAME NS- Input
Wire time of the smallest frame, in ns.
- Output
matches = 1
(8 + 64 + 12) bytes × 80 ns.
Example 2
WIRE BYTES MIN- Input
Bytes of wire time for the smallest frame.
- Output
matches = 1
8 + 64 + 12.
Example 3
WIRE BYTES MAX- Input
Bytes of wire time for the largest frame.
- Output
matches = 1
8 + 1518 + 12.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For MIN_FRAMES_AT_B, enter a constant expression using B. Only this entry changes with the parameter. The supported integer range is 500 through 3000, inclusive.
- Replace each unfinished 65535 with your number.
Hints
Hint 1
Add the preamble and the gap to every frame.
Hint 2
Small frames set the number of buffers; large frames set how many each one takes.
Hint 3
Ask which comes first in each flood: the count or the timeout.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
15 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 1 problem on this path