top_level.v 1.37 KB
////////////////////////////////////////////////////////////////////////
//
// 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