mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-22 23:14:03 +00:00
coolrunner2: Add INVERT parameter to some BUFGs
This commit is contained in:
parent
1e3ffd57cb
commit
78fd24f40f
1 changed files with 6 additions and 2 deletions
|
@ -143,17 +143,21 @@ module BUFG(I, O);
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
module BUFGSR(I, O);
|
module BUFGSR(I, O);
|
||||||
|
parameter INVERT = 0;
|
||||||
|
|
||||||
input I;
|
input I;
|
||||||
output O;
|
output O;
|
||||||
|
|
||||||
assign O = I;
|
assign O = INVERT ? ~I : I;
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
module BUFGTS(I, O);
|
module BUFGTS(I, O);
|
||||||
|
parameter INVERT = 0;
|
||||||
|
|
||||||
input I;
|
input I;
|
||||||
output O;
|
output O;
|
||||||
|
|
||||||
assign O = I;
|
assign O = INVERT ? ~I : I;
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
module FDDCP (C, PRE, CLR, D, Q);
|
module FDDCP (C, PRE, CLR, D, Q);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue