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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [mp3/] [lib/] [xilinx/] [unisims/] [ILFLXI_1.v] - Blame information for rev 266

Go to most recent revision | 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/ILFLXI_1.v,v 1.1.1.1 2001-11-04 18:59:48 lampret Exp $
2
 
3
/*
4
 
5
FUNCTION        : FAST INPUT LATCH
6
 
7
*/
8
 
9
`timescale  100 ps / 10 ps
10
 
11
`celldefine
12
 
13
module ILFLXI_1 (Q, D, G, GE, GF);
14
 
15
    parameter cds_action = "ignore";
16
    parameter INIT = 1'b1;
17
 
18
    output Q;
19
    reg    q_out;
20
    reg    o;
21
 
22
    input  D, G, GE, GF;
23
 
24
    tri0 GSR = glbl.GSR;
25
 
26
    buf B1 (Q, q_out);
27
 
28
        always @(D or GF)
29
            if (!GF)
30
                o = D;
31
 
32
        always @(GSR)
33
            if (GSR)
34
                assign q_out = INIT;
35
            else
36
                deassign q_out;
37
 
38
        always @(D or G or GE)
39
            if (!G && GE)
40
                q_out <= o;
41
 
42
    specify
43
        (D => Q) = (1, 1);
44
        (negedge G => (Q +: D)) = (1, 1);
45
        (posedge GE => (Q +: D)) = (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.