Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save/load for LUT network #377

Open
phyzhenli opened this issue Mar 3, 2025 · 2 comments
Open

save/load for LUT network #377

phyzhenli opened this issue Mar 3, 2025 · 2 comments

Comments

@phyzhenli
Copy link

Hi all,

I tried using save/load commands after if, but abc output an error:

Image

It seems that save/load commands only work for asic mapping:

Image

So my question is: Does save/load work for LUT mapping or is there are some similar commands for LUT mapping?

@wjrforcyber
Copy link
Contributor

Try backup and restore, tiny example with network statistic:

./abc -c "read_aiger i10.aig; strash; ps; if; ps; backup; strash; drw; drf; ps; restore; ps"
ABC command line: "read_aiger i10.aig; strash; ps; if; ps; backup; strash; drw; drf; ps; restore; ps".

i10                           : i/o =  257/  224  lat =    0  and =   2675  lev = 50
i10                           : i/o =  257/  224  lat =    0  nd =   862  edge =   2870  aig  =  3382  lev = 17
i10                           : i/o =  257/  224  lat =    0  and =   2057  lev = 49
i10                           : i/o =  257/  224  lat =    0  nd =   862  edge =   2870  aig  =  3382  lev = 17

@phyzhenli
Copy link
Author

haha, thanks for your reply Jingren. There is a diference between backup and save because the latter compare and save the best one.

I add two commands save_lut and load_lut to solve my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants