Bringup
Open the editor
Verilog (digital engine)74HC670v_hc670

74HC670 (4×4-bit register file)

74HC670 (4×4-bit register file): functional Verilog gate model, numbered SOIC pins as in the datasheet.

D[1]D[2]D[3]RA[1]RA[0]Q[3]Q[2]GNDQ[1]Q[0]nREnWEWA[1]WA[0]D[0]VCC74HC670
Schematic symbol

Key data

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

module v_hc670(input [1:0] RA,WA,input nWE,nRE,input [3:0] D,output [3:0] Q);
reg [3:0] words[0:3];
genvar i;generate for(i=0;i<4;i=i+1)begin:store
 always @* if(!nWE && WA==i)words[i]=D;
end endgenerate
assign Q=nRE?4'bzzzz:words[RA];
endmodule

Pins 16

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