File: xc2_dff.lib

package info (click to toggle)
yosys 0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 9,084 kB
  • sloc: cpp: 82,579; python: 2,725; yacc: 2,018; sh: 1,516; makefile: 884; lex: 492; perl: 399; ansic: 175; vhdl: 46; tcl: 14
file content (31 lines) | stat: -rw-r--r-- 839 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
library(xc2_dff) {
  cell(FDCP) {
    area: 1;
    ff("IQ", "IQN") { clocked_on: C;
                      next_state: D;
                      clear: "CLR";
                      preset: "PRE"; }
    pin(C) { direction: input;
             clock: true; }
    pin(D) { direction: input; }
    pin(Q) { direction: output;
             function: "IQ"; }
    pin(CLR) { direction: input; }
    pin(PRE) { direction: input; }
  }

  cell(FDCP_N) {
    area: 1;
    ff("IQ", "IQN") { clocked_on: "!C";
                      next_state: D;
                      clear: "CLR";
                      preset: "PRE"; }
    pin(C) { direction: input;
             clock: true; }
    pin(D) { direction: input; }
    pin(Q) { direction: output;
             function: "IQ"; }
    pin(CLR) { direction: input; }
    pin(PRE) { direction: input; }
  }
}