Skip to content

Instantly share code, notes, and snippets.

`timescale 1ns / 1ps
module nonzero_cla #(
parameter N = 7,
parameter W = 6 /* Number of inputs per LUT */
) (
input [N-1:0] in,
output out
);
if (N <= W)
#!/usr/bin/python
import socket
import select
import fcntl
import struct
import errno
import os
import asyncore
import sys
@russdill
russdill / gist:8179362
Created December 30, 2013 08:28
PMDL decoder for zeroplus
#!/usr/bin/python
import xml.etree.ElementTree as ET
import sys
try:
tree = ET.parse(sys.argv[1])
except:
tree = ET.parse(sys.stdin)
root = tree.getroot()
/* Copyright 2012, Russ.Dill@asu.edu
* Released under LGPLv2 or later */
#include <math.h>
#include "config.h"
#include "data.h"
#include "rtree.h"
#include "mirror.h"
#include "remove.h"
#include "select.h"
@russdill
russdill / pnp.py
Created July 10, 2012 05:36
Pick and Place helper for gEDA PCB
#!/usr/bin/env python
#
# pnp.py
#
# Copyright (C) 2012 Russ Dill <Russ.Dill@asu.edu>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#!/bin/sh
CLOCK=162
LATCH=161
DATA=145
PIN_MUX=uart2_rts
PIN_MUX_VAL=4
gpio_init()
{