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

Subversion Repositories ethernet_tri_mode

[/] [ethernet_tri_mode/] [trunk/] [rtl/] [verilog/] [RMON/] [RMON_dpram.v] - Blame information for rev 33

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 maverickis
module RMON_dpram(
2 7 maverickis
Reset   ,
3
Clk     ,
4 5 maverickis
//port-a for Rmon 
5
Addra,
6
Dina,
7
Douta,
8
Wea,
9
//port-b for CPU  
10
Addrb,
11
Doutb
12
);
13
 
14 7 maverickis
input           Reset   ;
15
input           Clk     ;
16
                //port-a for Rmon  
17
input   [5:0]   Addra;
18
input   [31:0]  Dina;
19
output  [31:0]  Douta;
20
input           Wea;
21
                //port-b for CPU
22
input   [5:0]   Addrb;
23
output  [31:0]  Doutb;
24 5 maverickis
//******************************************************************************
25
//internal signals                                                              
26
//******************************************************************************
27
 
28 7 maverickis
wire            Clka;
29
wire            Clkb;
30
assign          Clka=Clk;
31
assign  #2      Clkb=Clk;
32 5 maverickis
//******************************************************************************
33
 
34
duram #(32,6,"M4K") U_duram(
35 7 maverickis
.data_a         (Dina           ),
36
.data_b         (32'b0          ),
37
.wren_a         (Wea            ),
38
.wren_b         (1'b0           ),
39
.address_a      (Addra          ),
40
.address_b      (Addrb          ),
41
.clock_a        (Clka           ),
42
.clock_b        (Clkb           ),
43
.q_a            (Douta          ),
44
.q_b            (Doutb          ));
45 5 maverickis
 
46
endmodule

powered by: WebSVN 2.1.0

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