A UART transmitter sends a byte one bit at a time on one wire. Read a seven-sentence specification of a small one. Sort each statement or question into feature, interface, a case the text answers, or a question it leaves open.
Hardware context: A decade counter and a small UART transmitter, each with a short written specification. Reviewing a block specification before design starts.
This is the whole specification. A question the text leaves open, by ambiguity or by silence, is code 4. It must go to the owner of the specification.
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
| Sentence | Specification of uart_tx |
|---|---|
| 1 | Pins: clk; rst (synchronous, active high); start; data[7:0] as inputs. tx and busy as outputs. |
| 2 | When start is high and the transmitter is idle, it takes data and sends one frame. |
| 3 | A frame is a start bit (0), eight data bits low bit first, and a stop bit (1). |
| 4 | Each bit lasts 4 clocks. |
| 5 | busy is high while sending. |
| 6 | start is ignored while busy. |
| 7 | tx is 1 when idle. |
| Code | Kind |
|---|---|
| 1 | Feature: something the design must do |
| 2 | Interface: a pin or a rule for using one |
| 3 | An unusual case the text does answer |
| 4 | A question the text leaves open |
| Entry | Your decision |
|---|---|
| PINS | The names and directions of clk, rst, start, data, tx and busy. |
| FRAME | A frame is a start bit, eight data bits low bit first, and a stop bit. |
| BUSY_STOP | Is busy high during the stop bit? |
| START_MID | start goes high in the middle of a frame. |
| RESET_MID | rst goes high in the middle of a frame. What is tx on the next clock? |
| BIT_TIME | Each bit lasts 4 clocks. |
| RST_KIND | rst is synchronous and active high. |
| DATA_MID | data changes in the middle of a frame. |
| FIRST_BIT | Which data bit is sent first? |
| GAP | Must tx stay 1 for at least one clock between two frames? |
| BUSY_QUESTION | Sentence 5 may be revised. REVISED = 0: it stays "busy is high while sending". REVISED = 1: it becomes "busy is high from the start bit through the last clock of the stop bit". Classify the question "Is busy high during the stop bit?" |
Examples
Example 1
PINS- Input
The names and directions of clk, rst, start, data, tx and busy.
- Output
matches = 1
Pins and their directions are the interface.
Example 2
FRAME- Input
A frame is a start bit, eight data bits low bit first, and a stop bit.
- Output
matches = 1
Something the design must do.
Example 3
BUSY STOP- Input
Is busy high during the stop bit?
- Output
matches = 1
"While sending" does not say whether the stop bit counts as sending.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For BUSY_QUESTION, enter a constant expression using REVISED. Only this entry changes with the parameter. The supported integer range is 0 through 1, inclusive.
Hints
Hint 1
Does any of the seven sentences answer it? Quote it to yourself.
Hint 2
Names, directions and rules of use are interface; what the design does is a feature.
Hint 3
If no sentence answers it, it is code 4, however obvious the answer seems.
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 2 problems on this path