Closed Thread
Page 1 of 11 123 ... LastLast
Results 1 to 10 of 101
Like Tree7Likes

Thread: Wire FPGA - Field-programmable Gate Array

  1. #1
    Developer Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    3,109

    Default Wire FPGA - Field-programmable Gate Array

    This is the development thread for my upcoming chip, the Wire FPGA, or Field-programmable gate array.

    Rewriting from scratch! (29/12/2010):

    Being free from school and other stuff, I've decided to rewrite the whole project from scratch. A multiplayer alpha shouldn't be too far away if I keep this rate.

    The layout of the editor will stay the same as before. The project's rewritten entirely inside.



    Alpha Release! (4/18/2010):





    Here is the first 'stable' release. I'm asking you as the user to report any bugs or come with any suggestions. Reply to this thread (I will respond faster here), or to the email address: azzi777@gmail.com.

    There are a few known bugs that I know of, but have postponed fixing. The list is (As I can remember as of now):
    • File opening bug: If you open a file from the q-menu, then open another from the same menu, you suddenly have two editors. Avoid doing that. If you opened the wrong file, just close the editor and load a new one, or load the file directly from the editor.
    • Truth Table Size limit: Currently, the maximum size you can have for your truth table is around 400 data cells. This is approximately equal to 6 inputs and 5 outputs.
    • Does not work online as of now!

    How to use:
    I take it you already know the editor, how to save/load and so on. It is similar to the normal E2 editor. How to spawn/load from a chip is also equal to E2.
    To spawn, close the editor, then left click.
    To load code from an already spawned chip, simply right click that chip.

    You can only edit/read/overwrite your own chips.

    You set the truth table size by clicking the truth table size button. Then click accept. (See: "Truth Table Size limit" above)
    Type the name of your inputs to the left side and the outputs to the right. If an output is named the same as an input, they will automatically be wired together, and the value of the input will equal the value of the output in the last execution.

    True = 1 (Anything but zero for inputs)
    False = 0

    The chip executes once every tick. (I'll most likely change this to execution whenever triggered from an input)

    The overlay (the bubble which pops up when you look at the chip) will during execution show the current input state and the current output state.

    Debug mode:
    This mode is controlled by a checkbox in the q-menu. When enabled, it colors the chip green when it is empty, or a valid truth table is loaded. Otherwise, if something went wrong, the chip will be red.


    Installation:

    Simpy extract to addons folder.
    If you already have Bull's (epic) model, remove it before installation.

    DOWNLOAD




    First Preview (4/11/2010):



    First gate is a 1-bit full adder gate, second one is a not-gate.


    Using this chip, you will be given a binary truth table. By selecting which outputs are true at which conditions, you can program this chip to do almost anything. This next picture shows a truth table where an 'exclusive or'-gate (XOR) would be outputted through output 1 and an 'equal'-gate (XNOR) outputted through output 2.


    As you can see, the editor is a heavily modified E2 editor, so instead of modifying the E2 editor at runtime, I have made a new vgui component called "FPGAEditor". As you can see from the picture, it has most of the functions the E2 editor got. It has a dedicated 'Set Size' button, which, when clicked will popup a menu where you select the amount of inputs/outputs you want. (Look at picture no. 2 towards the bottom)

    An input will be false if it's 0, and true if it's anything else. An output will always be 0/1.

    I will update this thread more when I'm further in the developing process.

    Progress:
    Editor (After a total rewrite) -80% (Save/Load - 100%)
    Entity (The chip itself) - 60%
    Bridge/connection between the editor/entity (tool etc...) - 70%


    Some more pictures:



    Last edited by Matte; 12-28-2010 at 05:49 PM.
    "If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
    -- Niels Bohr

  2. #2
    goluch
    Guest goluch's Avatar

    Default Re: Wire FPGA - Field-programmable Gate Array

    One World thats all i need.

    AWSOME

  3. #3
    aka Colonel Never Online Colonel Thirty Two's Avatar
    Join Date
    Oct 2009
    Posts
    2,683
    Blog Entries
    5

    Default Re: Wire FPGA - Field-programmable Gate Array

    Oh hey, its my Digital Electronics class in GMod.

  4. #4
    Wire Amateur GmodAce's Avatar
    Join Date
    Jan 2010
    Posts
    33

    Default Re: Wire FPGA - Field-programmable Gate Array

    WOW. That has to be one of, if not the most, powerful chips in gmod yet! Keep up the work, i want it!!

  5. #5
    Wire Sofaking N00bDud3's Avatar
    Join Date
    Jul 2009
    Location
    Error: Unknown Location
    Posts
    1,252

    Default Re: Wire FPGA - Field-programmable Gate Array

    Sweet. Now we can make our own chips, and eventually make simple computer-like devices with them.



  6. #6
    Wire Sofaking Azrael's Avatar
    Join Date
    Aug 2007
    Posts
    1,946

    Default Re: Wire FPGA - Field-programmable Gate Array

    Matte, I want to make sweet sweet love to your brain.

    Interesting concept for a Wiremod-esque mod: Every chip is made of FPGAs such as this! That'd be really awesome and powerful.

  7. #7
    Wire Sofaking Solece's Avatar
    Join Date
    Jul 2008
    Location
    Pittsburgh, PA
    Posts
    673

    Default Re: Wire FPGA - Field-programmable Gate Array

    Holy shat this is awesome!

  8. #8
    Wire Sofaking N00bDud3's Avatar
    Join Date
    Jul 2009
    Location
    Error: Unknown Location
    Posts
    1,252

    Default Re: Wire FPGA - Field-programmable Gate Array

    I just thought of something. This, plus Wire2's IC concept equals almost anything. Instant WIN of over 9000 internets.



  9. #9
    Wire Sofaking Azrael's Avatar
    Join Date
    Aug 2007
    Posts
    1,946

    Default Re: Wire FPGA - Field-programmable Gate Array

    Actually, the IC combined with just this wouldn't have any more power than just this. This is essentially an IC of logic gates, so what you'd have would be an IC of ICs of logic gates which wouldn't add any extra power.

  10. #10
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,662
    Blog Entries
    1

    Default Re: Wire FPGA - Field-programmable Gate Array

    Nice!

Closed Thread
Page 1 of 11 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots