projects
/
yosys.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Remove abc_flop attributes for now
[yosys.git]
/
techlibs
/
coolrunner2
/
tff_extract.v
1
module FTCP (C, PRE, CLR, T, Q);
2
input C, PRE, CLR, T;
3
output wire Q;
4
5
wire xorout;
6
7
$_XOR_ xorgate (
8
.A(T),
9
.B(Q),
10
.Y(xorout),
11
);
12
13
$_DFFSR_PPP_ dff (
14
.C(C),
15
.D(xorout),
16
.Q(Q),
17
.S(PRE),
18
.R(CLR),
19
);
20
endmodule
21
22
module FTCP_N (C, PRE, CLR, T, Q);
23
input C, PRE, CLR, T;
24
output wire Q;
25
26
wire xorout;
27
28
$_XOR_ xorgate (
29
.A(T),
30
.B(Q),
31
.Y(xorout),
32
);
33
34
$_DFFSR_NPP_ dff (
35
.C(C),
36
.D(xorout),
37
.Q(Q),
38
.S(PRE),
39
.R(CLR),
40
);
41
endmodule