nansity
Newbie level 4
void solve(void){
int temp,temp1,velo;
{
velo=temp*36;
DISBUF[2]=(velo/1000);
temp1 =(velo%1000);
DISBUF[1]=(temp1/100);
}
}
This is a some of C code for separate the number and sent it to 7-segment.
Would you please help me translate it in VHDL. I want to send the number to
7-segment such as show "5462" at the same time.
Thanks in Advices
int temp,temp1,velo;
{
velo=temp*36;
DISBUF[2]=(velo/1000);
temp1 =(velo%1000);
DISBUF[1]=(temp1/100);
}
}
This is a some of C code for separate the number and sent it to 7-segment.
Would you please help me translate it in VHDL. I want to send the number to
7-segment such as show "5462" at the same time.
Thanks in Advices