Project 1

Implement the following logic gates by writing an HDL file for each. Start with the HDL templates provided. Be sure to test your implementations with the corresponding test scripts.

You may only use the builtin Nand gate and any other gates you correctly implement during this project.

Gates to implement

Download a ZIP file containing all of the above, including files for gates that I am not asking you to implement.


A gate is considered correct if it passes all of the tests defined in its corresponding .tst script and .cmp comparison output.

Extra credit

If you implement your gates with the fewest low-level gates possible (fewest “PARTS” in the HDL file), you receive extra credit.

CSCI 201 material by Joshua Eckroth is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. Source code for this website available at GitHub.