Interview Question 9: Logic to find out number of data chunks
In one of my past back-plane design I implemented a store and forward logic. The packet data was sent in chunks of 64 bytes. One chunks consisted of 62 byte of payload and 2 bytes of data which contained other useful information like pointers to other chunks, actual payload bytes in that chunk, and QOS related tags.
Can you design a smallest logic to find out the number of chunks needed for supplied packet payload?
No comments:
Post a Comment