Appendix B. Verilog Code

Included in this section is the Verilog code for the six circuits written for this project. Each was written with a certain amount of structure so that the resulting implementations would have the structure described in Chapter 3.

B.1. 16-Bit Adder

B.2. 16-Bit Barrel Shifter

B.3. 8-Bit Multiplier

B.4. Stoplight

B.5. Life

B.6. DNA Comparator