URL
https://opencores.org/ocsvn/socgen/socgen/trunk
Subversion Repositories socgen
[/] [socgen/] [trunk/] [common/] [opencores.org/] [cde/] [ip/] [sram/] [rtl/] [verilog/] [lint/] [sram_dp.v] - Rev 134
Compare with Previous | Blame | View Log
module cde_sram_dp #( parameter ADDR=10, WIDTH=8, WORDS=1024, WRITETHRU=0 ) ( input wire clk, input wire cs, input wire rd, input wire wr, input wire [ ADDR-1 : 0] raddr, input wire [ ADDR-1 : 0] waddr, input wire [ WIDTH-1 : 0] wdata, output reg [ WIDTH-1 : 0] rdata); // Simple loop back for linting and code coverage always@(posedge clk) if( rd && cs ) rdata <= wdata; else rdata <= {WIDTH{1'b1}}; endmodule