Tiny Core Linux

General TC => General TC Talk => Topic started by: vinnie on January 27, 2012, 08:45:57 AM

Title: Question about software (electric circuit)
Post by: vinnie on January 27, 2012, 08:45:57 AM
I need a program to do these type circuits (I did this with dia):
(http://img191.imageshack.us/img191/4985/001scelettrico.png)

I try fritzing http://fritzing.org/, (http://fritzing.org/,) works but it have only integrated chip (only 4) and I also need for circuits only with the fundamental gate (or, xor, nand, xnand...)

you recommend to me a (simple) program? Thanks.
Title: Re: Question about software (electric circuit)
Post by: Rich on January 27, 2012, 09:28:09 AM
Hi vinnie
I have not used this program myself, but maybe  geda-gaf.tcz  is suitable for your needs.
I also noticed  eagle.tcz  but that might only contain the PCB layout program and not the schematic
program.
Title: Re: Question about software (electric circuit)
Post by: hiro on January 27, 2012, 11:26:44 AM
I don't understand your question. Do you need a program to draw circuits, to test circuits, to build circuits, do you perhaps even want a chip on which to test that all?
Title: Re: Question about software (electric circuit)
Post by: Rich on January 27, 2012, 12:37:04 PM
Hi vinnie
The circuit you have drawn does this:
y=(A and C) or (A and B) or C
which simplifies to this:
y=(A and B) or C
reducing the circuit to one  two input and gate  and one  two input or gate.
Quote
(or, xor, nand, xnand...)
xnand? No such thing. Maybe you meant  xnor.
If you are looking for circuit simulation, I noticed  qucs.tcz  in the repository. It appears to support
both analog and digital simulation.
Title: Re: Question about software (electric circuit)
Post by: vinnie on January 28, 2012, 06:16:13 AM
Quote
xnand? No such thing. Maybe you meant  xnor
:-[ sorry, I wrote message too fast to think carefully about what I was writing, yep xnor!

Quote
analog and digital simulation
what is the meaning of the two? analog it's like I need and digital is with the material components really existing?

Quote
I don't understand your question. Do you need a program to draw circuits, to test circuits, to build circuits, do you perhaps even want a chip on which to test that all?
whether it is better but for now especially for drawing them (and test it if possible)


Quote
I have not used this program myself, but maybe  geda-gaf.tcz  is suitable for your needs.
I also noticed  eagle.tcz  but that might only contain the PCB layout program and not the schematic
program.
I am not yet in possession of technical terms, but I hope to recover, in the meantime I will try things that are in the repository that you told me
Thanks :)
Title: Re: Question about software (electric circuit)
Post by: hiro on January 28, 2012, 06:40:56 AM
Ok, you should be searching for academic/educational tools then. I'd also be interested to know what there is, because when I learned this we went through each step on blackboard only or used these very expensive educational circuit boards.
More advanced things are overly complicated, like the Altera tools for their FPGAs.
Title: Re: Question about software (electric circuit)
Post by: vinnie on January 28, 2012, 10:33:42 AM
I try from the repo gnucap pcb qucs and geda but I only got something with qucs:

(http://img831.imageshack.us/img831/422/screenshot0128190441.th.png) (http://imageshack.us/photo/my-images/831/screenshot0128190441.png/)


The error is returned when I try the simulation, but may simply be that I have not been able to use the program.
In the way, if someone wants to intervene, will be welcome.

In the meantime I will try logisim as someone suggested to me.
Title: Re: Question about software (electric circuit)
Post by: Rich on January 28, 2012, 10:58:56 AM
Hi vinnie
Looking at the picture I think I see two possible problems by  Y4
The inputs run through the gate instead of stopping at the left edge.
There is nothing attached to the output to indicate that you wish to monitor it. Based on the files
included in this extension, it looks like you might want to attach a  vprobe  to the output.
Title: Re: Question about software (electric circuit)
Post by: vinnie on January 28, 2012, 01:32:24 PM
I think instead that missing this library http://freehdl.seul.org/ (http://freehdl.seul.org/)

(http://img26.imageshack.us/img26/2217/screenshot0128223006.th.png) (http://img26.imageshack.us/img26/2217/screenshot0128223006.png)

I tried logisim, it works but is ugly
Title: Re: Question about software (electric circuit)
Post by: vinnie on January 28, 2012, 02:32:51 PM
after compiling the library the error is changed:
now the error has changed:
Code: [Select]
freehdl-v2cc: error while loading shared libraries: libfreehdl-vaul.so.0: cannot open shared object file: No such file or directory

the same if i launch
Code: [Select]
tc@box:~$ freehdl-v2cc
freehdl-v2cc: error while loading shared libraries: libfreehdl-vaul.so.0: cannot open shared object file: No such file or directory
tc@box:~$

 >:( always the same story
Title: Re: Question about software (electric circuit)
Post by: Rich on January 28, 2012, 10:52:42 PM
Hi vinnie
I guess the obvious questions are:
Was libfreehdl-vaul.so.0 created?
Where did it wind up?
Where does qucs expect to find it?
According to the Arch Linux site:
http://www.archlinux.org/packages/community/i686/freehdl/files/ (http://www.archlinux.org/packages/community/i686/freehdl/files/)
libfreehdl-vaul.so, libfreehdl-vaul.so.0, and libfreehdl-vaul.so.0.0.0 are in  /usr/lib  but maybe  qucs
expects it in  /usr/local/lib.
Title: Re: Question about software (electric circuit)
Post by: vinnie on January 29, 2012, 01:12:51 AM
standard prefix of compilation is /usr/local/... but even without qucs returns the same error if I try to launch freehdl-v2cc  as above.
So I do not think is a problem related to qucs i think is an freehdl problem.

however:
Code: [Select]
tc@box:~$ sudo find / -iname "*libfreehdl-vaul.so.0*"
/home/tc/freehdl-0.0.8/freehdl-0.0.8/vaul/.libs/libfreehdl-vaul.so.0
/home/tc/freehdl-0.0.8/freehdl-0.0.8/vaul/.libs/libfreehdl-vaul.so.0.0.0
/usr/local/lib/libfreehdl-vaul.so.0
/usr/local/lib/libfreehdl-vaul.so.0.0.0
tc@box:~$
Title: Re: Question about software (electric circuit)
Post by: Rich on January 29, 2012, 09:46:45 AM
Hi vinnie
Quote
So I do not think is a problem related to qucs i think is an freehdl problem.
Yeah, you're right, I was tired when I wrote that.
What does   ldd freehdl-v2cc   return?
Title: Re: Question about software (electric circuit)
Post by: vinnie on January 29, 2012, 12:54:46 PM
Code: [Select]
tc@box:~$ ldd freehdl-v2cc
./freehdl-v2cc: error while loading shared libraries: ./freehdl-v2cc: cannot open shared object file: No such file or directory
tc@box:~$

 What does ldd?
Title: Re: Question about software (electric circuit)
Post by: gerald_clark on January 29, 2012, 01:03:54 PM
Ldd shows you what libraries a binary requires.
Your failure is because freehdl-v2cc is not in your current directory and you did not supply the full path.
Title: Re: Question about software (electric circuit)
Post by: vinnie on January 29, 2012, 01:30:45 PM
I tried again launching freehdl-v2cc now (without restarting the system)
Code: [Select]
tc@box:~$ freehdl-v2cc
usage: v2cc [-v] [-l lib] [-L libdir] file...
tc@box:~$ ldd freehdl-v2cc
./freehdl-v2cc: error while loading shared libraries: ./freehdl-v2cc: cannot open shared object file: No such file or directory
tc@box:~$

I tried again the simulation of qucs, does not return errors but does not seem to work equally
Title: Re: Question about software (electric circuit)
Post by: gerald_clark on January 29, 2012, 01:32:44 PM
And you still did not supply the path to freehdl-v2cc.  It is not in your current directory.
Title: Re: Question about software (electric circuit)
Post by: Rich on January 29, 2012, 01:45:21 PM
Hi vinnie
Try it this way:
Code: [Select]
ldd `which freehdl-v2cc`Make sure you use ` and not '
Title: Re: Question about software (electric circuit)
Post by: vinnie on January 29, 2012, 02:09:28 PM
Code: [Select]
tc@box:~$ ldd `which freehdl-v2cc`
linux-gate.so.1 =>  (0xb7845000)
libfreehdl-vaul.so.0 => /usr/local/lib/libfreehdl-vaul.so.0 (0xb77a3000)
libfreehdl-fire.so.0 => /usr/local/lib/libfreehdl-fire.so.0 (0xb776a000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb76a8000)
libm.so.6 => /lib/libm.so.6 (0xb7685000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb766e000)
libc.so.6 => /lib/libc.so.6 (0xb7563000)
/lib/ld-linux.so.2 (0xb7846000)
tc@box:~$
Title: Re: Question about software (electric circuit)
Post by: Rich on January 29, 2012, 06:52:54 PM
Hi vinnie
OK, looks like all the dependencies are satisfied.
Quote
I tried again the simulation of qucs, does not return errors but does not seem to work equally
So what happens? You click on the simulate button, the Qucs Simulations Messages window pops
up for a second, and then you get a blank tab, right? Now try dragging a Timing Diagram symbol
to that blank tab and a window should pop up, double click on the signal names you want to display.
Title: Re: Question about software (electric circuit)
Post by: vinnie on January 30, 2012, 03:41:05 AM
ok I got it, it was imperative to give a label to links, but now I can not get the tcz package, the only way that I always do "make install" from source.

I'm trying to upload the test package and the precompiled source (only to make install it)
I have few times to upload and the archive is 30mb, I do not think of doing at this moment.
Title: Re: Question about software (electric circuit)
Post by: vinnie on January 30, 2012, 04:58:30 AM
http://dl.dropbox.com/u/10544567/freehdltest.7z (http://dl.dropbox.com/u/10544567/freehdltest.7z) it is here.
After "make install" only required dep is libtool (in addition to qucs naturally), someone might see if there something wrong with my package (included in the same archive)?
Thanks!