Giter Club home page Giter Club logo

kicad-hs's Introduction

kicad-hs

This is a Haskell library for reading and writing Kicad design files (currently only .kicad_pcb files). It also includes a handy utility for replicating parts of a layout.

Installation

Install a Haskell toolchain.

$ git clone https://github.com/bgamari/kicad-hs
$ cd kicad-hs
$ cabal install 

Using kicad-replicate

The kicad-replicate utility provides a convenient way to reuse a part of a layout across multiple sub-schematics of a hierarchical design.

The utility takes a few inputs

  • a YAML configuration file (kicad-replicate.yaml) which defines the regions to clone
  • a netlist file (.net) used to determine component names
  • the Kicad PCB design file (.kicad_pcb)

The configuration file looks something like,

pcb-file: my-design.kicad_pcb
netlist-file: my-design.net
units:
  - template: /top/gated-integ-unit-b/integ2/
    trace-regions:
      - [[248, 87.0], [297, 106.5]]
      - [[248, 107.0], [297, 126.5]]
    clones:
      - sheet: /top/gated-integ-unit-b/integ1/
        offset: [0, -20]
      - sheet: /top/gated-integ-unit-a/integ1/
        offset: [0, 41.5]
      - sheet: /top/gated-integ-unit-a/integ2/
        offset: [0, 61.5]

This configures kicad-replicate to create clones of the components in the /top/gated-integ-unit-b/integ2/ subschematic, changing their reference designators to reflect those of the subschematics given in the clones section. Each clone is translated by the amount given in the clones.offset field.

Moreover, the optional trace-regions section specifies a region of traces to be replicated.

kicad-hs's People

Contributors

bgamari avatar

Stargazers

Poul Bundgaard avatar  avatar Reto Kramer avatar

Watchers

Poul Bundgaard avatar James Cloos avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.