SUBDESIGN cal_2079 ( CLK : INPUT; CLR : INPUT; Sample_End : OUTPUT; ) VARIABLE COUNT[12..0] : DFF; BEGIN COUNT[].clrn = !CLR; COUNT[].clk = CLK; IF COUNT[]<2079 THEN COUNT[]=COUNT[]+1; Sample_End = VCC; ELSE COUNT[]=COUNT[]; Sample_End = GND; END IF; END;
|