/usr/share/tkgate/primitives/clock.v is in tkgate-data 2.0~b10-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | module clock (Z);
output Z;
reg Z = ${invZ} 1'b${INITIAL};
initial #${PHASE}
if (${INITIAL} == 0)
forever
begin
Z = ${invZ} 1'b1;
#${ON_TIME};
Z = ${invZ} 1'b0;
#${OFF_TIME};
end
else
forever
begin
Z = ${invZ} 1'b0;
#${OFF_TIME};
Z = ${invZ} 1'b1;
#${ON_TIME};
end
endmodule // clock
|