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

Subversion Repositories socgen

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 131 jt_eaton
 module
2
  cde_sram_def
3
    #( parameter
4
      ADDR=10,
5
      WIDTH=8,
6
      WORDS=1024,
7 134 jt_eaton
      WRITETHRU=0
8
     )
9 131 jt_eaton
     (
10
 input   wire                 clk,
11
 input   wire                 cs,
12
 input   wire                 rd,
13
 input   wire                 wr,
14
 input   wire    [ ADDR-1 :  0]        addr,
15
 input   wire    [ WIDTH-1 :  0]        wdata,
16
 output   reg    [ WIDTH-1 :  0]        rdata);
17
  // Simple loop back for linting and code coverage
18
  always@(posedge clk)
19
        if( rd && cs ) rdata             <= wdata;
20 134 jt_eaton
        else           rdata             <= {WIDTH{1'b1}};
21 131 jt_eaton
  endmodule

powered by: WebSVN 2.1.0

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