Skip to content

Instantly share code, notes, and snippets.

View gustavohleal's full-sized avatar

Gustavo Henrique Leal gustavohleal

View GitHub Profile
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/$USER/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# Navigation aliases
alias faculdade='cd ~/Documents/Faculdade/2_semestre/'
alias proj='cd ~/Documents/Projetos/'
# Work aliases
# Insert here alias for compile and/or run files
alias vhdoc='echo "Documentando..." ;
vhdocl *.vhd --latex -q -r --eyecandy -o ../docs/vhdoc;
echo "Documentação criada."'
@gustavohleal
gustavohleal / run.sh
Created October 23, 2018 23:41 — forked from debemdeboas/run.sh
VHDL Compiler and Simulator
#!/bin/bash
echo "Checking syntax..."
ghdl -s --ieee=synopsys full_adder.vhd cla_4bits.vhd sum_cla_8b.vhd sub_cla_8b.vhd cod.vhd ULA.vhd ULA_tb.vhd
ghdl -a --ieee=synopsys full_adder.vhd cla_4bits.vhd sum_cla_8b.vhd sub_cla_8b.vhd cod.vhd ULA.vhd ULA_tb.vhd
echo "Generating executable file..."
ghdl -e --ieee=synopsys ulatb
ghdl -r --ieee=synopsys ulatb --vcd=ulatbwave.vcd
echo "Opening gtkwave..."
gtkwave -o -g ulatbwave.vcd
@gustavohleal
gustavohleal / download-buidl-and-install-ghdl.sh
Created October 20, 2018 14:37 — forked from mathieucaroff/download-buidl-and-install-ghdl.sh
Download build and install GHDL on Ubuntu 18.04 (tested 2018-09-28)
#!/bin/sh
#
# download-buidl-and-install-ghdl.sh
#
# It took about 5 minutes on my laptop (2018-09-28).
sudo apt update
sudo apt install -y git make gnat zlib1g-dev
git clone https://github.com/ghdl/ghdl
cd ghdl
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on