mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-16 06:31:29 +00:00
Gowin: deal with active-low tristate (#2971)
* deal with active-low tristate * remove empty port * update sim models * add expected lut1 to tests
This commit is contained in:
parent
c2866780d2
commit
c2d358484f
5 changed files with 15 additions and 7 deletions
|
@ -241,6 +241,9 @@ struct SynthGowinPass : public ScriptPass
|
|||
if (retime || help_mode)
|
||||
run("abc -dff -D 1", "(only if -retime)");
|
||||
run("splitnets");
|
||||
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)");
|
||||
}
|
||||
|
||||
if (check_label("map_ffs"))
|
||||
|
@ -277,9 +280,6 @@ struct SynthGowinPass : public ScriptPass
|
|||
run("opt_lut_ins -tech gowin");
|
||||
run("setundef -undriven -params -zero");
|
||||
run("hilomap -singleton -hicell VCC V -locell GND G");
|
||||
if (!noiopads || help_mode)
|
||||
run("iopadmap -bits -inpad IBUF O:I -outpad OBUF I:O "
|
||||
"-toutpad TBUF OEN:I:O -tinoutpad IOBUF OEN:O:I:IO", "(unless -noiopads)");
|
||||
run("clean");
|
||||
run("autoname");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue