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

Subversion Repositories or1k

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

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/FDDRRSE.v,v 1.1.1.1 2001-11-04 18:59:47 lampret Exp $
2
 
3
/*
4
 
5
FUNCTION        : Dual Data Rate MUX
6
 
7
*/
8
 
9
`timescale  100 ps / 10 ps
10
 
11
`celldefine
12
 
13
module FDDRRSE (Q, C0, C1, CE, D0, D1, R, S);
14
 
15
    parameter cds_action = "ignore";
16
    parameter INIT = 1'h0;
17
 
18
    output Q;
19
    reg    q_out;
20
 
21
    input  C0, C1, CE, D0, D1, R, S;
22
 
23
    tri0 GSR = glbl.GSR;
24
 
25
    buf B1 (Q, q_out);
26
 
27
        always @(GSR)
28
            if (GSR)
29
                assign q_out = INIT;
30
            else
31
                deassign q_out;
32
 
33
        always @(posedge C0)
34
            if (R)
35
                q_out <= 0;
36
            else if (S)
37
                q_out <= 1;
38
            else if (CE)
39
                q_out <= D0;
40
 
41
        always @(posedge C1)
42
            if (R)
43
                q_out <= 0;
44
            else if (S)
45
                q_out <= 1;
46
            else if (CE)
47
                q_out <= D1;
48
 
49
    specify
50
        if (R)
51
            (posedge C0 => (Q +: 1'b0)) = (1, 1);
52
        if (!R && S)
53
            (posedge C0 => (Q +: 1'b1)) = (1, 1);
54
        if (!R && !S && CE)
55
            (posedge C0 => (Q +: D0)) = (1, 1);
56
        if (R)
57
            (posedge C1 => (Q +: 1'b0)) = (1, 1);
58
        if (!R && S)
59
            (posedge C1 => (Q +: 1'b1)) = (1, 1);
60
        if (!R && !S && CE)
61
            (posedge C1 => (Q +: D1)) = (1, 1);
62
    endspecify
63
 
64
endmodule
65
 
66
`endcelldefine

powered by: WebSVN 2.1.0

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