router

package
Version: v0.0.0-...-6d04bbe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2015 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

package name

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cord

type Cord struct {
	X float32
	Y float32
}

type Cords

type Cords []*Cord

type Dims

type Dims struct {
	Width  int
	Height int
	Depth  int
}

dimensions of pcb board in grid points/layers

type Output

type Output struct {
	Radius float32
	Via    float32
	Gap    float32
	Terms  Terminals
	Paths  Paths
}

type Path

type Path []*Tpoint

type Paths

type Paths []Path

type Pcb

type Pcb struct {
	// contains filtered or unexported fields
}

pcb object

func NewPcb

func NewPcb(dims *Dims, rfvs, rpvs *Vectorss, dfunc func(*mymath.Point, *mymath.Point) float32,
	res, verb, quant, viascost int) *Pcb

func (*Pcb) Add_track

func (self *Pcb) Add_track(t *Track)

add net

func (*Pcb) Copy

func (self *Pcb) Copy() *Pcb

func (*Pcb) Cost

func (self *Pcb) Cost() int

cost of board in complexity terms

func (*Pcb) Increase_quantization

func (self *Pcb) Increase_quantization()

increase area quantization

func (*Pcb) Init

func (self *Pcb) Init(dims *Dims, rfvs, rpvs *Vectorss,
	dfunc func(*mymath.Point, *mymath.Point) float32, res, verb, quant, viascost int)

func (*Pcb) Print_netlist

func (self *Pcb) Print_netlist()

output netlist and paths of board for viewer app

func (*Pcb) Print_pcb

func (self *Pcb) Print_pcb()

output dimensions of board for viewer app

func (*Pcb) Print_stats

func (self *Pcb) Print_stats()

output stats to screen

func (*Pcb) Route

func (self *Pcb) Route(timeout float64) bool

attempt to route board within time

type Point

type Point struct {
	X int
	Y int
	Z int
}

grid point and collections

type Terminal

type Terminal struct {
	Radius float32
	Gap    float32
	Term   Tpoint
	Shape  Cords
}

type Terminals

type Terminals []*Terminal

type Tpoint

type Tpoint struct {
	X float32
	Y float32
	Z float32
}

netlist structures

type Track

type Track struct {
	Radius float32
	Via    float32
	Gap    float32
	Terms  Terminals
}

type Vectors

type Vectors []*Point

type Vectorss

type Vectorss []Vectors

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL