Re: gEDA-user: Icarus Verilog: specify path for $readmemh?
Günter Dannoritzer wrote: > Hi, > > I am using the system task $readmemh to init some ROM. Now my question > is, can I specify for the simulation with Icarus somewhere the path to > the file I am using with $readmemh? I can think of 2 ways: You can use $value$plusargs at run time to get the path you want to use at run time as an extended argument to the vvp command. This won't work for synthesis, though. You can replace your text with a macro, and define that macro in your Makefile (-D) or your iverilog commands file (+define+). This will work with synthesis because you can also pass the correct definition of the path to your synthesizer command line. > In rtl/ and tb/ I have my RTL implementation and in tb/ the test > benches. In the sim/ folder I have a Makefile that does the compilation > and simulation with Icarus Verilog. Now the $readmemh call is in some > code in the rtl/ folder. The way I solved the path issue is that I moved > the file that is read with the $readmemh call in the sim/ folder. > > Now the conflict happens with synthesis. In the syn/ folder I have a > Makefile that calls synthesis with Xilinx webpack/ISE. It expects the > file that is read in with the $readmemh call is in the rtl/ folder. > > I guess I could copy the ROM file in both locations or specify some > macros and have two different $readmemh calls. > > Anyhow, is there a way to tell Icarus that the ROM file to be read with > $readmemh is in another location than the folder the simulator > (compiler) is called from? I did not find a command line switch that > would apply to that issue. > > Thanks for the help. > > Guenter > > > > ___ > geda-user mailing list > [EMAIL PROTECTED] > http://www.seul.org/cgi-bin/mailman/listinfo/geda-user > -- Steve Williams"The woods are lovely, dark and deep. steve at icarus.com But I have promises to keep, http://www.icarus.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Icarus Verilog: specify path for $readmemh?
Hi, You could try using a relative path, that is: Replace "Romfile.txt" with "../sim/Romfile.txt" This might get you past the problem, at the expense of forcing the directory structure to always have the file in the 'sim' directory. I think the Xilinx tools can deal with the slashes. -Original Message- From: Günter Dannoritzer <[EMAIL PROTECTED]> Date: Fri, 21 Mar 2008 12:40:43 To:gEDA user mailing list Subject: gEDA-user: Icarus Verilog: specify path for $readmemh? Hi, I am using the system task $readmemh to init some ROM. Now my question is, can I specify for the simulation with Icarus somewhere the path to the file I am using with $readmemh? Here is my dilemma. My folder structure is as follows: + rtl/ + tb/ + sim/ + syn/ In rtl/ and tb/ I have my RTL implementation and in tb/ the test benches. In the sim/ folder I have a Makefile that does the compilation and simulation with Icarus Verilog. Now the $readmemh call is in some code in the rtl/ folder. The way I solved the path issue is that I moved the file that is read with the $readmemh call in the sim/ folder. Now the conflict happens with synthesis. In the syn/ folder I have a Makefile that calls synthesis with Xilinx webpack/ISE. It expects the file that is read in with the $readmemh call is in the rtl/ folder. I guess I could copy the ROM file in both locations or specify some macros and have two different $readmemh calls. Anyhow, is there a way to tell Icarus that the ROM file to be read with $readmemh is in another location than the folder the simulator (compiler) is called from? I did not find a command line switch that would apply to that issue. Thanks for the help. Guenter ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
gEDA-user: installation problem
Hello, I upgraded geda to 1.4, starting gschem revealed that the component-library could not be found anymore... where is it, how do I configure gschem to find it? Thanks, Will ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
gEDA-user: gsch2pcb: Unbound variable error
When running gsch2pcb on a simple schematic I get the following error: ERROR: Unbound variable: nil Running command: gnetlist -g PCB -o antennas.net antennas_v1.sch Any ideas on what is causing this? Any reason to be concerned? Here is the resulting gnetlist.log file: gEDA/gnetlist version 20070526 gEDA/gnetlist comes with ABSOLUTELY NO WARRANTY; see COPYING for more details. This is free software, and you are welcome to redistribute it under certain conditions; please see the COPYING file for more details. Remember to check that your schematic has no errors using the drc2 backend. You can do it running 'gnetlist -g drc2 your_schematic.sch -o drc_output.txt' and seeing the contents of the file drc_output.txt. Read system-gafrc file [/usr/share/gEDA/system-gafrc] Read ~/.gEDA/gafrc file [/home/ken/.gEDA/gafrc] Read local gafrc file [/home/ken/gaf//gafrc] Read system-gnetlistrc file [/usr/share/gEDA/system-gnetlistrc] Read ~/.gEDA/gnetlistrc file [/home/ken/.gEDA/gnetlistrc] Read local gnetlistrc file [/home/ken/gaf//gnetlistrc] Loading schematic [/home/ken/gaf//antennas_v1.sch] RC file [/home/ken/gaf//gafrc] already read in. Opened file [/home/ken/gaf//antennas_v1.sch] Read init scm file [/usr/share/gEDA/scheme/gnetlist.scm] Read gsch2pcb scm file [/usr/share/gEDA/scheme/gnet-gsch2pcb.scm] Read scm file [gnet-gsch2pcb-tmp.scm] Thanks. --ken - Ken Lauffenburger [EMAIL PROTECTED] 214-796-4134 ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
gEDA-user: Icarus Verilog: specify path for $readmemh?
Hi, I am using the system task $readmemh to init some ROM. Now my question is, can I specify for the simulation with Icarus somewhere the path to the file I am using with $readmemh? Here is my dilemma. My folder structure is as follows: + rtl/ + tb/ + sim/ + syn/ In rtl/ and tb/ I have my RTL implementation and in tb/ the test benches. In the sim/ folder I have a Makefile that does the compilation and simulation with Icarus Verilog. Now the $readmemh call is in some code in the rtl/ folder. The way I solved the path issue is that I moved the file that is read with the $readmemh call in the sim/ folder. Now the conflict happens with synthesis. In the syn/ folder I have a Makefile that calls synthesis with Xilinx webpack/ISE. It expects the file that is read in with the $readmemh call is in the rtl/ folder. I guess I could copy the ROM file in both locations or specify some macros and have two different $readmemh calls. Anyhow, is there a way to tell Icarus that the ROM file to be read with $readmemh is in another location than the folder the simulator (compiler) is called from? I did not find a command line switch that would apply to that issue. Thanks for the help. Guenter ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: newbie gschem problem
> I have started working with this tutorial: > http://www.geda.seul.org/docs/current/tutorials/gsch2pcb/tutorial.html > > All goes well until the BNC connector: I can't connect to the terminals... > > how do I get the terminals on the grid? The most correct thing to do is edit the BNC connector symbol (select it, then do hierarchy -> down symbol), and move the pin onto your grid. You can modify the grid and snap settings using the "options" menu. > or how can I connect without using the snap? You're better off just doing the right thing: fix your symbol. Cheers, Stuart ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: newbie gschem problem
Hi Will, On Freitag, 21. März 2008, Willem Granjé wrote: > I have started working with this tutorial: > http://www.geda.seul.org/docs/current/tutorials/gsch2pcb/tutorial.htm >l > > All goes well until the BNC connector: I can't connect to the > terminals... > > how do I get the terminals on the grid? > > or how can I connect without using the snap? Remove the symbol and readd it while snap to the grid is enabled. There are some possible reasons why the symbol is not on grid: * you've added or moved the symbol without grid enabled * you're using gEDA version between 20070216 and 1.2.0 which has a Edit->Mirror bug Regards Werner ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: PC emulator and HDL
Steve Williams wrote: > Let me see if I can summarize. > > - You want to simulate a device that attaches to a parallel port, > and you want to write that simulation in jHDL or Verilog. > > - You want to hook that simulation up to a PC emulator so that you > can write the *real* device driver for your simulated device, and > use that as the test bench. Steve you are my hero :). thank you very much , I think you got it correctly. > > Kool idea. > > Personally, all my devices are either PCI-* or USB, but linking > an emulated parallel port to a simulator would be an easier first > project and would demonstrate the idea nicely. The passage of > time is going to be an interesting one for you. > I already, remove the dust from my old codes and made it up and running again, as i made the first proof of concept from about 5 monthes then got stuck in the term exams, i will begin to work on it again, I have a little time because of the school courses, but i'll try to get out with a working prototype as soon as i can. Best regards, asayed ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
gEDA-user: newbie gschem problem
Hello! I have started working with this tutorial: http://www.geda.seul.org/docs/current/tutorials/gsch2pcb/tutorial.html All goes well until the BNC connector: I can't connect to the terminals... how do I get the terminals on the grid? or how can I connect without using the snap? Thanks, Will ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user