Fix net name in gain circuit.
Add stimulus code for chain test.