Bringup
Open the editor
Verilog (digital engine)74HC139v_hc139

74HC139 (2× 2:4 decoder)

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

nE1A[0]A[1]nY[0]nY[1]nY[2]nY[3]GNDnZ[3]nZ[2]nZ[1]nZ[0]B[1]B[0]nE2VCC74HC139
Schematic symbol

Key data

Category
Logic (Verilog)
Simulation model
Verilog (digital engine)
Manufacturer part number
74HC139
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_hc139
Output driver resistance
50 Ω
Verilog source

module v_hc139(input nE1,nE2,input [1:0] A,B,output [3:0] nY,nZ);
assign nY=nE1?4'b1111:~(4'b0001<<A);
assign nZ=nE2?4'b1111:~(4'b0001<<B);
endmodule

Pins 16

PinNameUse
1nE1Input pinActive-low control input: low = active; tie high when unused
2A[0]Input pinLogic input: never leave open (tie unused inputs to VCC or GND)
3A[1]Input pinLogic input: never leave open (tie unused inputs to VCC or GND)
4nY[0]Output pinLogic output: drives the next input; do not tie outputs together
5nY[1]Output pinLogic output: drives the next input; do not tie outputs together
6nY[2]Output pinLogic output: drives the next input; do not tie outputs together
7nY[3]Output pinLogic output: drives the next input; do not tie outputs together
8GNDGround pinGround
9nZ[3]Output pinLogic output: drives the next input; do not tie outputs together
10nZ[2]Output pinLogic output: drives the next input; do not tie outputs together
11nZ[1]Output pinLogic output: drives the next input; do not tie outputs together
12nZ[0]Output pinLogic output: drives the next input; do not tie outputs together
13B[1]Input pinLogic input: never leave open (tie unused inputs to VCC or GND)
14B[0]Input pinLogic input: never leave open (tie unused inputs to VCC or GND)
15nE2Input 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