/usr/share/tkgate/primitives/roll.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 | module roll #(.Dsz(1), .Diz(1)) (I, Z , S);
input ${IZ_RANGE} I;
input ${S_RANGE} S;
output ${IZ_RANGE} Z;
specify
(I *> Z) = Diz;
(S *> Z) = Dsz;
endspecify
assign Z = ${invZ} ((I << (S % ${IZ_BITS})) | (I >> ((${IZ_BITS} - S) % ${IZ_BITS})));
endmodule // lshift
|