Skip to content

Instantly share code, notes, and snippets.

View dan-rodrigues's full-sized avatar

Dan dan-rodrigues

View GitHub Profile
@dan-rodrigues
dan-rodrigues / helloworld.c
Last active June 10, 2024 08:10
neo homebrew sample
#include <stdint.h>
#include <stdbool.h>
// Reg defines, to extract to some header
#define REG_VRAMADDR (*((volatile uint16_t *)0x3c0000))
#define REG_VRAMDATA (*((volatile uint16_t *)0x3c0002))
#define REG_VRAMINC (*((volatile uint16_t *)0x3c0004))
#define REG_LSPCMODE (*((volatile uint16_t *)0x3c0006))
@dan-rodrigues
dan-rodrigues / ContentView.swift
Last active December 11, 2020 07:19 — forked from kellylougheed/ContentView.swift
SwiftUI app for a paint canvas
//
// ContentView.swift
// 2Darrays
//
// Created by Kelly Lougheed on 12/3/20.
//
// @drr: Minor changes to replace global variable with @StateObject that can be modified through @Binding
import SwiftUI
@dan-rodrigues
dan-rodrigues / ramdemo.py
Created November 12, 2020 07:57
OpenRAM 1024 x 8 error
|==============================================================================|
|========= OpenRAM v1.1.6 =========|
|========= =========|
|========= VLSI Design and Automation Lab =========|
|========= Computer Science and Engineering Department =========|
|========= University of California Santa Cruz =========|
|========= =========|
|========= Usage help: openram-user-group@ucsc.edu =========|
|========= Development help: openram-dev-group@ucsc.edu =========|
|========= Temp dir: /tmp/openram_dan.rodrigues_27828_temp/ =========|
// vdp_affine_layer.v
//
// Copyright (C) 2020 Dan Rodrigues
//
// SPDX-License-Identifier: MIT
`default_nettype none
module vdp_affine_layer #(
parameter VRAM_READ_LATENCY = 3
@dan-rodrigues
dan-rodrigues / infer_mac_test.v
Last active May 5, 2020 08:05
Yosys SB_MAC16 multiply-add test
`default_nettype none
module infer_mac_test(
input clk,
input signed [15:0] pretranslate_x,
input signed [15:0] pretranslate_y,
input signed [15:0] translate_x,