top_level.v
1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module: top_level
// description: Top Level Driver
//
// designer: Rob Moore
// date: 8/31/94
//
////////////////////////////////////////////////////////////////////////
`timescale 10ps / 10ps //1unit = 0.01ns
module top_level();
wire [3:0] cv_value;
wire mask15;
wire [1:0] x_offset, y_offset;
wire [12:0] ew_cv_data;
wire [11:0] ew_cv_start_x;
wire cycle_type; // lsb of cycle_type
wire ew_cv_newspan, left, reset_l, gclk;
// instance driver
driver driver(.cv_value(cv_value), .mask15(mask15), .x_offset(x_offset), .y_offset(y_offset),
.ew_cv_data(ew_cv_data), .ew_cv_start_x(ew_cv_start_x),
.cycle_type(cycle_type),
.ew_cv_newspan(ew_cv_newspan), .left(left), .reset_l(reset_l), .gclk(gclk));
// instance coverage unit
cv cv( .cv_value(cv_value), .mask15(mask15), .x_offset(x_offset), .y_offset(y_offset),
.ew_cv_data(ew_cv_data), .ew_cv_start_x(ew_cv_start_x),
.cycle_type(cycle_type),
.ew_cv_newspan(ew_cv_newspan), .left(left), .reset_l(reset_l), .gclk(gclk));
// kill simulation when tabular file read
always @(driver.EndVectors)
$finish;
// dump file
// initial
// begin
// $dumpvars;
// end
endmodule // top_level