OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable/] [mp3/] [lib/] [xilinx/] [unisims/] [ROM32X1.v] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 266 lampret
// $Header: /home/marcus/revision_ctrl_test/oc_cvs/cvs/or1k/mp3/lib/xilinx/unisims/ROM32X1.v,v 1.1.1.1 2001-11-04 19:00:00 lampret Exp $
2
 
3
/*
4
 
5
FUNCTION        : ROM 32x1
6
 
7
*/
8
 
9
`timescale  100 ps / 10 ps
10
 
11
`celldefine
12
 
13
module ROM32X1 (O, A0, A1, A2, A3, A4);
14
 
15
    parameter cds_action = "ignore";
16
    parameter INIT = 32'h00000000;
17
 
18
    output O;
19
 
20
    input  A0, A1, A2, A3, A4;
21
 
22
    wire dout;
23
    wire [4:0] adr;
24
 
25
    reg mem [0:31];
26
    reg  [5:0] count;
27
 
28
    buf b0 (adr[4], A4);
29
    buf b1 (adr[3], A3);
30
    buf b2 (adr[2], A2);
31
    buf b3 (adr[1], A1);
32
    buf b4 (adr[0], A0);
33
    buf b5 (O, dout);
34
 
35
    initial begin
36
        for(count = 0; count < 32; count = count + 1)
37
            mem[count] = INIT[count];
38
    end
39
 
40
    assign dout = mem[adr];
41
 
42
    specify
43
        (A4 => O) = (1, 1);
44
        (A3 => O) = (1, 1);
45
        (A2 => O) = (1, 1);
46
        (A1 => O) = (1, 1);
47
        (A0 => O) = (1, 1);
48
    endspecify
49
 
50
endmodule
51
 
52
`endcelldefine

powered by: WebSVN 2.1.0

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