Skip to content

Instantly share code, notes, and snippets.

Bus 003 Device 049: ID 0f0f:0006 Silego Technology Inc GreenPak Universal Dev Board (Active Mode)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0f0f Silego Technology Inc
YosysNetlist { creator: "Yosys 0.7+195 (git sha1 129984e, clang 3.8.0-2ubuntu4 -fPIC -Os)", modules: {"top": YosysNetlistModule { attributes: {"top": Number(PosInt(1)), "src": String("test.v:1")}, ports: {"b": YosysNetlistPort { direction: "input", bits: [3] }, "q1": YosysNetlistPort { direction: "output", bits: [4] }, "a": YosysNetlistPort { direction: "input", bits: [2] }}, cells: {"$abc$47$auto$blifparse.cc:425:parse_blif$48": YosysNetlistCell { hide_name: 1, cell_type: "$sop", parameters: {"TABLE": Number(PosInt(10)), "WIDTH": Number(PosInt(2)), "DEPTH": Number(PosInt(1))}, attributes: {}, port_directions: {"Y": "output", "A": "input"}, connections: {"Y": [Number(PosInt(4))], "A": [Number(PosInt(2)), Number(PosInt(3))]} }}, netnames: {"a": YosysNetlistNetname { hide_name: 0, bits: [2], attributes: {"src": String("test.v:3")} }, "b": YosysNetlistNetname { hide_name: 0, bits: [3], attributes: {"src": String("test.v:4")} }, "q1": YosysNetlistNetname { hide_name: 0, bits: [4], attributes: {"src": String("test
xc2bit dump
device speed grade: 6
device package: VQ44
device type: XC2C32A
legacy output voltage range: low
legacy input voltage range: low
bank 0 output voltage range: low
bank 1 output voltage range: low
bank 0 input voltage range: low
bank 1 input voltage range: low
@ArcaneNibble
ArcaneNibble / asmbits.asm
Created April 18, 2018 22:11
Code segment trickery / "Heaven's Gate" on Linux
global call_64_from_64
global call_32_from_64
global call_32_from_32
section .text
call_64_from_64:
mov rsi, rdi
mov rax, 1
mov rdi, 1
@ArcaneNibble
ArcaneNibble / asmbits2.asm
Created April 18, 2018 22:33
Calling Linux syscalls from WINE with bonus "Heaven's Gate"
global call_64_from_64
global call_32_from_64
global call_32_from_32
section .text
call_64_from_64:
push rsi
push rdi
mov rax, 1
:020000041D00DD
:1000000014161A392E26392A443E4E314636191115
:100010001846121C1B1E2B1A35384D3E3A20370E3F
:100020000E43111D18203A0D354841344B18180A5B
:10003000140D20252508381C421F4131474C4E180D
:100040000F150D46271831373E0B413A4E214E43CE
:1000500013361D2C2713253430174A0B4E2B424CD8
:100060001A263D3B212D30252F10294A40224F4191
:100070000C32221627092A4A3247320C48384E22BF
:10008000160F152D2E41374D40274E224E3D180597
# import idaapi
# print(idaapi)
# import binascii
# # print(binascii.hexlify(idaapi.netnode('$ original user', 0, False).supval(0)))
# dumped_netnode = 'ca75b28848ea06bcae409699fa2510a03bbaf43bd167eecb17d52918187133a793ebf8d3270230c7164d7a79b53c2c3edd611ede975690784cf2c254abe8b587140d19a3f46b2be109bde1da1b7ed4d7c9f7b58135f2c296db4e86ad29b6f0b999b5599d40c3bae8b29d2cc06ecef63cba0e1b9a9505c1efe9019a7020127e100000000000000000000000000000000000000000000000000000000000000000'
import binascii
#!/usr/bin/env python3
from collections import namedtuple
import socket
import struct
usbip_user_op_common = namedtuple('usbip_user_op_common', 'version code status')
usbip_usb_device = namedtuple('usbip_usb_device', 'path busid busnum devnum speed idVendor idProduct bcdDevice bDeviceClass bDeviceSubClass bDeviceProtocol bConfigurationValue bNumConfigurations bNumInterfaces')
usbip_header_basic = namedtuple('usbip_header_basic', 'command seqnum devid direction ep')
module top(r0, r1, g0, g1, b0, b1, hsync, vsync,
clk_,
but0, but1, but2, but3,
led4);
(* LOC = "FB1_2" *)
output r0;
(* LOC = "FB1_6" *)
output r1;
(* LOC = "FB1_3" *)
@ArcaneNibble
ArcaneNibble / pcbnew
Created July 8, 2020 10:21
KiCad fairyfloss theme
canvas_type=2
Color4DPCBLayer_F.Cu=rgb(255, 133, 127)
Color4DPCBLayer_In1.Cu=rgb(255, 243, 82)
Color4DPCBLayer_In2.Cu=rgb(197, 163, 255)
Color4DPCBLayer_In3.Cu=rgb(194, 0, 0)
Color4DPCBLayer_In4.Cu=rgb(0, 132, 132)
Color4DPCBLayer_In5.Cu=rgb(0, 132, 0)
Color4DPCBLayer_In6.Cu=rgb(0, 0, 132)
Color4DPCBLayer_In7.Cu=rgb(132, 132, 132)
Color4DPCBLayer_In8.Cu=rgb(132, 0, 132)