int basic_flipflop(variable_1, set, reset)
int flag_0;
if(reset == 1)
{
flag_0 = 0;
}
else if(set == 1)
{
flag_0 = 1;
}
else
{
flag_0 = variable_1 ;
}
variable_1 = flag_0 ;
return flag_0;
}
set reset output
1 0 1(true)
0 1 0(false)
0 0 not chang ( 입력된 variable_1값 고대로 출력
1 1 invalid
0 댓글