I need help on this. I am stocked.. How to Convert the given C code to a High-Level State Machine (Draw HLSM diagram)without optimizing or changing the code, simply by listing all local storage (including its size (number of bits)) that used in HLSM.
inputs: byte A[64], go (1 bit),
Outputs: count (8 bits), done (1 bit)
while(1) {
while(!go);
done = 0;
count = 0;
i = 0;
while(i < 64){
temp = A;
if((temp > 47) && (temp <58))
{
count++;
A = temp - 48;
}
i = i + 1;
}
done = 1;
}
inputs: byte A[64], go (1 bit),
Outputs: count (8 bits), done (1 bit)
while(1) {
while(!go);
done = 0;
count = 0;
i = 0;
while(i < 64){
temp = A;
if((temp > 47) && (temp <58))
{
count++;
A = temp - 48;
}
i = i + 1;
}
done = 1;
}