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

Subversion Repositories or1k

[/] [or1k/] [branches/] [mp3_stable/] [mp3/] [lib/] [xilinx/] [unisims/] [OFDX.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/OFDX.v,v 1.1.1.1 2001-11-04 18:59:50 lampret Exp $
2
 
3
/*
4
 
5
FUNCTION        : Output D-FLIP-FLOP with clock enable
6
 
7
*/
8
 
9
`timescale  100 ps / 10 ps
10
 
11
`celldefine
12
 
13
module OFDX (Q, C, CE, D);
14
 
15
    parameter cds_action = "ignore";
16
    parameter INIT = 1'b0;
17
 
18
    output Q;
19
    reg    q_out;
20
 
21
    input  C, CE, D;
22
 
23
    tri0 GSR = glbl.GSR;
24
    tri0 GTS = glbl.GTS;
25
 
26
    bufif0 B1 (Q, q_out, GTS);
27
 
28
        always @(GSR)
29
            if (GSR)
30
                assign q_out = INIT;
31
            else
32
                deassign q_out;
33
 
34
        always @(posedge C)
35
            if (CE)
36
                q_out <= D;
37
 
38
    specify
39
        (posedge C => (Q +: D)) = (1, 1);
40
    endspecify
41
 
42
endmodule
43
 
44
`endcelldefine

powered by: WebSVN 2.1.0

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