mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-28 16:53:45 +02:00
Don't connect NetFF CE pin if it is not needed
When the clock enable is not generated, don't try to hook it up then detach it. That will make a mess that needs clean up. Instead, leave unused ce pins (Enable) unconnected.
This commit is contained in:
@@ -1009,7 +1009,8 @@ bool NetProcTop::synth_sync(Design*des)
|
||||
connect(tmp->pin(0), ff2->pin_Data());
|
||||
|
||||
connect(clock->pin(0), ff2->pin_Clock());
|
||||
connect(ce->pin(0), ff2->pin_Enable());
|
||||
if (ce->is_linked())
|
||||
connect(ce->pin(0), ff2->pin_Enable());
|
||||
#if 0
|
||||
if (ff->pin_Aset().is_linked())
|
||||
connect(ff->pin_Aset(), ff2->pin_Aset());
|
||||
|
||||
Reference in New Issue
Block a user