B
Brad Smallridge
Guest
Hi folks,
How does one write this code cleanly?
if( segment_pointer_count="111111111" ) then
segment_pointer_count <= "000000001"; -- skip zero
else
segment_pointer_count <= segment_pointer_count+1;
end if;
That is, with something that is length independent.
Thanks,
Brad Smallridge
b r a d @ a i v i s i o n . c o m
How does one write this code cleanly?
if( segment_pointer_count="111111111" ) then
segment_pointer_count <= "000000001"; -- skip zero
else
segment_pointer_count <= segment_pointer_count+1;
end if;
That is, with something that is length independent.
Thanks,
Brad Smallridge
b r a d @ a i v i s i o n . c o m