Created a gate-based implementation of ram5_12