mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-28 19:35:53 +00:00
iopadmap: Add native support for negative-polarity output enable.
This commit is contained in:
parent
4871d8f199
commit
15b0d717ed
12 changed files with 35 additions and 43 deletions
|
@ -30,5 +30,5 @@ module \$_DFF_P_ (input D, C, output Q); FACADE_FF #(.CEMUX("1"), .CLKMUX("CLK"
|
|||
// IO- "$__" cells for the iopadmap pass.
|
||||
module \$__FACADE_OUTPAD (input I, output O); FACADE_IO #(.DIR("OUTPUT")) _TECHMAP_REPLACE_ (.PAD(O), .I(I), .T(1'b0)); endmodule
|
||||
module \$__FACADE_INPAD (input I, output O); FACADE_IO #(.DIR("INPUT")) _TECHMAP_REPLACE_ (.PAD(I), .O(O)); endmodule
|
||||
module \$__FACADE_TOUTPAD (input I, OE, output O); FACADE_IO #(.DIR("OUTPUT")) _TECHMAP_REPLACE_ (.PAD(O), .I(I), .T(~OE)); endmodule
|
||||
module \$__FACADE_TINOUTPAD (input I, OE, output O, inout B); FACADE_IO #(.DIR("BIDIR")) _TECHMAP_REPLACE_ (.PAD(B), .I(I), .O(O), .T(~OE)); endmodule
|
||||
module \$__FACADE_TOUTPAD (input I, T, output O); FACADE_IO #(.DIR("OUTPUT")) _TECHMAP_REPLACE_ (.PAD(O), .I(I), .T(T)); endmodule
|
||||
module \$__FACADE_TINOUTPAD (input I, T, output O, inout B); FACADE_IO #(.DIR("BIDIR")) _TECHMAP_REPLACE_ (.PAD(B), .I(I), .O(O), .T(T)); endmodule
|
||||
|
|
|
@ -207,6 +207,6 @@ module \$__FACADE_OUTPAD (input I, output O); endmodule
|
|||
(* blackbox *)
|
||||
module \$__FACADE_INPAD (input I, output O); endmodule
|
||||
(* blackbox *)
|
||||
module \$__FACADE_TOUTPAD (input I, OE, output O); endmodule
|
||||
module \$__FACADE_TOUTPAD (input I, T, output O); endmodule
|
||||
(* blackbox *)
|
||||
module \$__FACADE_TINOUTPAD (input I, OE, output O, inout B); endmodule
|
||||
module \$__FACADE_TINOUTPAD (input I, T, output O, inout B); endmodule
|
||||
|
|
|
@ -185,7 +185,7 @@ struct SynthMachXO2Pass : public ScriptPass
|
|||
{
|
||||
if (!noiopad || help_mode)
|
||||
{
|
||||
run("iopadmap -bits -outpad $__FACADE_OUTPAD I:O -inpad $__FACADE_INPAD O:I -toutpad $__FACADE_TOUTPAD OE:I:O -tinoutpad $__FACADE_TINOUTPAD OE:O:I:B A:top");
|
||||
run("iopadmap -bits -outpad $__FACADE_OUTPAD I:O -inpad $__FACADE_INPAD O:I -toutpad $__FACADE_TOUTPAD ~T:I:O -tinoutpad $__FACADE_TINOUTPAD ~T:O:I:B A:top");
|
||||
run("attrmvcp -attr src -attr LOC t:$__FACADE_OUTPAD %x:+[O] t:$__FACADE_TOUTPAD %x:+[O] t:$__FACADE_TINOUTPAD %x:+[B]");
|
||||
run("attrmvcp -attr src -attr LOC -driven t:$__FACADE_INPAD %x:+[I]");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue