Home › Practice › RTL Design › Cut-through vs store-and-forward stage
Cut-through vs store-and-forward stage
EasyRTLHFTsequential
Low-latency network switches and UDP echo engines save cycles using cut-through forwarding: instead of waiting a clock cycle inside a register, incoming data goes straight out through a mux.
Concept first. Inside this block, flip-flops still capture din and din_v on every rising clock edge (producing the 1-cycle registered copy). A bypass select chooses between the live inputs (0-cycle cut-through) and the registered copy (1-cycle store-and-forward). After passing, click Check area and speed to see the setup slack of the registered path.
- On rising
clk: if synchronous active-highrst=1, clear internal registersr_dataandr_vto 0; else capturedinanddin_v. - When
bypass=1,dout = dinanddout_v = din_vcombinationally. - When
bypass=0,dout = r_dataanddout_v = r_v.
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.