Refactor RGB to Grayscale Converter and Add Divider Component

- Updated the rgb2gray.vhd file to improve readability and structure, including consistent casing for keywords and signals.
- Implemented a new divider_by_3 component to calculate the grayscale value by dividing the sum of RGB channels by 3.
- Enhanced the state machine in rgb2gray to handle RGB input and output grayscale values correctly.
- Updated the Vivado project file to include the new divider_by_3.vhd for synthesis and simulation.
- Modified vhdl_ls.toml to include unisim files for third-party library support.
This commit is contained in:
2025-04-11 01:50:19 +02:00
parent 0912887822
commit 0d805b93b6
5 changed files with 643 additions and 633 deletions

View File

@@ -11,7 +11,7 @@ lab1_lib.files = [
]
lab2_lib.files = [
"LAB2/src/**/*.vhd",
"LAB2/src/*.vhd",
"LAB2/sim/**/*.vhd"
]
@@ -23,4 +23,9 @@ lab2_lib.files = [
xpm.files = [
"C:/Xilinx/Vivado/2020.2/data/ip/xpm/xpm_VCOMP.vhd"
]
xpm.is_third_party = true
xpm.is_third_party = true
unisim.files = [
"C:/Xilinx/Vivado/2020.2/data/vhdl/src/unisims/**/*.vhd"
]
unisim.is_third_party = true