OpenCores
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] - Blame information for rev 29

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 29 mcleod_ide
`timescale 1ns / 1ps
2
//////////////////////////////////////////////////////////////////////////////////
3
// Company: 
4
// Engineer: 
5
// 
6
// Create Date:    20:57:11 04/29/2012 
7
// Design Name: 
8
// Module Name:    ram64bytes 
9
// Project Name: 
10
// Target Devices: 
11
// Tool versions: 
12
// Description: 
13
//
14
// Dependencies: 
15
//
16
// Revision: 
17
// Revision 0.01 - File Created
18
// Additional Comments: 
19
//
20
//////////////////////////////////////////////////////////////////////////////////
21
module ram64bytes(
22
    input clk,
23
    input [5:0] a,
24
    input [7:0] din,
25
    output [7:0] dout,
26
    input we
27
    );
28
 
29
         reg [7:0] mem[0:63];
30
         assign dout = mem[a];  //non registered address. Ugly, but works :(
31
 
32
         always @(posedge clk) begin
33
                if (we)
34
                        mem[a] <= din;
35
         end
36
endmodule

powered by: WebSVN 2.1.0

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