Skip to content

Instantly share code, notes, and snippets.

@andars
andars / info.txt
Last active March 14, 2022 04:34
nextpnr hang
EDIT: after updating yosys to the latest (instead of the ~year-old version below), nextpnr no longer hangs while running placement.
nextpnr-ice40 observed to hang with heap placer when running for https://github.com/andars/spoke at commit 0a4ce72.
(probably the verilog design is invalid somehow, but I haven't figured out how)
$ make _out/wb_top.asc
verilator --lint-only --top-module loopback uart.v loopback.v
nextpnr-ice40 -ql _out/wb_top.nplog --up5k --package sg48 --freq 12 --asc _out/wb_top.asc --pcf wb_top-pins.pcf --pcf-allow-unconstrained --json _out/wb_top.json --verbose --debug
... hang (see wb_top.heap.nplog) ...
ICS501
ADC10065 10-Bit 65 MSPS 3V A/D Converter
ADS807
var canvas = document.querySelector('#viewer');
var ctx = canvas.getContext('2d');
var canvas_e = document.querySelector('#eviewer');
var ctxe = canvas_e.getContext('2d');
var grid_width = 300;
var grid_height = 300;
var egrid_width = grid_width - 1;
var egrid_height = grid_height - 1;
% https://soundtake.net/#https://soundcloud.com/eastarwars/sets/ounds-of-star-wars-battlefront-part-i-the-thermal-imploder
[data, fs] = audioread('grenade.mp3');
grenade = (data(:,1) + data(:,2))/2;
grenade = grenade(14.5*fs:21*fs);
Fs = 48e3;
w1 = 2*pi*1.2e3;
w2 = 2*pi*1.6e3;
void goertzel(int32_t in) {
static int16_t delay;
static int16_t delay_1 = 0;
static int16_t delay_2 = 0;
static int32_t N = 0;
static int32_t Goertzel_Value = 0;
int32_t I, prod1, prod2, prod3;;
int16_t input;
int16_t coef_1 = 0x7E22; // For detecting 1200 Hz
//Udacity HW 6
//Poisson Blending
#include "utils.h"
#include <thrust/host_vector.h>
#include "reference_calc.cpp"
#include <cstdio>
__global__
void gen_masks(unsigned char* mask, unsigned char* imask, uchar4* src, uint nr, uint nc) {
//Udacity HW 4
//Radix Sorting
#include "reference_calc.cpp"
#include "utils.h"
/* Red Eye Removal
===============
For this assignment we are implementing red eye removal. This is
<html>
<head>
<title> Numerical Methods for Derivatives </title>
</head>
<body>
<canvas id='plot' width='500' height='500' style='background: #fff;'>
</canvas>
<script src='./numderiv.js'></script>
</body>
</html>
.data
ifn: .asciz "input.txt"
buf: .fill 620
wbuf: .byte 0
.text
putc:
xor %rdi, %rdi
mov $wbuf, %rsi
mov $1, %rdx

Quotes from The Character of Physical Law, by Richard Feynman

The next question was - what makes planets go around the sun? At the time of Kepler some people answered this problem by saying that there were angels behind them beating their wings and pushing the planets around an orbit. As you will see, the answer is not very far from the truth. The only difference is that the angels sit in a different direction and push their wings inwards. (page 18)

Today our theories of phyics, the laws of physics, are a multitude of different parts and pieces that do not fit together