Electronic – Is it possible to make a Tri-State Bidirectional buffer without any tri-state buffers

digital-logiclogic-gatestri-state

I'm currently making a computer on an application called Smart Logic Simulator. However, it doesn't have any tri-state buffers and therefor I cannot make a bus (based off the DM74LS245 chip). Is there a way to make a tri-state buffer?

EDIT:
Note – I don't know much about logic, and it's possible that the thing I want to make isn't a tri-state buffer, but that's what I think it is.

Here are the elements in the app I'm using:

Stuff in the App 1
Stuff in the App 2

Last Thing in the App

Best Answer

A tristate inverter has truth table:

enable, in, out
0, 0, z
0, 1, z
1, 0, 1
1, 1, 0

You can build such a thing with CMOS transistors. The pull up network has two PMOS in series, and ther pull down network has two NMOS in series. In connects to the lower NMOS and the higher PMOS, and the complement of enable goes to the other two transistors. That looks like this:

schematic

simulate this circuit – Schematic created using CircuitLab

You can build other variations on this by introducing inverters in various ways.