Skip to content

Instantly share code, notes, and snippets.

View ronejfourn's full-sized avatar
💭
rewriting history

ronejfourn

💭
rewriting history
View GitHub Profile
@ronejfourn
ronejfourn / convcode.py
Created June 20, 2024 17:17
1/k Code Rate Convolutional Code
"""
1/k Code Rate Convolutional Code Encoding and Decoding
Finite State Machine is used for encoding
Viterbi Decoder is used for decoding
Zero Tail Termination is used for making choice
of final state easier
"""
class ConvCode:
@ronejfourn
ronejfourn / tbgen.py
Last active June 20, 2024 16:52
Simple Verilog Testbench Boilerplate Generator
#!/bin/python3
import sys, re
def fatal(r):
print("tbgen: fatal:", r)
exit(1)
def warn(r):
print("tbgen: warning:", r)
@ronejfourn
ronejfourn / 3D_demo.c
Last active August 27, 2023 08:05
graphics.h 3D Transformations Demo
#include <dos.h>
#include <math.h>
#include <conio.h>
#include <stdio.h>
#include <graphics.h>
typedef struct {
float x, y, z;
} Vec3;