1 |
2 |
madhu54321 |
//////////////////////////////////////////////////////////////////////
|
2 |
|
|
//// ////
|
3 |
|
|
//// File name "fifo_top.sv" ////
|
4 |
|
|
//// ////
|
5 |
|
|
//// This file is part of the "synchronous_reset_fifo" project ////
|
6 |
|
|
//// http://opencores.com/project,synchronous_reset_fifo ////
|
7 |
|
|
//// ////
|
8 |
|
|
//// Author: ////
|
9 |
|
|
//// - Madhumangal Javanthieswaran (madhu54321@opencores.org) ////
|
10 |
|
|
//// ////
|
11 |
|
|
//////////////////////////////////////////////////////////////////////
|
12 |
|
|
//// ////
|
13 |
|
|
//// Copyright (C) 2008 AUTHORS. All rights reserved. ////
|
14 |
|
|
//// ////
|
15 |
|
|
//// This source file may be used and distributed without ////
|
16 |
|
|
//// restriction provided that this copyright statement is not ////
|
17 |
|
|
//// removed from the file and that any derivative work contains ////
|
18 |
|
|
//// the original copyright notice and the associated disclaimer. ////
|
19 |
|
|
//// ////
|
20 |
|
|
//// This source file is free software; you can redistribute it ////
|
21 |
|
|
//// and/or modify it under the terms of the GNU Lesser General ////
|
22 |
|
|
//// Public License as published by the Free Software Foundation; ////
|
23 |
|
|
//// either version 2.1 of the License, or (at your option) any ////
|
24 |
|
|
//// later version. ////
|
25 |
|
|
//// ////
|
26 |
|
|
//// This source is distributed in the hope that it will be ////
|
27 |
|
|
//// useful, but WITHOUT ANY WARRANTY; without even the implied ////
|
28 |
|
|
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
29 |
|
|
//// PURPOSE. See the GNU Lesser General Public License for more ////
|
30 |
|
|
//// details. ////
|
31 |
|
|
//// ////
|
32 |
|
|
//// You should have received a copy of the GNU Lesser General ////
|
33 |
|
|
//// Public License along with this source; if not, download it ////
|
34 |
|
|
//// from http://www.opencores.org/lgpl.shtml ////
|
35 |
|
|
//// ////
|
36 |
|
|
//////////////////////////////////////////////////////////////////////
|
37 |
|
|
|
38 |
|
|
/************************************************************************
|
39 |
|
|
Design Name : synchronous_reset_fifo
|
40 |
|
|
Module Name : fifo_top.sv
|
41 |
|
|
Description :
|
42 |
|
|
Date : 19/12/2011
|
43 |
|
|
Author : Madhumangal Javanthieswaran
|
44 |
|
|
Email : j.madhumangal@gmail.com
|
45 |
|
|
Company :
|
46 |
|
|
Version : 1.0
|
47 |
|
|
Revision : 0.0
|
48 |
|
|
************************************************************************/
|
49 |
|
|
module fifo_top();
|
50 |
|
|
bit clock;
|
51 |
|
|
|
52 |
|
|
fifo_if DUV_IF(clock);
|
53 |
|
|
|
54 |
|
|
fifo RTL_IF(.clock(clock),
|
55 |
|
|
.resetn(DUV_IF.resetn),
|
56 |
|
|
.write_enb(DUV_IF.write_enb),
|
57 |
|
|
.read_enb(DUV_IF.read_enb),
|
58 |
|
|
.data_in(DUV_IF.data_in),
|
59 |
|
|
.data_out(DUV_IF.data_out),
|
60 |
|
|
.empty(DUV_IF.empty),
|
61 |
|
|
.full(DUV_IF.full)
|
62 |
|
|
);
|
63 |
|
|
|
64 |
|
|
fifo_testcase TEST_IF(DUV_IF,DUV_IF);
|
65 |
|
|
|
66 |
|
|
initial
|
67 |
|
|
clock = 0;
|
68 |
|
|
|
69 |
|
|
always
|
70 |
|
|
begin
|
71 |
|
|
#10 clock = ~ clock;
|
72 |
|
|
end
|
73 |
|
|
|
74 |
|
|
endmodule:fifo_top
|