Digital logic HLSM Diagram

Thread Starter

cmsitoula

Joined Oct 18, 2019
3
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;
}
 

WBahn

Joined Mar 31, 2012
24,974
First you need to tell us what constitutes a "High-Level State Machine"?

Sounds like something that a particular author decided to use as a convention for their book (although it could certainly be much more widely used than that).
 
Top