X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-SourceIP: 95.97.163.245 X-Authenticated-Sender: b DOT mykendevelopment AT upcmail DOT nl Message-ID: <5215FFBC.6030608@iae.nl> Date: Thu, 22 Aug 2013 14:10:36 +0200 From: myken User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: geda-user AT delorie DOT com Subject: [geda-user] Little help needed with sed script (How to contribute standard symbol files?) References: <521481EE DOT 2010103 AT iae DOT nl> <87zjsa7uh5 DOT fsf AT harrington DOT peter-b DOT co DOT uk> <5215C7BB DOT 6040906 AT iae DOT nl> In-Reply-To: <5215C7BB.6040906@iae.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: geda-user AT delorie DOT com Hello All, As Peter suggested am I trying to fix the generation of the VHDL symbols. I have changed the "script.sed" file in the vhdl directory and that one works. Now I made a new sed script (scriptpad.sed) to deal with the remaining symbols. Within that script I have the command: /^T.*/ N s/\(^T.*\)\(pin.*=IPAD\)/&\n\1pintype=IN/ copy/past/adapted from "script.sed" The result is that after: T 170 38 5 10 1 1 0 0 1 pinnumber=IPAD the script copies the first line and add a line with pintype=... T 170 38 5 10 1 1 0 0 1 pintype=IN Almost perfect, it is what I want, but since the T 170 ... line is a copy of the line corresponding with the pinnumber line, the visibility attribute is set to 1 and that's not what I want. In the schematic IPAD and IN are printed overlaying. Can anyone help me solve this? How do I set the 6th attribute of the copied line to 0? Resulting in: T 170 38 5 10 0 1 0 0 1 pintype=IN Thanks, Robert. >> Hi Robert, >> >> If possible, it would be good if you could fix the generation of the >> VHDL symbols... >> >> Peter > Yes, I thought of that. Unfortunately it would mean a rather big > change in the current script. The current script doesn't do much, it > changes device=and to device=and[2..9], that's it. But to make the > vhdl library usable more changes are needed. > Oh well maybe I'll start working on it. > Is there a verilog library maintainer? > > Thanks, Robert >