URL
https://opencores.org/ocsvn/zx_ula/zx_ula/trunk
Subversion Repositories zx_ula
[/] [zx_ula/] [branches/] [xilinx/] [spectrum_48k_spartan3a_for_gameduino_mod_vga_timex_hicolor_ulaplus/] [ram64bytes.v] - Rev 29
Compare with Previous | Blame | View Log
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 20:57:11 04/29/2012 // Design Name: // Module Name: ram64bytes // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revision: // Revision 0.01 - File Created // Additional Comments: // ////////////////////////////////////////////////////////////////////////////////// module ram64bytes( input clk, input [5:0] a, input [7:0] din, output [7:0] dout, input we ); reg [7:0] mem[0:63]; assign dout = mem[a]; //non registered address. Ugly, but works :( always @(posedge clk) begin if (we) mem[a] <= din; end endmodule