hamming fix

This commit is contained in:
2024-11-06 15:43:10 +03:00
parent 1ec83b26a1
commit 7466f916d3
4 changed files with 56 additions and 49 deletions

View File

@ -9,7 +9,7 @@ integer i = 0;
always @(*) begin
hammingValue = 0;
for(i = 0; i < 8; i = i+1) begin
if (value1[i] == value2[i]) begin
if (value1[i] != value2[i]) begin
hammingValue = hammingValue + 1;
end
end