Welcome, Guest. Please login or register.

Author Topic: This is probably the stupidest question ever...  (Read 2480 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline GarrettTopic starter

  • Newbie
  • *
  • Join Date: Aug 2006
  • Posts: 38
    • Show only replies by Garrett
This is probably the stupidest question ever...
« on: February 07, 2007, 05:17:41 PM »
But here goes: Is there some kind of software available
that will attempt to interpret source code and print it
out as electronic schematics that can be made into actual hardware? (Stoopid, stoopid stoopid... :headwall: )
 

Offline oleimann

  • Newbie
  • *
  • Join Date: May 2005
  • Posts: 28
    • Show only replies by oleimann
    • http://www.leimann.net/
Re: This is probably the stupidest question ever...
« Reply #1 on: February 07, 2007, 05:34:31 PM »
Well, you could use CAD/CAM to produce a 3D Model of the
Flowchart  :-D

I have actually worked on a digitalized version of an
analog circuit which was built from multipliers, etc.

I'm sure some algorithms could be put into a chip (like 3D
cards, but nowadays it's much more effective to use a
software/hardware combo than pure hardware.

It also has the advantage that it can be updated to fix
issues, or increase functionality.

Perhaps an example would make your point more clear ?
-- olafL
Commodore stuff I use(d): A2000 A1200 C64 [VC20]
C1541 disk drive, [C1520 plotter, Riteman C+ print]
Favorite programming tool: C64 Magazine\\\'s CMON
 

Offline bobamu

  • Full Member
  • ***
  • Join Date: Mar 2006
  • Posts: 110
    • Show only replies by bobamu
Re: This is probably the stupidest question ever...
« Reply #2 on: February 07, 2007, 07:00:14 PM »
nah, it contains no mention of porting [something] to ps3/kittens/trampolines

don't think that question is stupid, but it maybe won't lead to the answer you are hoping to get.

I know there's some c to vhdl compilers, though I suspect you'll have to write your code in a very particular style.

But as for schematics? Dunno man.

Someone knowledgeable in this stuff is bound to appear soon with the explanation of it all  :-D
I\'m back and I brought bacon.
 

Offline KThunder

  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 1509
    • Show only replies by KThunder
Re: This is probably the stupidest question ever...
« Reply #3 on: February 07, 2007, 07:52:35 PM »
dennis looked at uae source and used it for info as to how to build minimig, is that what you are talking about?

   some fpga tools and stuff look much like programming but are based on different principles. it depends i think on what type of circut you were planning on making
Oh yeah?!?
Well your stupid bit is set,
and its read only!
(my best geek putdown)
 

Offline Fats

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 672
    • Show only replies by Fats
Re: This is probably the stupidest question ever...
« Reply #4 on: February 07, 2007, 07:55:16 PM »
Hello Garret,

What you ask for is the holy grail of the EDA (electronic design automation) industry. This problem is very complicated because code written in a higher level programming language is a number of commands executed serially, hardware is a number of block working parallel. To get more information about development in this industry you can surf to EETimes. One of the last articles in the EDA section was this: C based design methodology accelerates ASIC/FPGA design cycles

Have fun,
Staf.
Trust me...                                              I know what I\'m doing
 

Offline Hyperspeed

  • Hero Member
  • *****
  • Join Date: Jun 2004
  • Posts: 1749
    • Show only replies by Hyperspeed
Re: This is probably the stupidest question ever...
« Reply #5 on: February 08, 2007, 01:59:28 AM »
I suppose the closest thing to turning code into hardware would be programming PIC chips.

http://www.ianstedman.co.uk/Projects/projects.html

<-- This chappy does a bit of that, and stuff for Amigas!
 

Offline AMC258

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 877
    • Show only replies by AMC258
    • http://www.AMC258.com/
Re: This is probably the stupidest question ever...
« Reply #6 on: February 08, 2007, 02:25:32 AM »
Precisely.  It all depends on what you call code.  Ladder logic is code that is really easy to convert to hardware.  But, it's not easy for someone used to high level computer programming to work with.

There are some controllers that allow you to program in a high level language that easily compiles into ladder logic.  But, these languages share the same charactaristic as most ladders.  They theoretically work in parallel, although most of them execute sequentially.  As a programmer, you write code that assumes parallel, while keeping the sequential aspect in mind!  I work with just such things for a living.  By the time you write good code in these environments, you may as well design the hardware.

By the way, for most applications, if you can write the program, you can compile it for a cheap, small, efficient microcontroller, and then you don't need discreet logic.  Automotive "Engine Control Modules" are a perfect example.
Get up!  Get up!  Get outta here!  GONE!
  - Bob Uecker
 

Offline Dandy

  • Hero Member
  • *****
  • Join Date: Apr 2004
  • Posts: 1221
    • Show only replies by Dandy
    • http://www.wiehltalbahn.de/en/
Re: This is probably the stupidest question ever...
« Reply #7 on: February 08, 2007, 09:06:53 AM »
Quote

Garrett wrote:
But here goes: Is there some kind of software available
that will attempt to interpret source code and print it
out as electronic schematics that can be made into actual hardware? (Stoopid, stoopid stoopid... :headwall: )

Hmmm - I only have an old piece of software for the Amiga that can route a PCB layout from a given schematics - but I'm not sure if this is what you're looking for.

Anyway, the soft is called "Newio v3.5"...
All the best,

Dandy

Website maintained by me

If someone enjoys marching to military music, then I already despise him. He got his brain accidently - the bone marrow in his back would have been sufficient for him! (Albert Einstein)
 

Offline GarrettTopic starter

  • Newbie
  • *
  • Join Date: Aug 2006
  • Posts: 38
    • Show only replies by Garrett
Re: This is probably the stupidest question ever...
« Reply #8 on: February 08, 2007, 05:52:19 PM »
Hello, folks! I was talking about about turning something like UAE into a hardware version of it by converting the source code into schematics one could use for the design. If that's any clearer. I understand the facts provided by Fats here. I'm no electronic wiz or anything it was just a thought a had and wondered if it was science fiction or reality. Thanks for all the replies.  :-)
 

Offline billt

  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 910
    • Show only replies by billt
    • http://www.billtoner.net
Re: This is probably the stupidest question ever...
« Reply #9 on: February 08, 2007, 07:54:16 PM »
Depends on the "source code". Languages such as verilog and VHDL exist to do that wort of thing, but the source code has to be in those languages. That is then "compiled" (AKA synthesized) into a gate-level netlist, which shows inverters, flipflops, and-gates, etc. which can then be put into an FPGA chip or if you're righ made into a custom chip.

You can also simulate both the "source code" (AKA RTL or Register Transfer Level code) and the "compiled" or synthesized gate-level netlist.

There are tools which are capable of importing these gate-level netlists into schematic views. But schematics imported from verilog or vhdl aren't known to be easily readable by humans. And you need to have a library of symbols available for any gate or cell that would appear in the netlist.

There's also some attempts to do this sort of thing with C or C++. SystemC may be more like that.

Google for "HDL" and see what you learn. HDL stands for Hardware Description Language, which includes verilog, vhdl, systemc, and others.
Bill T
All Glory to the Hypnotoad!
 

Offline voxel

  • Sr. Member
  • ****
  • Join Date: Feb 2002
  • Posts: 322
    • Show only replies by voxel
Re: This is probably the stupidest question ever...
« Reply #10 on: February 08, 2007, 10:38:00 PM »
Hi Garrett :-)

If I remember well, there is a software called Spice that do exactly that : let you feed it with the schematics, test it as if it was real hardware, and issue a netlist for the pcb. BTW it works on PeeCee (berk!) but wasn't there an AmigaSpice soft on aminet?
Amigalement,
Jean-François Bachelet, Amiga nuts since 1985.
-------------------------------------------------
Welcome to Happy Computing : Amiga! (© 2K4-2K8 voxel)
 

Offline Homer

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 1166
    • Show only replies by Homer
    • http://www.graingerweb.net
Re: This is probably the stupidest question ever...
« Reply #11 on: February 09, 2007, 01:10:20 AM »
Hmm, I used to use my old Hal-9000 for that back in 2001, but it seemed to stop working after that problem with the pod bay doors  :crazy:
Let X = X
{(c) Laurie Anderson}