Giter VIP home page Giter VIP logo

Comments (4)

davidhutchens avatar davidhutchens commented on June 2, 2024 2

Each of the output values in your picture matches the intended output for that situation.

The Switch connects the output to the input when it is on (i.e. 1) and disconnects it when it is off (i.e. 0). A disconnected output is not driven to any state and is thus floating (U), indicated by the blue color. All the switches in your picture are off (0).

If you provide inputs that have no known 0 or 1 value to a logic gate you will get an unknown result. It is not floating but an unknown logic value. That is designated in the simulator by an error (E) value displayed as red. It is a mistake to design hardware that uses such a value for further computations.

Likewise, using a U (blue) control value for a controlled buffer or inverter leaves the simulator with no way to display a meaningful output since it doesn't even know if it should drive the output or not. Thus that output is displayed as red (E) and should not be used.

So you should make sure your logic gates have well defined 0 or 1 inputs.

Read the Help for those components for more information.

from logisim-evolution.

maehne avatar maehne commented on June 2, 2024 1

To add to @davidhutchens very good answer: If you want to continue using the Switch for controlling your inputs, you need to add Pull Resistors with Pull Direction set to Zero to ensure that the inputs of the gates have a well-defined value if the Switch disconnects the input from the Power.

from logisim-evolution.

amunrarara avatar amunrarara commented on June 2, 2024

Wow, this simulator is more advanced and much better than I thought.

I didn't specify very clearly the issue, unfortunately, looking back on my first message.

Screen Shot 2024-02-29 at 8 51 03 AM

The issue is that my output is a 0 even when power is on the line.

I believe that @maehne's answer will do the trick, I will verify.

Excellent explanation folks, thank you.

from logisim-evolution.

amunrarara avatar amunrarara commented on June 2, 2024

Yep, that fixed everything. Thanks team!

Screen Shot 2024-02-29 at 9 09 47 AM

from logisim-evolution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.