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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [mp3/] [lib/] [xilinx/] [unisims/] [ROM16X1.v] - Blame information for rev 1782

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

powered by: WebSVN 2.1.0

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