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

Subversion Repositories cde

[/] [cde/] [trunk/] [ip/] [sram/] [rtl/] [verilog/] [lint/] [sram_be.v] - Blame information for rev 2

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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