s3034585
Full Member level 4
hi guys
i am trying to understand a code segment in a vhdl example program
can any one please explain the exact operation of these lines
for i in 0 to 15 loop
Reference( 128-1)<= Reference_Temp(128-1) xor Result(i) ;
Mask ( Ks_Width-1)<= Mask_temp ( Ks_Width-1) and Reference( 128-1);
Comparison_Result_Temp(i) <= Comparison_Result_Temp(i) or ( Mask_Temp(128-1) and ( Reference_Temp(128-1) xor Result(i) ) );
end loop;
in this for loop i am not able to understad the xor operation as result is one bit and it is being xored with a 128 bit array. so my question is that wether this single bit is xored with all the 128 bits or just a single bit
please help
thank
tama
i am trying to understand a code segment in a vhdl example program
can any one please explain the exact operation of these lines
for i in 0 to 15 loop
Reference( 128-1)<= Reference_Temp(128-1) xor Result(i) ;
Mask ( Ks_Width-1)<= Mask_temp ( Ks_Width-1) and Reference( 128-1);
Comparison_Result_Temp(i) <= Comparison_Result_Temp(i) or ( Mask_Temp(128-1) and ( Reference_Temp(128-1) xor Result(i) ) );
end loop;
in this for loop i am not able to understad the xor operation as result is one bit and it is being xored with a 128 bit array. so my question is that wether this single bit is xored with all the 128 bits or just a single bit
please help
thank
tama