Verilog (digital engine)SN74LVC245APWRv_74lvc245
74LVC245A (octal bus transceiver, 3.3 V, 5 V tolerant)
Eight bidirectional buffers for 1.65–3.6 V whose inputs accept up to 5.5 V: the input stage of a logic analyzer, or a 5 V bus read by a 3.3 V microcontroller. OE̅ low and DIR high drive B from A, DIR low drives A from B, OE̅ high isolates both sides. Propagation delay 3.8 ns typ. at 3.3 V.
Key data
- Category
- Logic (Verilog)
- Simulation model
- Verilog (digital engine)
- Manufacturer part number
- SN74LVC245APWR
- Reference prefix
- U
- Pins
- 20
- Land pattern
- TSSOP-20_4.4x6.5mm_P0.65mm
Simulation model
The Verilog source is synthesized to gates with Yosys (WebAssembly) and simulated event by event. Outputs drive the analog circuit like CMOS pins through a driver resistance to the supply; inputs switch at 30 % and 70 % of the supply.
- Supply pins
- 20 / 10
- Top module
- v_74lvc245
Verilog source
module v_74lvc245(input DIR, nOE, inout A1, A2, A3, A4, A5, A6, A7, A8, inout B1, B2, B3, B4, B5, B6, B7, B8);
assign B1 = (!nOE && DIR) ? A1 : 1'bz;
assign A1 = (!nOE && !DIR) ? B1 : 1'bz;
assign B2 = (!nOE && DIR) ? A2 : 1'bz;
assign A2 = (!nOE && !DIR) ? B2 : 1'bz;
assign B3 = (!nOE && DIR) ? A3 : 1'bz;
assign A3 = (!nOE && !DIR) ? B3 : 1'bz;
assign B4 = (!nOE && DIR) ? A4 : 1'bz;
assign A4 = (!nOE && !DIR) ? B4 : 1'bz;
assign B5 = (!nOE && DIR) ? A5 : 1'bz;
assign A5 = (!nOE && !DIR) ? B5 : 1'bz;
assign B6 = (!nOE && DIR) ? A6 : 1'bz;
assign A6 = (!nOE && !DIR) ? B6 : 1'bz;
assign B7 = (!nOE && DIR) ? A7 : 1'bz;
assign A7 = (!nOE && !DIR) ? B7 : 1'bz;
assign B8 = (!nOE && DIR) ? A8 : 1'bz;
assign A8 = (!nOE && !DIR) ? B8 : 1'bz;
endmodulePins 20
| Pin | Name | Use |
|---|---|---|
| 1 | DIRInput pin | Logic input: never leave open (tie unused inputs to VCC or GND) |
| 2 | A1I/O pin | Bidirectional data line (tri-state bus) |
| 3 | A2I/O pin | Bidirectional data line (tri-state bus) |
| 4 | A3I/O pin | Bidirectional data line (tri-state bus) |
| 5 | A4I/O pin | Bidirectional data line (tri-state bus) |
| 6 | A5I/O pin | Bidirectional data line (tri-state bus) |
| 7 | A6I/O pin | Bidirectional data line (tri-state bus) |
| 8 | A7I/O pin | Bidirectional data line (tri-state bus) |
| 9 | A8I/O pin | Bidirectional data line (tri-state bus) |
| 10 | GNDGround pin | Ground |
| 11 | B8I/O pin | Bidirectional data line (tri-state bus) |
| 12 | B7I/O pin | Bidirectional data line (tri-state bus) |
| 13 | B6I/O pin | Bidirectional data line (tri-state bus) |
| 14 | B5I/O pin | Bidirectional data line (tri-state bus) |
| 15 | B4I/O pin | Bidirectional data line (tri-state bus) |
| 16 | B3I/O pin | Bidirectional data line (tri-state bus) |
| 17 | B2I/O pin | Bidirectional data line (tri-state bus) |
| 18 | B1I/O pin | Bidirectional data line (tri-state bus) |
| 19 | nOEInput pin | Active-low control input: low = active; tie high when unused |
| 20 | VCCSupply pin | Supply input: decouple with 100 nF close to the pin |
Parameters 1
Propagation delay
tpdDefault3.8n s
PCB
Verified land pattern
TSSOP-20_4.4x6.5mm_P0.65mm