URL
https://opencores.org/ocsvn/sdcard_mass_storage_controller/sdcard_mass_storage_controller/trunk
Subversion Repositories sdcard_mass_storage_controller
[/] [sdcard_mass_storage_controller/] [trunk/] [rtl/] [sdc_fifo/] [verilog/] [versatile_fifo_dptam_dw.v] - Rev 107
Go to most recent revision | Compare with Previous | Blame | View Log
module versatile_fifo_dptam_dw ( d_a, q_a, adr_a, we_a, clk_a, q_b, adr_b, d_b, we_b, clk_b ); parameter DATA_WIDTH = 8; parameter ADDR_WIDTH = 11; input [(DATA_WIDTH-1):0] d_a; input [(ADDR_WIDTH-1):0] adr_a; input [(ADDR_WIDTH-1):0] adr_b; input we_a; output reg[(DATA_WIDTH-1):0] q_b; input [(DATA_WIDTH-1):0] d_b; output reg [(DATA_WIDTH-1):0] q_a; input we_b; input clk_a, clk_b; reg [DATA_WIDTH-1:0] ram [2**ADDR_WIDTH-1:0] ; always @ (posedge clk_a) begin q_a <= ram[adr_a]; if (we_a) begin ram[adr_a] <= d_a; end end always @ (posedge clk_b) begin q_b <= ram[adr_b]; if (we_b) begin ram[adr_b] <= d_b; end end endmodule
Go to most recent revision | Compare with Previous | Blame | View Log