Skip to main content

Circuits as Code banner

Circuits as Code

This is a collection of pre-built circuits written as scripts in SKiDL.

Description

SKiDL lets you create electronic circuits by writing Python scripts instead of using a schematic editor. The circuitsascode auxiliary Python package gives you a library of ready-made electronic circuits that serves several purposes:

  1. It provides a set of lower-level modules that you can integrate within your own designs.
  2. It shows you examples of how to write SKiDL code.

Installation

You can install this circuit library using pip:

pip install circuitsascode

Usage

Just import the library to use a circuit module:

# Import the function that creates a VGA display interface.
from circuitsascode.displays.vga import vga

# Create color and sync signals to connect to the VGA interface.
red, grn, blu = Bus(5), Bus(4), Bus(3)
hsync, vsync, gnd = Net(), Net(), Net()

# Create a VGA interface circuit customized for the widths
# of the RGB buses.
vga1 = vga(rgb=(len(red), len(grn), len(blu)))

# Connect the signals to the VGA interface circuit.
vga1.red += red
vga1.grn += grn
vga1.blu += blu
vga1.hsync += hsync
vga1.vsync += vsync
vga1.gnd += gnd

Changelog

Version 0.0.1

  • Initial release.

Release files for circuitsascode 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for circuitsascode 0.0.2
File Size Uploaded
circuitsascode-0.0.2.tar.gz 19.9 kB Details

Release files / circuitsascode-0.0.2.tar.gz

Download URL circuitsascode-0.0.2.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b1cb33504f59dd9066dca02cc132a83c453b7d2019c6ce7fc10f0739219cff30
BLAKE2b-256 checksum
How to use checksums
db733c5d69841a6337401c105591b233dd8574e6cf82e61fe673e66e6fb3afb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page