Skip to content

Instantly share code, notes, and snippets.

View kinosang's full-sized avatar

Chino Chang kinosang

View GitHub Profile
@rikka0w0
rikka0w0 / ft2232_to_digilent_jtag.md
Last active July 16, 2024 10:05
FT2232 to Digilent JTag for Xilinx FPGAs (ISE/Vivado)

The Digilent JTag uses FT2232, but its configuration EEPROM contains secrete data needed to be recoginzed by Xilinx ISE/Vivado. The following method only works on linux (tested on Ubuntu16.04), but the patched FT2232 doggle also works on Windows. Since WSL1 does not provide USB device access, the following method will not work for WSL1.

DONT use FT_Prog on offical Digilent cable, as it can trash the firmware! The offical eeprom contains secrete data that cannot be handled correctly by FT_Prog.

Here are steps to create a Digilent-like Jtag that can be used in Xilinx ISE and Vivado

  1. Install softwares: sudo apt-get install libftdi1 ftdi-eeprom
  2. Create a file "flash_digilent.conf" with the following content:
@orzFly
orzFly / which.c
Created April 4, 2014 14:42
very simple "which" alternative for Windows
#include <stdio.h>
#include <windows.h>
int main(int argc, char **argv)
{
if (argc == 2)
{
char path[MAX_PATH];
HINSTANCE ret = FindExecutable(argv[1], 0, path);
if ((int)ret > 32)
@plentz
plentz / nginx.conf
Last active July 22, 2024 11:19
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048