Code Monkey home page Code Monkey logo

digital-logic-sim's People

Contributors

seblague avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

digital-logic-sim's Issues

Compilation of multiple issues.

I have encountered a few issues with the system and felt I'd compile them together, focusing on the save-file issies.

  • Files are saved as txt instead of json despite containing JSON objects.
  • Per #15, more documentation would be beneficial. Specifically where the specifically files are saved, a link to where files are saved can be found here.This could also aid in reducing confusion noted in #16.
  • Lastly, I feel it would be beneficial to the functioning of the repository to provide an issue format.

Add a setting to limit fps

Currently I see no option to limit the fps. Therefore the program will utilize almost 100% of my GPU to render 2000 frames a second, which is definitely not needed. A option in the settings would be nice. Or are the high fps necessary for the logic computation?

Change input/output count by scrolling

Feature request - Change input/output count by scrolling

I think a better way (that is also probably simple to implement) would be to change number of inputs/outputs by scrolling mouse wheel along with pressing +/- (as a backup method)

Closes immediatly after opening

The simulation just doesn't work. I have ran the Windows version before on the same computer, so the problem is probably the Linux compilation.

Somethings seems to be broken when u use clock generator

So i created a circuit that calculates first 9 numbers of Fibonacci sequence. When i manually switch on and off clock signal everything works fine, but when i use "NOT clock" to automatically switch clock signal algorithm seems to be broken.

NOT clock:
image

If you switch clock by hand algorithm goes through 1, 1, 2, 3, 5, 8, 13, 21 and then some random numbers and comes back to 1; but with NOT clock it goes through 1, 1, 2, 3, 4, 5, 6, 8, 9

video: https://youtu.be/q1MB8FMnUlU

Inconsistent deletion of I/O pins vs. chips

The "X" UI for deleting inputs/outputs is inconsistent with how chips are deleted from the workspace (click to select, then press Delete key). Both seem good (hotkeys for advanced users, UI for discoverability), so either add the other option to both (best solution IMO) or pick one and use it consistently. I know it was done this way to allow Delete/Backspace to work as normal in the textbox, but there are numerous ways to solve that (e.g. don't auto-focus the textbox).

Recommended:

  • Add red "X" near selected chips to allow deletion
  • Allow deleting I/O pins with Delete/Backspace key

To be considered:

  • Allow Delete/Backspace hotkey to work when mouse is hovering chip or I/O pin, rather than requiring it to be selected first. This would alleviate auto-focus textbox concern for I/O pin names needing Delete/Backspace keys, and make deleting faster. Would require a tentative selection highlight (presumably of a different shade or color) to be rendered on mouse hover.

macOS build unable to open

Attempting to launch the built app from itch.io in macOS Big Sur 11.0.1 results in an error "You do not have permission to open this app"

Suggestion: output options

Hi! I am a fan of your channel and I like your simulation tool, but this would be better if you would add something like 7-segment displays so you would be able to convert 4-bit binary input to usual numbers. I know that it would be difficult, but it would be cool

Mutiple outputs but not inputs?

I know this is nitpicking but it would be nice to have the ability to connect multiple inputs to a node.
Just treat it as a invisible OR, since that is basically twisting wires together anyways xD

This way it is a more consistent sandbox.
Also you can start with only a NOT gate to build the first AND gate ;-)

Very slow performance on macOS (Big Sur)

I am running macOS big sur (11.0.1) and the application runs extremely slowly, and even slows down the rest of my computer to the point where it became difficult to force quit the application.

Anyone else getting this behaviour?

Comments

Like in UE4's Blueprint Editor, let the user create a shaded area with text to describe the circuitry.

Better use of screen real-estate

First of all FANTASTIC project :-)

It would be nice if the workspace could be "zoomed" in and out.

The workspace fills up pretty quickly when you start making components especially with "high" bit counts.

Is project saved when testing scene?

Hello, I have a silly question. I'm not really experienced with unity and just opened the project to mess around after watching the video. I've created a 4-register (16 bits of storage) addressable memory module and just don't have a heart to throw it away after all that wiring... :P I don't know if the project will be available after stopping debugging? I would like to play with it in the future.

add preview chips feature

I have been making a lot of chips since yesterday and when i came back to it today, i kinda forgot what they did so, maybe add a preview when I hover over a chip from the bottom bar while holding ALT as well? kinda seems reasonable since hovering over pins while holding ALT shows their name.

I guess I shoulda extended this to #10 .

Circuit fails if compiled

The clock is a NOT gate, connected to the pause pin and self wired xor, that self wired xor is connected to an and gate, which is connected to EN and OUT
RS latch is an RS LATCH type NOR
circuit:
image

Values of inputs or outputs not showing up

when creating 4pin input or output for a 4bit adder, I am not able to see the input pin value or output pin values as I switch them on and off. How would I be able to see them. is there an option to enable it?

Add multiple types of wires

When your circuit becomes more complex you need to transfer many bits from one place to another and your board will be full of wires. So wires that can transfer 4bits, 8bits, 16bits and more at once can become very useful and make your project look much better.

0 and 1 fixed constants, and convergence fix

When creating a chip that you require, for instance, a constant 1 input, (e.g. increment by 1, for the program counter) it would be nice to have it inside the chip, and not providing it from the outside.
After all, this is a logic sim, we aren't supposed to give the "power and ground" (Metaphorical, don't kill me in comments)
Also, trying to create a chip with a not gate inside not connected to anything causes the chip to not work at all, prob. due to some convergence error.

For this last point, the program could simply deny the creation of new CIs without all wires connected, with will be possible if the constants are added.

add V-Sync option

on mac without it its becoming very laggy.
i think that this would optimise it alot.

Save not showing save name

It might just be me and a small screen on my laptop but if i want to load a file it seems like its shows a path and the actual "projectname" is cut out
Digital_Logic_Sim_e5tA7aUaV6

A timer input!

Would be awesome if an input could be set to be a timer. that could be tied to a play/stop button at the top. When "running", it would continuously toggle on and off at a constant rate. Even better if I get to pick the rate ;-)

Buffer-like Delay using isCyclic not persisting into saved component

This was a bit of a hack in order to get a Buffer-like component, but I essentially took an AND gate, wired both A and B inputs into single SIGNAL IN. I then went into the text file and enabled "isCyclic" intentionally. The end result is a Buffer where the output will power on one "tick" after the input is powered on. This works great for a clock assembly, like so:

image

However, when I use this to create a component, the logic for the delay is gone and the clock never oscillates. I can provide my save file if need be.

Error opening the project

Hello!
I am new to github so sorry in advance if im doing something wrong.
As I said I am new to github (it's my first time using it) and also to unity (already watched some tutorials but never made a complete game), but im trying to see/edit the unity project.
So i went to the project/repository (i dont know whats the correct word) and clicked the code button and then download ZIP. Then on unity hub, I added a new project, selecting the extracted folder.
When I opened the project in unity editor there was only an empty 3D scene and several error messages appeared:

image

I am using the latest unity version: 2019.4.15.f1.
Please tell me if im doing something wrong, and sorry if this is not the right place to ask for help.
Thanks in advance :)

Add .gitignore

Hey, big fan of your YouTube channel. Anyway, straight to the point.

I see a .vscode folder in there; I'd suggest to add to the existing .gitignore to ignore that as well.
Just a suggestion. :)

Linux build unable to open

When I downloaded the program and ran the executable on ubuntu the program opens for around half a second and then just closes, I don't know anything else about the problem, might update later after trying it again.

Better docs

This application is super cool! Amazing work..

Some things I discovered by watching the video and mashing the keyboard that should be in the README (the "Instructions" screen in-game probably isn't big enough to list every possible command as-is).

  • Clicking a chip multiple times will allow you to add that many at the same time.
  • Right-click to cancel chip placement.
  • Hold Alt key while hovering pins to see their names (why Alt? I feel like hovering should just always display this).

Loading/Saving Circuits (Enhancement)

Not sure if anyone has a fork with this yet but it would be great if you could load circuits from a json file and also save the circuits from a json file

Compilation?

hey, could you add a section in the readme on how to compile this project? neither the readme, nor the itchio (including the comments ive seen) mention anything, so I must be missing something obvious - there does not seem to be a compile script, makefile, C# solution, or anything of that nature though

Projects management and chips management and save states

I know that #10 is already exists, but I think I will also improve that issue with my explanation.

I suggest add project management menu (for example a button/buttons or separated menu for deleting or editing projects names).
Also I think chips preview, replacement (if with the same name already exists - open dialog), editing (layout, name, color) and deletion will be useful too.

And... if that will be possible, please add in settings a field where you can change location of saves. Or... just add in the workspace button/buttons/menu to save or export project to something like, idk, archive.

License?

Please add a LICENSE file. Thanks!

Labels on I/O

Hey, how can we have label on I/O like this pic?
image

and how can we convert binary to decimal like this?
image

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.