File: gp_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 (36 lines) | stat: -rw-r--r-- 998 bytes parent folder | download | duplicates (5)
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
32
33
34
35
36
library(gp_dff) {
  cell(GP_DFF) {
    area: 1;
    ff("IQ", "IQN") { clocked_on: CLK;
                      next_state: D; }
    pin(CLK) { direction: input;
                   clock: true; }
    pin(D) { direction: input; }
    pin(Q) { direction: output;
              function: "IQ"; }
  }
  cell(GP_DFFS) {
    area: 1;
    ff("IQ", "IQN") { clocked_on: CLK;
                  next_state: D;
                      preset: "nSET'"; }
    pin(CLK) { direction: input;
                 clock: true; }
    pin(D) { direction: input; }
    pin(Q) { direction: output;
              function: "IQ"; }
    pin(nSET) { direction: input; }
  }
  cell(GP_DFFR) {
    area: 1;
    ff("IQ", "IQN") { clocked_on: CLK;
                      next_state: D;
                           clear: "nRST'"; }
    pin(CLK) { direction: input;
                   clock: true; }
    pin(D) { direction: input; }
    pin(Q) { direction: output;
              function: "IQ"; }
    pin(nRST) { direction: input; }
  }
}