OpenCores
URL https://opencores.org/ocsvn/pci/pci/trunk

Subversion Repositories pci

[/] [pci/] [tags/] [working_demo/] [old_stuff/] [wb_slave/] [test_bench/] [delayed_write_reg.v] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mihad
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  File name "delayed_write_reg.v"                             ////
4
////                                                              ////
5
////  This file is part of the "PCI bridge" project               ////
6
////  http://www.opencores.org/cores/pci/                         ////
7
////                                                              ////
8
////  Author(s):                                                  ////
9
////      - mihad@opencores.org                                   ////
10
////      - Miha Dolenc                                           ////
11
////                                                              ////
12
////  All additional information is avaliable in the README.pdf   ////
13
////  file.                                                       ////
14
////                                                              ////
15
////                                                              ////
16
//////////////////////////////////////////////////////////////////////
17
////                                                              ////
18
//// Copyright (C) 2001 Miha Dolenc, mihad@opencores.org          ////
19
////                                                              ////
20
//// This source file may be used and distributed without         ////
21
//// restriction provided that this copyright statement is not    ////
22
//// removed from the file and that any derivative work contains  ////
23
//// the original copyright notice and the associated disclaimer. ////
24
////                                                              ////
25
//// This source file is free software; you can redistribute it   ////
26
//// and/or modify it under the terms of the GNU Lesser General   ////
27
//// Public License as published by the Free Software Foundation; ////
28
//// either version 2.1 of the License, or (at your option) any   ////
29
//// later version.                                               ////
30
////                                                              ////
31
//// This source is distributed in the hope that it will be       ////
32
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
33
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
34
//// PURPOSE.  See the GNU Lesser General Public License for more ////
35
//// details.                                                     ////
36
////                                                              ////
37
//// You should have received a copy of the GNU Lesser General    ////
38
//// Public License along with this source; if not, download it   ////
39
//// from http://www.opencores.org/lgpl.shtml                     ////
40
////                                                              ////
41
//////////////////////////////////////////////////////////////////////
42
//
43
// CVS Revision History
44
//
45
// $Log: not supported by cvs2svn $
46
// Revision 1.1  2001/07/19 09:51:16  mihad
47
// Only delayed write storage is provided after merging delayed requests.
48
// All delayed reads now pass through FIFO.
49
//
50
//
51
 
52
`include "constants.v"
53
module DELAYED_WRITE_REG
54
(
55
        reset_in,
56
        req_clk_in,
57
        comp_wdata_out,
58
        req_we_in,
59
        req_wdata_in
60
);
61
 
62
// system inputs
63
input reset_in,
64
          req_clk_in ; // request clock input
65
 
66
output [31:0] comp_wdata_out ; // data output
67
 
68
input req_we_in ; // write enable input
69
input [31:0] req_wdata_in ; // data input - latched with posedge of req_clk_in when req_we_in is high
70
 
71
reg [31:0] comp_wdata_out ;
72
 
73
// write request operation
74
always@(posedge req_clk_in or posedge reset_in)
75
begin
76
        if (reset_in)
77
                comp_wdata_out <= #`FF_DELAY 32'h0000_0000 ;
78
        else
79
        if (req_we_in)
80
                comp_wdata_out <= #`FF_DELAY req_wdata_in ;
81
end
82
 
83
endmodule // IACK_STORAGE

powered by: WebSVN 2.1.0

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