Instantly share code, notes, and snippets.
- Georgia Tech
- Atlanta, GA, US
- https://sites.google.com/view/saursin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
################################################################################ | |
# Script to disassemble RISC-V instructions | |
# 1) CLI Usage: | |
# riscv_dism.py <hex_instruction> | |
# | |
# 2) Piped Usage: | |
# <command> | riscv_dism.py | |
# | |
# Using with GTKWave: |
saursin /setup_sst_github.sh
Last activeFebruary 26, 2025 19:30
Structural Simulation Toolkit (SST) Setup Script This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
#! /bin/bash | |
set -e | |
################################################################################ | |
# SST Installation Script | |
################################################################################ | |
# 1. Sets up SST in current directory | |
# 2. Installs necessary tools in home | |
# 3. Generates a environemnt setup script | |
# 4. Generates a build script |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
################################################################################ | |
# A Simple Bashrc for dev containers | |
clr_blk="\[\033[01;30m\]"# Black | |
clr_red="\[\033[01;31m\]"# Red | |
clr_grn="\[\033[01;32m\]"# Green | |
clr_ylw="\[\033[01;33m\]"# Yellow | |
clr_blu="\[\033[01;34m\]"# Blue | |
clr_mgn="\[\033[01;35m\]"# Purple | |
clr_cyn="\[\033[01;36m\]"# Cyan |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
function [binVec,sign,exponent,mantessa]= ieee754(num,fmt) | |
% Converts a single/double precision floating point number to its | |
% bitvector representation. | |
% Usage : | |
% [binVec, sign , exponent, mantessa] = ieee754(X, fmt) | |
% | |
% X : single/double precision floating point number. | |
% fmt : target format, can be 'single' or 'double'. | |
% | |
% binVec : 32/64 bit binary vector. |