G9.14.1 Can This Output Drive That Input?

EasyImplementIcarus · browser samples / server checksReview the topic

Use data sheet levels and currents to decide whether one logic family can drive another, and how many inputs it can drive.

Hardware context: A board that mixes LS TTL, HC, HCT and 3.3 V LVC logic parts. Decide whether an output of one logic family can drive an input of another.

A board mixes LS TTL, HC, HCT and 3.3 V LVC parts. Before the layout is frozen, every connection between two families must be checked on paper.

This is an Implement problem. Use the data sheet table to work out two fan-outs and three yes-or-no answers. An output can drive an input only when both noise margins are positive and its currents cover the load.

Write each result in its assign line of the module answer. The check reads each output and reports the first one that is wrong.

Signals in the Timeline

SignalWidthRole
item8input of each check
Full specification
FamilyV_OH minV_OL maxV_IH minV_IL maxI_OH maxI_OL maxI_IH maxI_IL max
74LS (TTL)2500 mV500 mV2000 mV800 mV400 µA8 mA20 µA400 µA
74HC (CMOS)3840 mV330 mV3150 mV1350 mV4 mA4 mA1 µA1 µA
74HCT (CMOS, TTL inputs)3840 mV330 mV2000 mV800 mV4 mA4 mA1 µA1 µA
74LVC (3.3 V CMOS)2400 mV400 mV2000 mV800 mV12 mA12 mA5 µA5 µA
10EP (LVPECL)2230 mV1680 mV2155 mV1755 mV50 Ω load50 Ω load——
OutputMeaning
hc_ls_fanouthow many LS inputs one HC output can drive
hc_drives_20_ls1 if one HC output can drive 20 LS inputs
ls_hc_works1 if an LS output can drive an HC input
lvc_hct_works1 if an LVC output can drive an HCT input
lvc_ls_fanouthow many LS inputs one LVC output can drive
pecl_lvc_works1 if an LVPECL output can drive an LVC input directly
Worked example: LS driving LSValue
high margin, 2500 − 2000500 mV (example_nmh)
low margin, 800 − 500300 mV (example_nml)
fan-out, smaller of 400 / 20 and 8000 / 40020 (example_fanout)

Values from the TI data sheets of lesson G9.14, worst case over temperature. The output currents are the ones at which V_OH and V_OL are guaranteed.

Examples

Example 1

Worked Example: The High Margin
Input
LS output, LS input
Output
example_nmh = 500

An LS output is high at 2500 mV or more; an LS input needs 2000 mV. The margin is 500 mV.

Example 2

Worked Example: The Low Margin
Input
LS output, LS input
Output
example_nml = 300

An LS output is low at 500 mV or less; an LS input reads 0 up to 800 mV. The margin is 300 mV.

Example 3

Worked Example: The Fan-Out
Input
LS output, LS inputs
Output
example_fanout = 20

High: 400 µA / 20 µA = 20. Low: 8 mA / 400 µA = 20. Both give 20.

Constraints and Contract

  • Keep the module name answer and the names of its outputs.
  • Fan-outs are whole numbers, rounded down. Answers to questions are 1 or 0.

Hints

Hint 1

A fan-out has two limits: the high state, I_OH / I_IH, and the low state, I_OL / I_IL. The smaller one counts.

Hint 2

For "works", check both margins first. A large current does not help a level that is out of range.

Hint 3

An LS input sends 400 µA out of its pin when low. That is the expensive state for any driver.

What the grader checks: The check reads nine outputs and compares each with the value computed in JavaScript from the data sheet table. Three are the worked example. Capacitive (AC) fan-out and temperature effects beyond the worst-case columns are outside this problem.

9 checks on Icarus · browser samples / server checks. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain public samples only. A passing result establishes the tested cases, not a proof for all possible inputs.

See all 1 steps and the final capstone

Report a problem with this page

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

Worked Example: The High Margin

Input
LS output, LS input
Expected output
example_nmh = 500

An LS output is high at 2500 mV or more; an LS input needs 2000 mV. The margin is 500 mV.

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

Icarus · browser samples / server checks