Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codenkoffee/clock-simulation

VHDL simulation of a digital clock for the CSEN605 course at the German University in Cairo. Includes clock generation and stimulus processes.
https://github.com/codenkoffee/clock-simulation

vhdl-code

Last synced: 3 days ago
JSON representation

VHDL simulation of a digital clock for the CSEN605 course at the German University in Cairo. Includes clock generation and stimulus processes.

Awesome Lists containing this project

README

        

# Digital Clock Simulation

This project is a VHDL simulation of a digital clock, created as part of the CSEN605 course at the German University in Cairo.

## Project Structure

- **Entity**: `digital_clock_tb`
- **Architecture**: `behavioral`
- **Signals**:
- `clk`: Clock signal
- `reset`: Reset signal
- `seconds`: Seconds counter
- `minutes`: Minutes counter
- `hours`: Hours counter
- **Constants**:
- `clk_period`: Clock period (adjustable for desired frequency)

## Processes

Clock Generation Process

Generates the clock signal by toggling `clk` every half period.

### Stimulus Process

Applies a reset signal for a few clock cycles and then lets the clock run indefinitely.

## Usage

To run the simulation, use a VHDL simulator such as ModelSim or GHDL. Load the digital_clock_tb entity and observe the behavior of the clock signals.

## License

This project is for educational purposes only and does not have a specific license.