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

Subversion Repositories raptor64

[/] [raptor64/] [trunk/] [rtl/] [verilog/] [memory/] [internal/] [syncRam512x64_1rw1r.v] - Blame information for rev 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 robfinch
// ============================================================================
2
// (C) 2011 Robert Finch
3
// All Rights Reserved.
4
// robfinch@<remove>@opencores.org
5
//
6
//      syncRam512x64_1rw1r.v
7
//
8
// This source file is free software: you can redistribute it and/or modify 
9
// it under the terms of the GNU Lesser General Public License as published 
10
// by the Free Software Foundation, either version 3 of the License, or     
11
// (at your option) any later version.                                      
12
//                                                                          
13
// This source file is distributed in the hope that it will be useful,      
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of           
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            
16
// GNU General Public License for more details.                             
17
//                                                                          
18
// You should have received a copy of the GNU General Public License        
19
// along with this program.  If not, see <http://www.gnu.org/licenses/>.    
20
//                                                                          
21
// ============================================================================
22
//
23
module syncRam512x64_1rw1r(
24
        input wrst,
25
        input wclk,
26
        input wce,
27
        input we,
28
        input [8:0] wadr,
29
        input [63:0] i,
30
        output [63:0] wo,
31
 
32
        input rrst,
33
        input rclk,
34
        input rce,
35
        input [8:0] radr,
36
        output [63:0] ro
37
);
38
 
39
syncRam512x32_1rw1r u1
40
(
41
        .wrst(wrst),
42
        .wclk(wclk),
43
        .wce(wce),
44
        .we(we),
45
        .wadr(wadr),
46
        .i(i[31:0]),
47
        .wo(wo[31:0]),
48
        .rrst(rrst),
49
        .rclk(rclk),
50
        .rce(rce),
51
        .radr(radr),
52
        .o(ro[31:0])
53
);
54
 
55
syncRam512x32_1rw1r u2
56
(
57
        .wrst(wrst),
58
        .wclk(wclk),
59
        .wce(wce),
60
        .we(we),
61
        .wadr(wadr),
62
        .i(i[63:32]),
63
        .wo(wo[63:32]),
64
        .rrst(rrst),
65
        .rclk(rclk),
66
        .rce(rce),
67
        .radr(radr),
68
        .o(ro[63:32])
69
);
70
 
71
endmodule

powered by: WebSVN 2.1.0

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