chipsalliance / yosys-f4pga-plugins

Plugins for Yosys developed as part of the F4PGA project.
https://f4pga.org
Apache License 2.0
80 stars 46 forks source link

xdc-plugin: Setting DRIVE property breaks output #501

Open hannesha opened 1 year ago

hannesha commented 1 year ago

Setting the drive property in xdc file results in pin not being driven at all.

The cause is that the plugin sets the parameter to a string constant, while yosys expects an integer constant.

I already prepared a quick fix for this. However further work is required to detect this in the techmap files and provide sensible warnings/fallback.

lgl1227 commented 1 year ago

I meeting this question, too.How to fix for this, please?

hannesha commented 1 year ago

I have the fixes in the following branch: https://github.com/hannesha/yosys-f4pga-plugins/tree/fix_xdc_drive

It also adds the PULLTYPE property and is able to ignore undefined module ports.

lgl1227 commented 1 year ago

thanks