3
\$\begingroup\$

I'm currently making a computer in an application called Smart Logic Simulator. It does not have any tri-state buffers and therefore I cannot make a bus (based off the DM74LS245 chip.) Is there a way to make a tri-state buffer?

EDIT: 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

\$\endgroup\$
3
  • 2
    \$\begingroup\$ what are the elemental building blocks of Smart Logic Simulator? \$\endgroup\$
    – vicatcu
    Commented Jul 11, 2019 at 2:38
  • \$\begingroup\$ i just added some images with all the components (mind the ad) \$\endgroup\$ Commented Jul 11, 2019 at 12:34
  • \$\begingroup\$ I had built the SN74LS245 in a program called Digital Works and was able to get the desired behavior, but when I tried it in Logism it failed to connect or disconnect and to change direction. You can refer to my question on this subject here: electronics.stackexchange.com/q/450917/215954 \$\endgroup\$ Commented Jul 31, 2019 at 11:03

4 Answers 4

2
\$\begingroup\$

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.

\$\endgroup\$
7
  • \$\begingroup\$ i dont think making stuff with cmos, pmos, nmos, etc. is possible with the somewhat limited elements i have. im not even sure if what i asked for is what i need \$\endgroup\$ Commented Jul 11, 2019 at 14:09
  • 2
    \$\begingroup\$ you might be better served asking the developers of the Smart Logic Simulator app directly, e.g. on their Facebook page facebook.com/SmartLogicSimulator \$\endgroup\$
    – vicatcu
    Commented Jul 11, 2019 at 14:36
  • \$\begingroup\$ @vicatcu or indeed by using a better-suited tool for the task at hand \$\endgroup\$ Commented Jul 11, 2019 at 15:08
  • \$\begingroup\$ @Richard the Spacecat what software would you recommend? \$\endgroup\$ Commented Jul 11, 2019 at 15:33
  • \$\begingroup\$ Logisim perhaps? It was made for this kind of thing. It's however PC only afaik, not sure if there's anything decent enough available for mobile. :| \$\endgroup\$ Commented Jul 11, 2019 at 17:26
1
\$\begingroup\$

I decided to just use Logism. It's much more advanced than what I was using before, and itll make things better such as not having to compensate 2 2-input and gates to make a 4-input and gate. Props to Richard the Spacecat!

\$\endgroup\$
0
\$\begingroup\$

Ben Eater's 8-Bit Computer in an online simulator with a TriState Buffer https://electra.academy/simulator/?shared=7736858c77175aa639676e7b4669f0655f0bc727

Simulating this without a special element just by using simple gates is not possible - I think.

\$\endgroup\$
0
\$\begingroup\$

In order to implement a high impedance node on a bus, you need a logic-controlled switch that can fully disconnect your peripheral from the network.

Unfortunately, you don't seem to have that here. Every symbol on the page drives the bus either to your high logic voltage level, or to low.

In a real circuit, you can implement this kind of switch with a pair of MOSFETs and another inverter like this example of a tri-state inverting buffer:

schematic

simulate this circuit – Schematic created using CircuitLab

The input signal, \$A\$, controls the two outermost MOSFETs. When \$A\$ is high, its connected nMOS conducts; when low, the pMOS conducts. The \$EN\$ signal turns on its connected nMOS when high, and is inverted to turn on its connected pMOS when low. I've drawn the inverter as an inverter here for clarity, but it's really just two more complementary MOSFETs, to make a total of six.

Often, this is simplified as a logic symbol which has a buffer with a third input coming out of the bottom, like so:

Tri-state buffer logic symbol.

Since a symbol like this doesn't appear in your list, you can't really implement tri-state logic.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.