Skip to content

Instantly share code, notes, and snippets.

@jrsa
jrsa / gist:8bcdcb131bc0039a13a350d2d597cbbc
Created June 1, 2023 05:26
hackintosh gpu dead when after trying to go to sleep
2023-05-31 22:23:46.511221-0700 0x77b Fault 0x0 0 0 kernel: (IOAcceleratorFamily2) virtual void IOAccelEventMachineFast2::checkGPUProgress() - Signaling hardware error on channel 11..
2023-05-31 22:23:46.511237-0700 0x77b Fault 0x0 0 0 kernel: (IOAcceleratorFamily2) void IOAccelEventMachine2::signalHardwareError(eRestartRequest, int32_t): GPURestartSignaled stampIdx=11 type=2 prevType=0 numStamps=64
2023-05-31 22:23:46.511243-0700 0x77b Fault 0x0 0 0 kernel: (IOAcceleratorFamily2) void IOAccelEventMachine2::signalHardwareError(eRestartRequest, int32_t): GPURestartEnqueued stampIdx=11 type=2
2023-05-31 22:23:46.511251-0700 0x77b Fault 0x0 0 0 kernel: (IOAcceleratorFamily2) void IOAccelEventMachine2::hardwareErrorEvent(): setting restart type to 2 (channel 11)
2023-05-31 22:23:46.511255-0700 0x77b Fault 0x0 0 0 kernel: (IOAccelerator
#! /bin/bash
set -ex
design=$1
path=/home/admin
bitbin=$design.bit.bin
fullbitbin=$path/$design.bit.bin
echo $fullbitbin
$ 1 0.000005 63.79968419005069 50 5 43 5e-11
a 128 112 32 112 9 15 -15 1000000 -0.000007397277712403093 0 100000
r 32 176 128 176 0 10000
w 128 128 160 128 0
w 128 128 128 176 0
w 32 176 32 112 0
w 0 112 32 112 0
162 0 112 -80 112 2 default-led 1 0 0 0.01
a -128 320 -16 320 8 15 -15 1000000 0.0000022782153929741616 0 100000
a 64 336 176 336 8 15 -15 1000000 0.00000739742565795734 0 100000
@jrsa
jrsa / gist:87ba622b9e52eeb6d3e15bed7eb37965
Created December 24, 2021 21:10
(b/w only) composite video "dac"
$ 1 0.000005 10.20027730826997 50 5 43 5e-11
r 64 128 176 128 0 680
r 64 208 176 208 0 115
r 240 160 336 160 0 75
r 448 160 448 272 0 75
g 448 272 448 320 0 0
x 468 129 516 132 4 12 receiver
x 261 111 302 114 4 12 sender
w 336 160 448 160 0
w 176 128 176 160 0
@jrsa
jrsa / gist:bfb008cb644fad75753ce5a9cffe30c2
Created November 4, 2020 16:42
32-bit LFSR (falstad circuit sim)
$ 1 0.000005 0.11331484530668263 50 5 50
155 -2944 960 -2896 960 0 0
155 -2768 960 -2736 960 0 5
155 -3104 960 -3072 960 0 0
155 -3264 960 -3232 960 0 5
155 -2608 960 -2576 960 0 5
155 -2448 960 -2416 960 0 0
155 -2112 960 -2080 960 0 0
155 -2272 960 -2224 960 0 0
w -3168 960 -3104 960 0
@jrsa
jrsa / gist:a6c99e4b95a906acc9bed1ed7060ee9b
Last active February 25, 2024 08:00
EN129 VCO Core in falstad
$ 1 0.000005 0.2954511527092107 50 5 50
402 400 496 560 496 1 0\s0\s40\s-9\s0\s0\s0.5 0\s0\s40\s9\s0\s0\s0.5 0\s1\s-12.107891388002887\s0.49020072449645724\s100 0\s1\s-0.49020072449645724\s0.4899458951514504\s100 0\s1\s0\s0.4899458951514504\s100 0\s1\s-3.4423968860970877\s0.48994335934397704\s100 0\s1\s-8.969060690957324\s-4.088038007650795\s100 0\s-1\s0.48993828812503004\s-0.4896834587831105\s100 0\s-1\s0\s-0.4896834587831105\s100 0\s-1\s16.04076664862162\s-0.48993828812503004\s100 0\s-1\s0.0070150138786200245\s-0.02392429516405592\s100 0\s-1\s0\s-0.02392429516405592\s100 0\s-1\s9.993078392331174\s-0.0070150138786200245\s100 0\s1\s0\s0.48967838756419013\s100 0\s1\s-0.4899332169060475\s0.48967838756419013\s100 0\s1\s-6.996370694155912\s0.4899332169060475\s100 0\s1\s0\s-13.57798136396477\s100 0\s1\s0\s-8.999999996969999\s100
w 560 496 576 496 0
w 576 496 592 496 0
g 320 464 320 496 0
w 400 496 384 496 0
r 384 496 384 368 0 15000
r 544 368 544 432 0 1000000
w 544 432 544 464 1
R 544 368 544 336 0 0 40 9 0 0 0.5
@jrsa
jrsa / gist:b44367f3b9ea3aefb523b25ed88b551c
Created October 28, 2020 04:28
LM13700 "typical application" (VCA)
$ 1 0.000005 0.8729138363720133 50 5 43
402 256 160 416 160 1 0\s0\s40\s-9\s0\s0\s0.5 0\s0\s40\s9\s0\s0\s0.5 0\s1\s-7.415687152786355\s0.5884866519924001\s100 0\s1\s-0.5884866519924001\s0.5882318223516698\s100 0\s1\s0\s0.5882318223516698\s100 0\s1\s-7.694701523082625\s0.5710526071923115\s100 0\s1\s-7.699278439257328\s0.5695269684674031\s100 0\s-1\s0.5710475361144285\s-0.5707927064802103\s100 0\s-1\s0\s-0.5707927064802103\s100 0\s-1\s15.71632965696649\s-0.5710475361144285\s100 0\s-1\s0.5695218973891265\s-0.5692670677557174\s100 0\s-1\s0\s-0.5692670677557174\s100 0\s-1\s8.529184125685108\s-0.5695218973891265\s100 0\s1\s0\s0.5707876354023256\s100 0\s1\s-0.5710424650365447\s0.5707876354023256\s100 0\s1\s-7.190196808731177\s0.5710424650365447\s100 0\s1\s0\s0.5649099304029345\s100 0\s1\s0\s0.5664355691278429\s100
R 96 288 96 320 0 1 4000 1 0 0 0.5
174 96 192 48 144 1 1000 0.5 Resistance
w 96 128 256 128 0
w 96 192 256 192 0
r 96 192 96 288 0 30000
r 400 32 400 128 0 30000
r 464 160 464 256 0 30000
t 464 160 528 160
@jrsa
jrsa / gist:5a3542e4cff018fcc14b0a428b445892
Last active October 25, 2020 21:59
inverter/schmitt trigger relaxation oscillator (for http://www.falstad.com/circuit/circuitjs.html)
$ 1 0.000005 10.20027730826997 50 5 43
183 -32 208 80 208 0 0.5 1.66 3.33 5 0
r -32 128 80 128 0 100000
w 80 128 80 208 0
w -32 128 -32 208 0
c -32 256 -32 320 0 1.0000000000000001e-7 1.8376935544796993
g -32 368 -32 400 0
w -32 208 -32 256 0
w -32 320 -32 368 0
p 80 208 128 208 1 0 0
id position_x position_y position_z orientation map name
1433 -2212.71 406.598 180.019 4.6953 1 mulgore_westwall
1434 -4700.6 -1640.03 503.327 0.023072 0 airstrip
1435 4002.08 -3010.51 771.358 3.93568 1 cliffofdoom
1436 -8816.33 458.65 87.8678 3.93917 0 undersw1
1437 -4819.98 -976.781 464.709 0.700859 0 oldironforge
1438 -10236 717.071 24.3367 3.66574 0 sickisland
1439 -8916.29 -124.552 81.5628 5.1038 0 nsabbey
@jrsa
jrsa / gist:db142b3a0c9205e8fe13aeb8fb34dd49
Last active November 1, 2020 21:40
buchla 259 tricore in falstad circuit sim
$ 1 0.000005 0.18682459574322224 63 5 50
t 336 48 272 48 0 -1 0 -0.5721561993891591 1000
t 336 48 400 48 0 -1 4.907122592815403 -0.5721561993828495 1000
w 336 48 336 96 0
w 272 64 272 96 0
w 272 96 336 96 0
r 272 32 272 -32 0 4990
r 400 32 400 -32 0 4990
w 272 -32 400 -32 0
R 272 -32 208 -32 0 0 40 15 0 0 0.5