File: lshift.v

package info (click to toggle)
tkgate 2.1%2Brepack-7
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 28,808 kB
  • sloc: ansic: 62,300; tcl: 20,345; xml: 2,731; yacc: 1,177; lex: 839; sh: 701; makefile: 187; perl: 39
file content (13 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
module lshift #(.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);
   
endmodule // lshift