diff options
author | Marcelina KoĆcielnicka <mwk@0x04.net> | 2021-11-09 11:22:48 +0100 |
---|---|---|
committer | Marcelina KoĆcielnicka <mwk@0x04.net> | 2021-11-09 15:40:16 +0100 |
commit | 15b0d717ed658b342ce5f74df5a65827eed04a94 (patch) | |
tree | e9dfb025526ea0f1fbddf705987872fc889a951c /techlibs/gowin | |
parent | 4871d8f19911dc48bf7726519437be8a821c0a1f (diff) | |
download | yosys-15b0d717ed658b342ce5f74df5a65827eed04a94.tar.gz yosys-15b0d717ed658b342ce5f74df5a65827eed04a94.tar.bz2 yosys-15b0d717ed658b342ce5f74df5a65827eed04a94.zip |
iopadmap: Add native support for negative-polarity output enable.
Diffstat (limited to 'techlibs/gowin')
-rw-r--r-- | techlibs/gowin/cells_map.v | 8 | ||||
-rw-r--r-- | techlibs/gowin/synth_gowin.cc | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/techlibs/gowin/cells_map.v b/techlibs/gowin/cells_map.v index 90eb9b5a4..5978a00d0 100644 --- a/techlibs/gowin/cells_map.v +++ b/techlibs/gowin/cells_map.v @@ -122,14 +122,6 @@ module \$_DFFE_NP0P_ (input D, C, R, E, output Q); wire _TECHMAP_REMOVEINIT_Q_ = 1; endmodule -module \$__GW_IOBUF (input I, OE, output O, inout IO); - IOBUF _TECHMAP_REPLACE_ (.I(I), .O(O), .OEN(~OE), .IO(IO)); -endmodule - -module \$__GW_TBUF (input I, OE, output O); - TBUF _TECHMAP_REPLACE_ (.I(I), .OEN(~OE), .O(O)); -endmodule - module \$lut (A, Y); parameter WIDTH = 0; parameter LUT = 0; diff --git a/techlibs/gowin/synth_gowin.cc b/techlibs/gowin/synth_gowin.cc index 1f34a1d1d..cfbc9b9a6 100644 --- a/techlibs/gowin/synth_gowin.cc +++ b/techlibs/gowin/synth_gowin.cc @@ -240,7 +240,7 @@ struct SynthGowinPass : public ScriptPass run("abc -dff -D 1", "(only if -retime)"); if (!noiopads || help_mode) run("iopadmap -bits -inpad IBUF O:I -outpad OBUF I:O " - "-toutpad $__GW_TBUF OE:I:O -tinoutpad $__GW_IOBUF OE:O:I:IO", "(unless -noiopads)"); + "-toutpad TBUF ~OEN:I:O -tinoutpad IOBUF ~OEN:O:I:IO", "(unless -noiopads)"); } if (check_label("map_ffs")) |