Three-way divider written in VHDL language