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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [common/] [opencores.org/] [cde/] [ip/] [sram/] [rtl/] [verilog/] [lint/] [sram_word.v] - Blame information for rev 134

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 131 jt_eaton
/**********************************************************************/
2
/*                                                                    */
3
/*                                                                    */
4
/*   Copyright (c) 2012 Ouabache Design Works                         */
5
/*                                                                    */
6
/*          All Rights Reserved Worldwide                             */
7
/*                                                                    */
8
/*   Licensed under the Apache License,Version2.0 (the'License');     */
9
/*   you may not use this file except in compliance with the License. */
10
/*   You may obtain a copy of the License at                          */
11
/*                                                                    */
12
/*       http://www.apache.org/licenses/LICENSE-2.0                   */
13
/*                                                                    */
14
/*   Unless required by applicable law or agreed to in                */
15
/*   writing, software distributed under the License is               */
16
/*   distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES              */
17
/*   OR CONDITIONS OF ANY KIND, either express or implied.            */
18
/*   See the License for the specific language governing              */
19
/*   permissions and limitations under the License.                   */
20
/**********************************************************************/
21
 module
22
  cde_sram_word
23
    #( parameter
24
      ADDR=10,
25
      WORDS=1024,
26 134 jt_eaton
      WRITETHRU=0
27
     )
28 131 jt_eaton
     (
29
 input wire               clk,
30
 input wire               cs,
31
 input wire               rd,
32
 input wire               wr,
33
 input wire [ ADDR-1 : 0] addr,
34
 input wire [ 15 : 0]      wdata,
35
 input wire [  1 : 0]     be,
36
 output reg [ 15 : 0]      rdata);
37
 
38
  always@(posedge clk)
39
        if( rd && cs ) rdata             <= wdata  ;
40 134 jt_eaton
        else           rdata             <= 16'hffff;
41 131 jt_eaton
 
42
 
43
  endmodule

powered by: WebSVN 2.1.0

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