Skip to content

Instantly share code, notes, and snippets.

View lcvisser's full-sized avatar

Ludo Visser lcvisser

View GitHub Profile
@lcvisser
lcvisser / runge-kutta-nystrom-45.py
Created March 20, 2022 14:38
A Runge-Kutta Nyström implementation of order 5 with adaptive step size
from typing import Callable, Optional, Tuple
import numpy as np
from nptyping import Array
def rkn45(t0: float,
tf:float,
h0: float,
@lcvisser
lcvisser / axi_led_ctrl.vhd
Last active December 12, 2021 20:38
AXI master reproducing the switch/button/led demo for Arty-A7
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity axi_led_ctrl is
port (
-- General
M_AXI_ACLK : in std_logic;
M_AXI_ARESETN : in std_logic;
@lcvisser
lcvisser / axi_led_ctrl.vhd
Created October 24, 2021 16:01
Simple AXI master for LED control
----------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 03.10.2021 19:41:50
-- Design Name:
-- Module Name: axi_led_ctrl - Behavioral
-- Project Name:
-- Target Devices:
-- Tool Versions:
@lcvisser
lcvisser / qemu-hello.Makefile
Created May 23, 2021 12:45
Makefile For QEMU ARM "Hello, world" example.
all: flash.img
hello.o: hello.s
arm-none-eabi-as -g -o hello.o hello.s
hello.elf: hello.o
arm-none-eabi-ld -Ttext=0x0 -o hello.elf hello.o
hello.bin: hello.elf
arm-none-eabi-objcopy -O binary hello.elf hello.bin