Importing TANGO/PCAD netlist into KICAD PCBNEW


#1

hello,
Thanks for reading this

I have a schema in TANGO/PCAD, and I want to import its NETLIST into KICAD-PCBNEW.
Did anyone do some hack/tool to load the netlist inside PCBNEW?

I am thinking to do this hack by myself…
but I am a first time KICADPCBNEW user and I need some guidance.

TANGO/PCAD netlist file follows this format (three components BAT/DIODE/CAP in series):
The interconnection between components are important information, they are between brackets (). Information between [] are not useful in my case.

test

		[
		C3
		PATTERNPCB1206
		CAP
		1U
		]
		[
		D2
		PATTERNPCB1206
		DIODE
		1N4148
		]
		[
		B1
		PATTERNPCB1206
		BATTERY
		LITIO
		]
		(
		GND
		C3-2
		B1-2
		)
		(
		NET00000
		D2-1
		B1-1
		)
		(
		NET00001
		C3-1
		D2-2
		)

Following the information I could find here https://github.com/xesscorp/skidl
I think this hand conversion could work, but I am not sure if I can suppress all other KICAD NETLIST sections (design, components,…)


(export (version D)
  (nets
    (net (code 0) (name GND)
      (node (ref C3) (pin 2)))
      (node (ref B1) (pin 2)))

	(net (code 1) (name NET00000)
      (node (ref D2) (pin 1)))
      (node (ref B1) (pin 1)))
 	  
    (net (code 2) (name NET00001)
      (node (ref C3) (pin 1))
      (node (ref D2) (pin 2))))
)

All assistance would be appreciated…
zxpope!


#2

It appears you need component references as well as the nets, e.g.

(export (version D)
  (components
    (comp (ref U2)    )
    (comp (ref J1)    )
  )
  (nets
    (net (code 1) (name GND)
      (node (ref U2) (pin 2))
      (node (ref J1) (pin 1)))
    (net (code 2) (name "Net-(J1-Pad2)")
      (node (ref U2) (pin 1))
      (node (ref J1) (pin 2)))
    (net (code 3) (name VCC)
      (node (ref U2) (pin 3)))))

Everything else appears to be optional.