Refactor PulseWidthModulator entity parameters and update README for project setup
This commit is contained in:
@@ -33,10 +33,10 @@ use IEEE.NUMERIC_STD.ALL;
|
|||||||
|
|
||||||
entity PulseWidthModulator is
|
entity PulseWidthModulator is
|
||||||
Generic(
|
Generic(
|
||||||
BIT_LENGTH : INTEGER RANGE 1 to 16 := 8;
|
BIT_LENGTH : INTEGER RANGE 1 to 16 := 8
|
||||||
T_ON_INIT : POSITIVE := 64;
|
-- T_ON_INIT : POSITIVE := 64;
|
||||||
PERIOD_INIT : POSITIVE := 128;
|
-- PERIOD_INIT : POSITIVE := 128;
|
||||||
PWM_INIT : STD_LOGIC := '0'
|
-- PWM_INIT : STD_LOGIC := '0'
|
||||||
);
|
);
|
||||||
Port (
|
Port (
|
||||||
reset : IN STD_LOGIC;
|
reset : IN STD_LOGIC;
|
||||||
|
|||||||
34
README.md
34
README.md
@@ -33,18 +33,17 @@ The course focuses on:
|
|||||||
### Clone the Repository
|
### Clone the Repository
|
||||||
To get started with this project, follow these steps:
|
To get started with this project, follow these steps:
|
||||||
|
|
||||||
1. Open a terminal (e.g., Command Prompt or PowerShell) on your Windows machine.
|
1. Open a terminal (e.g., Command Prompt or PowerShell) on your Windows machine.
|
||||||
2. Navigate to the `C:\` directory:
|
2. Clone the repository using Git:
|
||||||
```cmd
|
|
||||||
cd C:\
|
|
||||||
```
|
|
||||||
3. Clone the repository using Git:
|
|
||||||
```cmd
|
```cmd
|
||||||
git clone https://git.cdtech.duckdns.org/PickleRick/DESD.git
|
git clone https://git.cdtech.duckdns.org/PickleRick/DESD.git
|
||||||
```
|
```
|
||||||
This will create a folder named `DESD` in `C:\`.
|
This will create a folder named `DESD`.
|
||||||
|
3. Open the folder `\DESD` in [Visual Studio Code](https://code.visualstudio.com/).
|
||||||
|
|
||||||
4. Open the folder `C:\DESD` in [Visual Studio Code](https://code.visualstudio.com/).
|
> ⚠️ **Warning**:
|
||||||
|
> The folder structure in the repository may not match the Vivado project structure.
|
||||||
|
> If you encounter issues with missing or mismatched files in Vivado, refer to the [Replacing Files in Vivado](#replacing-files-in-vivado) section to update the project with the correct files.
|
||||||
|
|
||||||
### Install VHDL Extension
|
### Install VHDL Extension
|
||||||
To work with VHDL files in Visual Studio Code, install the **VHDL LS** extension:
|
To work with VHDL files in Visual Studio Code, install the **VHDL LS** extension:
|
||||||
@@ -55,5 +54,24 @@ To work with VHDL files in Visual Studio Code, install the **VHDL LS** extension
|
|||||||
4. Click **Install** on the extension by [Håkon Bohlin](https://marketplace.visualstudio.com/items?itemName=hbohlin.vhdl-ls).
|
4. Click **Install** on the extension by [Håkon Bohlin](https://marketplace.visualstudio.com/items?itemName=hbohlin.vhdl-ls).
|
||||||
5. Restart Visual Studio Code to activate the extension.
|
5. Restart Visual Studio Code to activate the extension.
|
||||||
|
|
||||||
|
### Open Projects in Vivado
|
||||||
|
To open and work with the Vivado projects included in this repository:
|
||||||
|
|
||||||
|
1. Launch **Xilinx Vivado 2020.2**.
|
||||||
|
2. Click on **Open Project** in the Vivado start screen.
|
||||||
|
3. Navigate to the desired project directory (e.g., `LABx/vivado/project_folder/`) and select the `.xpr` file.
|
||||||
|
4. Once the project is loaded, you can explore the design, run simulations, or synthesize the project.
|
||||||
|
|
||||||
|
#### Replacing Files in Vivado
|
||||||
|
If the folder structure in the repository does not match the Vivado project structure:
|
||||||
|
|
||||||
|
1. Open the Vivado project as described above.
|
||||||
|
2. In the **Sources** tab, right-click on the file you want to replace and select **Replace File**.
|
||||||
|
3. Navigate to the correct file in the repository (e.g., `LABx/src/`) and select it.
|
||||||
|
4. Ensure the file is added to the correct hierarchy (e.g., as a design source or constraint file).
|
||||||
|
5. Save the project and re-run synthesis or simulation as needed.
|
||||||
|
|
||||||
|
By following these steps, you can ensure that the Vivado project is correctly configured and up-to-date with the repository files.
|
||||||
|
|
||||||
## 📬 Contact
|
## 📬 Contact
|
||||||
For any questions or issues open an issue in this repository.
|
For any questions or issues open an issue in this repository.
|
||||||
25
vhdl_ls.toml
25
vhdl_ls.toml
@@ -1,35 +1,26 @@
|
|||||||
[server]
|
[server]
|
||||||
enable = true
|
enable = true
|
||||||
|
|
||||||
[files]
|
|
||||||
# Specify base directories for all projects
|
|
||||||
library_dirs = [
|
|
||||||
"C:/DESD/LAB0/",
|
|
||||||
"C:/DESD/LAB1/",
|
|
||||||
"C:/DESD/LAB2/",
|
|
||||||
"C:/DESD/LAB3/"
|
|
||||||
]
|
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
# Assign separate libraries for each project
|
# Assign separate libraries for each project
|
||||||
lab0_lib.files = [
|
lab0_lib.files = [
|
||||||
"C:/DESD/LAB0/src/**/*.vhd",
|
"LAB0/src/**/*.vhd",
|
||||||
"C:/DESD/LAB0/sim/**/*.vhd"
|
"LAB0/sim/**/*.vhd"
|
||||||
]
|
]
|
||||||
|
|
||||||
lab1_lib.files = [
|
lab1_lib.files = [
|
||||||
"C:/DESD/LAB1/src/**/*.vhd",
|
"LAB1/src/**/*.vhd",
|
||||||
"C:/DESD/LAB1/sim/**/*.vhd"
|
"LAB1/sim/**/*.vhd"
|
||||||
]
|
]
|
||||||
|
|
||||||
# lab2_lib.files = [
|
# lab2_lib.files = [
|
||||||
# "C:/DESD/LAB2/src/**/*.vhd",
|
# "LAB2/src/**/*.vhd",
|
||||||
# "C:/DESD/LAB2/sim/**/*.vhd"
|
# "LAB2/sim/**/*.vhd"
|
||||||
# ]
|
# ]
|
||||||
|
|
||||||
# lab3_lib.files = [
|
# lab3_lib.files = [
|
||||||
# "C:/DESD/LAB3/src/**/*.vhd",
|
# "LAB3/src/**/*.vhd",
|
||||||
# "C:/DESD/LAB3/sim/**/*.vhd"
|
# "LAB3/sim/**/*.vhd"
|
||||||
# ]
|
# ]
|
||||||
|
|
||||||
[analyses]
|
[analyses]
|
||||||
|
|||||||
Reference in New Issue
Block a user