Semiconductor Device With 2 Terminals