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
| Signal | Width | Role |
|---|---|---|
item | 8 | input of each check |
Full specification
| Family | V_OH min | V_OL max | V_IH min | V_IL max | I_OH max | I_OL max | I_IH max | I_IL max |
|---|---|---|---|---|---|---|---|---|
| 74LS (TTL) | 2500 mV | 500 mV | 2000 mV | 800 mV | 400 µA | 8 mA | 20 µA | 400 µA |
| 74HC (CMOS) | 3840 mV | 330 mV | 3150 mV | 1350 mV | 4 mA | 4 mA | 1 µA | 1 µA |
| 74HCT (CMOS, TTL inputs) | 3840 mV | 330 mV | 2000 mV | 800 mV | 4 mA | 4 mA | 1 µA | 1 µA |
| 74LVC (3.3 V CMOS) | 2400 mV | 400 mV | 2000 mV | 800 mV | 12 mA | 12 mA | 5 µA | 5 µA |
| 10EP (LVPECL) | 2230 mV | 1680 mV | 2155 mV | 1755 mV | 50 Ω load | 50 Ω load | — | — |
| Output | Meaning |
|---|---|
| hc_ls_fanout | how many LS inputs one HC output can drive |
| hc_drives_20_ls | 1 if one HC output can drive 20 LS inputs |
| ls_hc_works | 1 if an LS output can drive an HC input |
| lvc_hct_works | 1 if an LVC output can drive an HCT input |
| lvc_ls_fanout | how many LS inputs one LVC output can drive |
| pecl_lvc_works | 1 if an LVPECL output can drive an LVC input directly |
| Worked example: LS driving LS | Value |
|---|---|
| high margin, 2500 − 2000 | 500 mV (example_nmh) |
| low margin, 800 − 500 | 300 mV (example_nml) |
| fan-out, smaller of 400 / 20 and 8000 / 400 | 20 (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