S11.12.1 Size the Network Node

MediumImplement22 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
InputValue
Line100 Mb/s; each frame has 8 bytes of preamble and SFD before it and a gap of 12 bytes after it
Framessmallest 64 bytes, largest 1518 bytes
Blackout of the core1500 µs
Buffersone 1536-byte buffer per frame, or chained buffers of 256 bytes
Coalescingone request for 8 frames, or 200 µs after the first waiting frame, whichever is first
SRAMthe 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.

EntryYour decision
MIN_FRAME_NSWire time of the smallest frame, in ns.
WIRE_BYTES_MINBytes of wire time for the smallest frame.
WIRE_BYTES_MAXBytes of wire time for the largest frame.
MIN_FRAMESSmallest frames that start in the blackout.
MAX_FRAMESLargest frames that start in the blackout.
BUFS_PER_MAXChained buffers for one largest frame.
CHAIN_MAXChained buffers for the flood of largest frames.
CHAIN_BUFFERSChained buffers the pool needs.
POOL_BYTESBytes of the chained pool.
ONE_SIZE_KIBKiB with one 1536-byte buffer per frame.
DESC_BYTESBytes of descriptors.
SRAM_KIBKiB of SRAM.
FRAMES_PER_REQ_MINIn a flood of smallest frames, frames for each request.
FRAMES_PER_REQ_MAXIn a flood of largest frames, frames for each request.
MIN_FRAMES_AT_BThe 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

Report a problem with this page

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

MIN FRAME NS

Input
Wire time of the smallest frame, in ns.
Expected output
matches = 1

(8 + 64 + 12) bytes × 80 ns.

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

Icarus Verilog · server