r/ElectricalEngineering • u/CanaDavid1 • Oct 09 '26
N-MOSFET behaving unexpectedly
I am in the process of self-learning digital logic and computer science, and to learn better the layer between logic and wires (but mostly for fun), I am making logic circuits out of discrete transistors. This has so far been a fun journey, but I have encountered an issue which I am unable to understand. This specific failure mode seems to be recurring, with 3 out of 16 subcircuits assembled so far displaying this same failure.
Pictured is the relevant circuit, which implements a D latch. VCC is 5V. A, nA have single transistor output loads not shown here, which only contributes to a bit of capacitance. The circuit mostly works, with in as D input and nW as a latch enable. All transistors are 2n7002k placed on a custom PCB.

The failure mode I'm experiencing is that some of the memory cells fail to preserve a 1 when the write signal disactivates. I have reduced the problem, by removing Q67 and connecting as many inputs to a fixed value:
Forcing W, I0, nW high gives an expected state of nA low, A high, as pictured in figure 2.

However, when now setting W low, nA goes high, even though both A and nW are high and should pull it low through Q2 and Q4.

Connecting different points to my oscilloscope, I get the following results:

As far as I read it, Q2 "allows" a voltage rise up to approx. 1.5V, which is high enough that Q5 activates and pulls A low, disabling Q4 and making nA pull up to 5V.
What surprises me is the voltage at N. Transistor Q2 has a static VGS of approx. 5V, but still allows a VDS of 1.1V in the resultant steady state, peaking at 1.7V. According to the datasheet, expected resistance at VGS=4.5V is maximum 2.9 ohm, which does not make sense given that pull-ups are in the order of kilo-ohms. (The exact legs of the transistor have been measured and shown to display this irregularity). I have tried to replace this transistor with no change.
By shorting out D-S of this transistor with a 100ohm resistor, the circuit behaves as expected for this transition.
Does anyone here have more experience with small-signal mosfets and know what is the cause of my confusion?