The Logic Circuits and Computer Architecture Laboratory course is designed to provide hands-on experience with digital logic circuits and computer architecture concepts. The course covers topics such as combinational and sequential logic design, memory systems, processor architecture, and more. The course includes practical projects using both VHDL (VHSIC Hardware Description Language) and Verilog, two of the most widely-used hardware description languages.
The repository includes the following:
- VHDL and Verilog source code files for various laboratory experiments.
- Documentation and explanations for each experiment.
- Supplementary materials and resources.
To use the code in this repository, follow these steps:
- Clone the repository to your local machine using the following command:
- Navigate to the specific experiment directory you are interested in.
- Open the VHDL or Verilog source code file using a VHDL/Verilog simulator or an IDE like ModelSim, Vivado, or VS Code with relevant extensions.
- Follow the instructions provided in the documentation to run and test the experiment.
This repository includes examples in both VHDL and Verilog. To work with the code effectively, we recommend using the following tools and extensions:
To work efficiently with both VHDL and Verilog, consider installing the following extensions in VS Code:
-
VHDL Support
- Provides syntax highlighting, linting, and code snippets for VHDL.
- To install: Open VS Code → Go to Extensions view (
Ctrl+Shift+X
) → Search for "VHDL Support" → Click "Install".
-
VHDL Linter
- Offers error detection, code analysis, and additional features for VHDL.
- Follow the same installation steps as above, searching for "VHDL Linter".
-
Opendigital js
- Enhances VS Code for digital design and Verilog HDL, offering syntax highlighting, code formatting, and linting.
- To install: Open VS Code → Go to Extensions view (
Ctrl+Shift+X
) → Search for "Opendigital js" → Click "Install".
-
Verilog HDL
- Provides support for Verilog with features like syntax highlighting, code snippets, and linting.
- To install: Follow the same installation steps, searching for "Verilog HDL".
For simulation and testing of VHDL and Verilog code, we recommend the following tools:
- ModelSim
- A popular simulator for both VHDL and Verilog, providing a user-friendly interface for compiling and simulating hardware designs.
- Vivado
- An integrated design environment for VHDL/Verilog and FPGA design, offering simulation, synthesis, and implementation tools.
- Choose the relevant source code file (VHDL or Verilog) for the experiment you wish to work on.
- Use a VHDL/Verilog-compatible simulator (e.g., ModelSim or Vivado) to compile and simulate the design.
- Review the simulation results and waveforms to understand the behavior of the digital circuit.
- Modify the code as necessary to experiment with different configurations and designs.
If you would like to contribute to this repository, you can follow these steps:
- Fork the repository to your own GitHub account.
- Create a new branch with a descriptive name for your changes.
- Make the necessary modifications and improvements.
- Commit and push your changes to your forked repository.
- Submit a pull request, explaining the changes you have made.