Mail Archives: geda-user/2012/04/26/09:06:42
Russel Dill:
> On Wed, Apr 25, 2012 at 2:33 PM, Karl Hammar <karl AT aspodata DOT se> wrote:
...
> > $ ~/git/openhw/share/ibis.pl stm32f2_lqfp100.ibs | head
> > Component: STM32F2_LQFP100
> > 1 PE2
> > 2 PE3
...
> > So I'm wondering how to make that to a .sym file.
...
> djboxsym is the probably the easiest way from that data, however...
>
> $ git clone git://github.com/russdill/pybis.git
Wery, nice.
...
> $ PYTHONPATH=. examples/ibs2symdef.py stm32f2_lqfp100.ibs
...
> $ djboxsym < STM32F2_LQFP100.symdef > STM32F2_LQFP100.sym
...
> The model doesn't contain any ground or power pins, so they do not
> appear in the symbol. Also, the first model option for all the other
> pins, so they all show up on the left side of the symbol. Its easy
> enough to edit the symdef file to move them around though.
Well, the pins are there, but commented and without a model to reference:
$ egrep '^\|[0-9]+ [A-Z]' stm32f2_lqfp100.ibs
|6 VBAT VDD33IOSWCO_MOSSWI_FT
|10 VSS_5 VSSIOCO
|11 VDD_5 VDD33IOCO
|14 NRST RESET
|19 VDD_12 VDD33IOCO_VSSIOCO_MOSSWI_FT
|20 VSSA VSSCO
|21 VREF+ VDD33CO
|22 VDDA VDD33CO
|27 VSS_4 VSSIOCO
|28 VDD_4 VDD33IOCO
|49 VCAP1_0
|50 VDD_1
|53 PA11 IO8USB_LSFS_OTG_FT_USB
|54 PA12 IO8USB_LSFS_OTG_FT_USB
|70 PA11 IO8USB_LSFS_OTG_FT_NON_USB_DNV33
|71 PA12 IO8USB_LSFS_OTG_FT_NON_USB_DPV33
|73 VCAP2
|74 VSS_2
|75 VDD_2
|99 NC
|100 VDD_3 VDD33CO
$
Should one expect ibis files to contain such incomplete pin definitions
and somehow add some ad hoc rules for them (I havn't seen many ibis
files so I can't say)?
I cannot easily understand your code and provide a test patch. My guess
is that you parse comments starting with "class Comment(Bracket):" on
line 426 in pybis.py, and that it treats comments the same regardless of
the current keyword.
Regards,
/Karl Hammar
-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57
- Raw text -