File: lofptst.v

package info (click to toggle)
gplcver 2.12a-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,604 kB
  • ctags: 9,129
  • sloc: ansic: 126,201; sh: 1,539; makefile: 86; perl: 22
file content (18 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module test #(parameter integer p1 = 5, parameter p2 = 7,
 parameter r1 = 7.3) (
 input [7:0] a,
 input signed [7:0] b, c, d, // multiple port that share attributes
 output [7:0] e,
 output signed [7:0] f,g,
 output signed [7:0] h) ;

 task my_task(input a, b, inout c, output signed [15:0] d, e);
  begin
   c = a;
   d = f;
   e= 2*f;
  end
 endtask

endmodule