mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Added $_DFFE_??_ cell types
This commit is contained in:
parent
2903143ae5
commit
fad9cec47b
3 changed files with 41 additions and 0 deletions
|
@ -163,6 +163,38 @@ always @(posedge C) begin
|
|||
end
|
||||
endmodule
|
||||
|
||||
module \$_DFFE_NN_ (D, Q, C, E);
|
||||
input D, C, E;
|
||||
output reg Q;
|
||||
always @(negedge C) begin
|
||||
if (!E) Q <= D;
|
||||
end
|
||||
endmodule
|
||||
|
||||
module \$_DFFE_NP_ (D, Q, C, E);
|
||||
input D, C, E;
|
||||
output reg Q;
|
||||
always @(negedge C) begin
|
||||
if (E) Q <= D;
|
||||
end
|
||||
endmodule
|
||||
|
||||
module \$_DFFE_PN_ (D, Q, C, E);
|
||||
input D, C, E;
|
||||
output reg Q;
|
||||
always @(posedge C) begin
|
||||
if (!E) Q <= D;
|
||||
end
|
||||
endmodule
|
||||
|
||||
module \$_DFFE_PP_ (D, Q, C, E);
|
||||
input D, C, E;
|
||||
output reg Q;
|
||||
always @(posedge C) begin
|
||||
if (E) Q <= D;
|
||||
end
|
||||
endmodule
|
||||
|
||||
module \$_DFF_NN0_ (D, Q, C, R);
|
||||
input D, C, R;
|
||||
output reg Q;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue