Welcome to the Verilog Code Repository! This repository contains a collection of Verilog modules, testbenches, and simulation files for digital design projects. These designs range from simple logic gates to more complex components like ALUs, FSMs, and CPUs.
To work with the files in this repository, you need the following tools:
- Verilog Simulator (e.g., Icarus Verilog, ModelSim, or Vivado)
- GTKWave (for waveform viewing)
- Text Editor or IDE (e.g., VS Code, Vivado, or Quartus)
-
Clone the repository: git clone https://github.com/your-username/verilog-code.git cd verilog-code
-
Compile Verilog code using Icarus Verilog: iverilog -o output.out src/your_module.v tb/your_module_tb.v
-
Run simulation: vvp output.out
-
View waveform (if applicable): gtkwave dump.vcd
📚 Contents
- src/: Contains the main Verilog modules.
- tb/: Includes testbenches for verifying each module.
- sim/: Output files from simulations and waveform files.
- docs/: Block diagrams, flowcharts, and design documentation.
📌 Notes
- Each module is self-contained with a corresponding testbench.
- All modules are written in Verilog HDL and follow standard coding conventions.
- Please refer to individual module comments for functionality.
🤝 Contributing
Pull requests are welcome! If you want to contribute, please fork the repository and create a new branch.
📄 License
This repository is open-source and available under the MIT License.