AUCOHL / Lighter

An automatic clock gating utility
Apache License 2.0
40 stars 5 forks source link

can i try this in openlane's yosys. #15

Closed Vinayakamk closed 1 year ago

Vinayakamk commented 1 year ago

this is more over question instaed technical issue i thought of integrate automatic clock gating in openlane's yosys.

how can i do it? plese let me know or if u have any resources plese do share the link!

thanks in advance!!

kanndil commented 1 year ago

Hello @Vinayakamk, we are glade that you are finding Lighter helpful. There are two ways of integrating Lighter into any version of Yosys:

  1. Follow the How To Use instructions in the Readme. ---> This will basically wrap Lighter as a Yosys plugin and automatically insert it into your system.

  2. Lighter is also integrated with the yosys-f4pga-plugins repo where you can also install the clock gating plugin into Yosys along with a collection of other helpful plugins. Follow the instructions in their Repo for more details.

Vinayakamk commented 1 year ago

and also i have doubt,do i need to do to plugin every time.if i close terminal. im confused as i open other terminal with same directory where i have installed minconda,i got this error image

kanndil commented 1 year ago

Yes exactly. In the case of the first option, you must use this command every time to insert the plugin into Yosys. yosys -m cg_plugin.so your_script.tcl And cg_plugin.so file must exist in your working directory. Which is generated using the following command: yosys-config --build cg_plugin.so clock_gating_plugin.cc

kanndil commented 1 year ago

If you choose to use the other option, that is using this repo yosys-f4pga-plugins repo, you would need to install it only once into your system.

kanndil commented 1 year ago

@Vinayakamk

Vinayakamk commented 1 year ago

got it.thanks a lot for the reply

im searched documentation to install 2nd type yosys-f4pga-plugins repo

may i get it??

thank you again for such an effort to implement the great and cool optimization -clcok gating

kanndil commented 1 year ago

@Vinayakamk You should just clone the repo and run make install in the main directory.

Vinayakamk commented 1 year ago

i got it,thank you so much for the reply

kanndil commented 1 year ago

Welcome