use Nix devenv to manage project environment

This commit is contained in:
2024-09-09 21:35:00 +08:00
parent 042e5b1aac
commit 61b91e0688
6 changed files with 211 additions and 3 deletions

4
Color/SaturationCorrection.sv Normal file → Executable file
View File

@@ -116,8 +116,8 @@ module SaturationCorrection #(
calState <= 3;
end else if (calState == 3) begin
alpha <= (saturation_inc[31] == 0) ? ((saturation_inc + saturation >= 256)
? (65536 / saturation) - 256 : (65536 / (256 - saturation_inc)) - 256)
alpha <= (saturation_inc[31] == 0) ? ((saturation_inc + saturation >= 255)
? (65536 / saturation) - 255 : (65536 / (256 - saturation_inc)) - 255)
: (saturation_inc);
calState <= 4;