OpenCores
URL https://opencores.org/ocsvn/bluespec-h264/bluespec-h264/trunk

Subversion Repositories bluespec-h264

[/] [bluespec-h264/] [trunk/] [src_verilog/] [top.v] - Blame information for rev 100

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 83 jamey.hick
 
2
// The MIT License
3
 
4
// Copyright (c) 2006-2007 Massachusetts Institute of Technology
5
 
6
// Permission is hereby granted, free of charge, to any person obtaining a copy
7
// of this software and associated documentation files (the "Software"), to deal
8
// in the Software without restriction, including without limitation the rights
9
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
// copies of the Software, and to permit persons to whom the Software is
11
// furnished to do so, subject to the following conditions:
12
 
13
// The above copyright notice and this permission notice shall be included in
14
// all copies or substantial portions of the Software.
15
 
16
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
// THE SOFTWARE.
23
 
24 48 jamey.hick
module top;
25
 
26
  reg clk   = 0;
27
  reg reset = 0;
28 96 jamey.hick
  integer i = 0;
29
 
30
   always@(*)
31
     begin
32
       #5 clk <= ~clk; // this corresponds to 10ns duty cycle?
33
     end
34 48 jamey.hick
 
35
  mkTH th( .CLK(clk), .RST_N(reset) );
36
 
37
  initial
38
  begin
39
    // This turns on VCD (plus) output
40 96 jamey.hick
    //$sdf_annotate("./top.sdf",th.h264);
41 56 jamey.hick
    $dumpfile("dump.vcd");
42 96 jamey.hick
    $dumpvars(0,th.h264);
43 56 jamey.hick
     $dumpoff;
44
 
45
     clk = 0;
46
     #30;
47
     reset = 1;
48 96 jamey.hick
 
49
     for( i = 0; i < 10000; i=i+1)
50
       begin
51
          $dumpoff;
52
          $display("XXX DUMPOFF");
53
          #100000;
54
          $dumpon;
55
          $display("XXX DUMPON");
56
          $dumpvars(0,th.h264);
57
          #10000;
58
          $dumpoff;
59
       end
60
     $finish;
61
 
62 56 jamey.hick
  end
63
 
64
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.