Re: [myhdl-list] compiling generated VHDL code
Brought to you by:
jandecaluwe
From: Christopher L. F. <chr...@gm...> - 2010-10-28 05:47:14
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <title></title> </head> <body text="#000000" bgcolor="#ffffff"> This might help, from the MyHDL manaul the default simulator for VHDL is GHDL. You can see in the default config you need to inlcude the pck_myhdl_*.vhd file as well.<br> <br> <a href="http://www.myhdl.org/doc/0.6/whatsnew/0.6.html?highlight=ghdl">http://www.myhdl.org/doc/0.6/whatsnew/0.6.html?highlight=ghdl</a><br> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="font-family: 'Lucida Grande','Lucida Sans Unicode',Geneva,Verdana,sans-serif; font-size: 14px; line-height: 21px; text-align: left;"> <pre style="font-family: Consolas,'Deja Vu Sans Mono','Bitstream Vera Sans Mono',monospace; font-size: 0.95em; letter-spacing: 0.015em; padding: 0.5em; border: 1px solid rgb(204, 204, 204); background-color: rgb(248, 248, 248); line-height: 15px;"><span class="n">registerSimulator</span><span class="p">(</span> <span class="n">name</span><span class="o" style="color: rgb(102, 102, 102);">=</span><span class="s" style="color: rgb(64, 112, 160);">"<span class="highlight" style="background-color: rgb(251, 229, 78);">GHDL</span>"</span><span class="p">,</span> <span class="n">hdl</span><span class="o" style="color: rgb(102, 102, 102);">=</span><span class="s" style="color: rgb(64, 112, 160);">"VHDL"</span><span class="p">,</span> <span class="n">analyze</span><span class="o" style="color: rgb(102, 102, 102);">=</span><span class="s" style="color: rgb(64, 112, 160);">"<span class="highlight" style="background-color: rgb(251, 229, 78);">ghdl</span> -a --workdir=work pck_myhdl_</span><span class="si" style="color: rgb(112, 160, 208); font-style: italic;">%(version)s</span><span class="s" style="color: rgb(64, 112, 160);">.vhd </span><span class="si" style="color: rgb(112, 160, 208); font-style: italic;">%(topname)s</span><span class="s" style="color: rgb(64, 112, 160);">.vhd"</span><span class="p">,</span> <span class="n">elaborate</span><span class="o" style="color: rgb(102, 102, 102);">=</span><span class="s" style="color: rgb(64, 112, 160);">"<span class="highlight" style="background-color: rgb(251, 229, 78);">ghdl</span> -e --workdir=work -o </span><span class="si" style="color: rgb(112, 160, 208); font-style: italic;">%(unitname)s</span><span class="s" style="color: rgb(64, 112, 160);">_<span class="highlight" style="background-color: rgb(251, 229, 78);">ghdl</span> </span><span class="si" style="color: rgb(112, 160, 208); font-style: italic;">%(topname)s</span><span class="s" style="color: rgb(64, 112, 160);">"</span><span class="p">,</span> <span class="n">simulate</span><span class="o" style="color: rgb(102, 102, 102);">=</span><span class="s" style="color: rgb(64, 112, 160);">"<span class="highlight" style="background-color: rgb(251, 229, 78);">ghdl</span> -r </span><span class="si" style="color: rgb(112, 160, 208); font-style: italic;">%(unitname)s</span><span class="s" style="color: rgb(64, 112, 160);">_<span class="highlight" style="background-color: rgb(251, 229, 78);">ghdl</span>"</span> <span class="p">) </span></pre> </span></span><br> Hope that helps<br> .chris<br> <br> On 10/28/2010 12:42 AM, Martín Gaitán wrote: <blockquote cite="mid:AAN...@ma..." type="cite"> <pre wrap="">Hi, I've been working on my project for the university (I called it "pymips"). Now I know (with a bit effort) how to code convertible things. But I don't know why the code I get fails when I try to compile it. For example, the converted version of the alu <a class="moz-txt-link-freetext" href="http://github.com/nqnwebs/pymips/blob/master/alu.py">http://github.com/nqnwebs/pymips/blob/master/alu.py</a> is this <a class="moz-txt-link-freetext" href="http://github.com/nqnwebs/pymips/blob/master/vhdl/alu.vhd">http://github.com/nqnwebs/pymips/blob/master/vhdl/alu.vhd</a> when I try to compile or check that I get this: (hdl)tin@azulita:~/facu/arq/project/vhdl$ ghdl -a alu.vhd alu.vhd:31:22: no function declarations for operator "and" alu.vhd:33:22: no function declarations for operator "or" /usr/lib/ghdl/bin/ghdl: compilation error what's wrong? thanks Martín ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/nokia-dev2dev">http://p.sf.net/sfu/nokia-dev2dev</a> _______________________________________________ myhdl-list mailing list <a class="moz-txt-link-abbreviated" href="mailto:myh...@li...">myh...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/myhdl-list">https://lists.sourceforge.net/lists/listinfo/myhdl-list</a> </pre> </blockquote> <br> </body> </html> |