CPU is a project mainly written in Java, it's free.
CPU Circuit library for the RedstoneChips integrated circuits plugin