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

Subversion Repositories socgen

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

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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