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;
Algorithm 2: VHDL process enriched with scan code.