Research Article

A Graph-Based Approach to Optimal Scan Chain Stitching Using RTL Design Descriptions

Algorithm 2

VHDL process enriched with scan code.
process(clock)
begin
 if clock’ event and clock=‘1’ then
  if scan_en=‘1’ then
    ;
    ;
  else
    or Y;
    and Y;
  endif;
 end if;
end process;