URL
https://opencores.org/ocsvn/ima_adpcm_enc_dec/ima_adpcm_enc_dec/trunk
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 3 |
Line 120... |
Line 120... |
// check the difference sign
|
// check the difference sign
|
if (sampDiff[19])
|
if (sampDiff[19])
|
begin
|
begin
|
// set PCM sign bit and negate the calculated sample difference
|
// set PCM sign bit and negate the calculated sample difference
|
prePCM[3] <= 1'b1;
|
prePCM[3] <= 1'b1;
|
sampDiff <= (~sampDiff) + 1;
|
sampDiff <= (~sampDiff) + 20'd1;
|
end
|
end
|
else
|
else
|
// clear the PCM sign bit
|
// clear the PCM sign bit
|
prePCM[3] <= 1'b0;
|
prePCM[3] <= 1'b0;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.