gEDA-dev: [Patch] Icarus verilog problem with nand
Chris H
bitmechanic at hotmail.com
Sat Jun 2 09:28:55 EDT 2007
Hello,
I've attached a patch that allows the EDIF target (-tedif) to support NAND
gates. The patch is for tgt-edif/d-lpm.c
Now if you have statements like:
nand (out1, inA, inB);
or
assign out1 = ~&{inA,inB}; // nand gate
you'll no longer get UNSUPPORTED LOGIC TYPE: 6
Chris
>From: "Chris H" <bitmechanic at hotmail.com>
>Reply-To: gEDA developer mailing list <geda-dev at moria.seul.org>
>To: geda-dev at moria.seul.org
>CC: steve at icarus.com
>Subject: Re: gEDA-dev: Icarus verilog problem with nand
>Date: Fri, 25 May 2007 09:00:55 -0400
>
>Hi Steve,
>
>Yes, I'm trying to synthesize. I'm trying to target a library that contains
> NAND and DFF primitives. Ideally, I'm trying to get a EDIF netlist that
>contains only those primitives. I realize I'll need to write a more
>'structural' Verilog, but that's ok. For example I already have modules
>that bulid comparators from NAND gates or counters from NAND gates and
>DFFs. So, being able instantiate a NAND would allow me to do it.
>
>Thanks,
>Chris
>
>BTW Icarus verilog is very cool
>
>
>>From: Stephen Williams <steve at icarus.com>
>>Reply-To: gEDA developer mailing list <geda-dev at moria.seul.org>
>>To: geda-dev <geda-dev at seul.org>
>>Subject: Re: gEDA-dev: Icarus verilog problem with nand
>>Date: Wed, 23 May 2007 07:49:46 -0700
>>
>>Chris H wrote:
>> > Hello,
>> >
>> > I'm trying to instantiate a nand gate in a module, i.e.
>> >
>> > nand G1 (out1, inA, inB);
>> >
>> > I'm compiling for synthesis/EDIF output:
>> >
>> > iverilog -tfpga -parch=lpm -o netlist.edf module1.v module2.v
>> >
>> > I get errors:
>> > UNSUPPORTED LOGIC TYPE: 6
>> >
>> > I tried other arch also, like -parch=virtex2
>> >
>> > I'm using version 0.8.4
>>
>>That just means that the code generator ran into a logic type
>>that it doesn't support. (The synthesizer handled it.) The
>>code generator for the "fpga" code generator is in tgt-fpga.
>>
>>Are you really trying to *synthesize* for lpm using Icarus Verilog,
>>or are you trying to run a simulation? If the latter, then you
>>do not need (or want) the -tfpga flags. If you really are trying
>>to synthesize, the the tgt-fpga code generator needs to be fixed.
>>
>>--
>>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-dev mailing list
>>geda-dev at moria.seul.org
>>http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev
>
>_________________________________________________________________
>Like the way Microsoft Office Outlook works? Youll love Windows Live
>Hotmail.
>http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_outlook_0507
>
>
>
>_______________________________________________
>geda-dev mailing list
>geda-dev at moria.seul.org
>http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev
_________________________________________________________________
Like puzzles? Play free games & earn great prizes. Play Clink now.
http://club.live.com/clink.aspx?icid=clink_hotmailtextlink2
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: verilog-0.8.4.patch
Url: http://www.seul.org/pipermail/geda-dev/attachments/20070602/283ef8e9/attachment-0001.txt
More information about the geda-dev
mailing list