Skip to content

Instantly share code, notes, and snippets.

View boogermann's full-sized avatar
🎮
Creating Rætro

Marcus Andrade boogermann

🎮
Creating Rætro
View GitHub Profile
@boogermann
boogermann / minimalDVID_encoder.v
Created January 8, 2021 16:58 — forked from uXeBoy/minimalDVID_encoder.v
minimalDVID_encoder.v
`default_nettype none // disable implicit definitions by Verilog
//-----------------------------------------------------------------
// minimalDVID_encoder.vhd : A quick and dirty DVI-D implementation
//
// Author: Mike Field <[email protected]>
//
// DVI-D uses TMDS as the 'on the wire' protocol, where each 8-bit
// value is mapped to one or two 10-bit symbols, depending on how
// many 1s or 0s have been sent. This makes it a DC balanced protocol,
// as a correctly implemented stream will have (almost) an equal
@boogermann
boogermann / ft2232_to_digilent_jtag.md
Created March 14, 2021 01:05 — forked from rikka0w0/ft2232_to_digilent_jtag.md
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:
@boogermann
boogermann / busybox.config
Created March 25, 2021 21:53
Busybox config for DE10 Nano (MiSTer)
#
# Automatically generated make config: don't edit
# Busybox version: 1.31.1
# Tue Apr 14 03:46:10 2020
#
CONFIG_HAVE_DOT_CONFIG=y
#
# Settings
#
@boogermann
boogermann / de10_nano_defconfig
Created March 25, 2021 21:55
Buildtroot config for DE10 Nano (MiSTer)
BR2_cortex_a9=y
BR2_ARM_ENABLE_NEON=y
BR2_ARM_ENABLE_VFP=y
BR2_ARM_FPU_NEON=y
BR2_DL_DIR="/opt/cache/buildroot"
BR2_HOST_DIR="/opt/raetro-sdk"
BR2_JLEVEL=12
BR2_CCACHE=y
BR2_CCACHE_DIR="/opt/cache/.buildroot-ccache"
BR2_OPTIMIZE_3=y
@boogermann
boogermann / reverse_bits.c
Created September 19, 2022 15:56
Reverse Bits
/*******************************************************************************
* SPDX-License-Identifier: CC0-1.0
* SPDX-FileType: SOURCE
* SPDX-FileCopyrightText: (c) 2022, Public Domain
******************************************************************************/
#include <cstdint>
#include <cstdio>
#include <cstdlib>
@boogermann
boogermann / Add_WindowsDefender_Exclusions.ps1
Created June 2, 2024 01:38 — forked from dkorobtsov/Add_WindowsDefender_Exclusions.ps1
PowerShell script to add Windows Defender exclusions for WSL2 and JetBrains IDE performance issues
# PowerShell script to add Windows Defender exclusions for WSL2 and JetBrains IDE performance issues
#
# For context please read this thread:
# https://github.com/microsoft/WSL/issues/8995
#
# How to use?
# - Save the Script: Open a text editor like Notepad and paste the PowerShell script into it.
# - Save the file with a .ps1 extension, for example, Add_WindowsDefender_Exclusions.ps1.
# - Run PowerShell as Administrator: Search for "PowerShell" in the Start menu, right-click on it, and choose "Run as administrator".
# - Navigate to the Script's Location: Use the cd command to navigate to the directory where you saved the .ps1 file.