Vous êtes sur la page 1sur 2

Named Capture Procedures

Lets say we are having 2 clock domains then how to write the testprocedure file?

1) Define timeplates per each clock domain.


2) Write named capture procedures per each clock domain.

Please refer below example for your reference

Testproc file for clk1 domain

timeplate clk1 = // 25 Mhz


force_pi 0 ;
measure_po 10 ;
pulse_clock 20 10 ;
pulse Reset 20 10;
pulse edt_clock 20 10;
pulse scan_reset 20 10;
pulse scan_set 20 10;
period 40 ;
end;
procedure capture clk1_domain
timeplate clk1;
cycle =
force clk1 0;
force clk2 0;
force scan_en 0;
end ;
cycle =
pulse clk1;
end;
cycle =
pulse clk1 ;
end;
end
Test proc file for clk2 domain

timeplate clk2 = // 100 Mhz


force_pi 0 ;
measure_po 3 ;
pulse_clock 5 3;
pulse Reset 5 3;
pulse edt_clock 5 3 ;
pulse scan_reset 5 3;
pulse scan_set 5 3;
period 10 ;
end;

procedure capture clk2_domain


timeplate clk2;
cycle =
force clk1 0;
force clk2 0;
force scan_en 0;
end ;
cycle =
pulse clk2;
end;
cycle =
pulse clk2 ;
end;
end

Vous aimerez peut-être aussi