Bringup
Open the editor
Verilog (digital engine)74HC157v_hc157

74HC157 (4× 2:1 multiplexer)

74HC157 (4× 2:1 multiplexer): functional Verilog gate model, numbered SOIC pins as in the datasheet.

SA[0]B[0]Y[0]A[1]B[1]Y[1]GNDY[2]B[2]A[2]Y[3]B[3]A[3]nEVCC74HC157
Schematic symbol

Key data

Category
Logic (Verilog)
Simulation model
Verilog (digital engine)
Manufacturer part number
74HC157
Reference prefix
U
Pins
16
Land pattern
SOIC-16_3.9x9.9mm_P1.27mm

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
16 / 8
Top module
v_hc157
Output driver resistance
50 Ω
Verilog source

module v_hc157(input S,nE,input [3:0] A,B,output [3:0] Y);
assign Y=nE?4'b0:(S?B:A);
endmodule

Pins 16

PinNameUse
1SInput pinLogic input: never leave open (tie unused inputs to VCC or GND)
2A[0]Input pinLogic input: never leave open (tie unused inputs to VCC or GND)
3B[0]Input pinLogic input: never leave open (tie unused inputs to VCC or GND)
4Y[0]Output pinLogic output: drives the next input; do not tie outputs together
5A[1]Input pinLogic input: never leave open (tie unused inputs to VCC or GND)
6B[1]Input pinLogic input: never leave open (tie unused inputs to VCC or GND)
7Y[1]Output pinLogic output: drives the next input; do not tie outputs together
8GNDGround pinGround
9Y[2]Output pinLogic output: drives the next input; do not tie outputs together
10B[2]Input pinLogic input: never leave open (tie unused inputs to VCC or GND)
11A[2]Input pinLogic input: never leave open (tie unused inputs to VCC or GND)
12Y[3]Output pinLogic output: drives the next input; do not tie outputs together
13B[3]Input pinLogic input: never leave open (tie unused inputs to VCC or GND)
14A[3]Input pinLogic input: never leave open (tie unused inputs to VCC or GND)
15nEInput pinActive-low control input: low = active; tie high when unused
16VCCSupply pinSupply input: decouple with 100 nF close to the pin

Parameters 1

Gate delaytpd
Default10n

PCB

Verified land patternSOIC-16_3.9x9.9mm_P1.27mm