URL
https://opencores.org/ocsvn/aes_highthroughput_lowarea/aes_highthroughput_lowarea/trunk
Subversion Repositories aes_highthroughput_lowarea
[/] [aes_highthroughput_lowarea/] [trunk/] [verilog/] [rtl/] [xram_16x64.v] - Rev 11
Go to most recent revision | Compare with Previous | Blame | View Log
////////////////////////////////////////////////////////////////////// //// //// //// Ram module //// //// //// //// Description: //// //// this is 16x64, we can use a 16x128 to replace two of this //// //// module, also, can use specific foundry libs instead //// //// //// //// To Do: //// //// - done //// //// //// //// Author(s): //// //// - Luo Dongjun, dongjun_luo@hotmail.com //// //// //// ////////////////////////////////////////////////////////////////////// module xram_16x64 ( clk, wr, wr_addr, wr_data, rd_addr, rd_data ); input clk, wr; input [3:0] wr_addr, rd_addr; input [63:0] wr_data; output [63:0] rd_data; reg [63:0] mem [15:0]; wire [63:0] rd_data; // behavioral code for 16x64 mem always @ (posedge clk) begin if (wr) mem[wr_addr] <= wr_data; end assign rd_data = mem[rd_addr]; endmodule
Go to most recent revision | Compare with Previous | Blame | View Log