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

*New command:Verilog format can be changed and ABC can read it #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yuzy111
Copy link

@yuzy111 yuzy111 commented Apr 1, 2022

abc can not read
/---------------------------------------------------------------------------------------/
assign { 029[30:3], 029[0] } = { 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], 029[31], cnt[0] };
/---------------------------------------------------------------------------------------/
I can convert it into
/---------------------------------------------------------------------------------------/
assign 029[30] = 029[31];
assign 029[29] = 029[31];
assign 029[28] = 029[31];
assign 029[27] = 029[31];
assign 029[26] = 029[31];
assign 029[25] = 029[31];
assign 029[24] = 029[31];
assign 029[23] = 029[31];
assign 029[22] = 029[31];
assign 029[21] = 029[31];
assign 029[20] = 029[31];
assign 029[19] = 029[31];
assign 029[18] = 029[31];
assign 029[17] = 029[31];
assign 029[16] = 029[31];
assign 029[15] = 029[31];
assign 029[14] = 029[31];
assign 029[13] = 029[31];
assign 029[12] = 029[31];
assign 029[11] = 029[31];
assign 029[10] = 029[31];
assign 029[9] = 029[31];
assign 029[8] = 029[31];
assign 029[7] = 029[31];
assign 029[6] = 029[31];
assign 029[5] = 029[31];
assign 029[4] = 029[31];
assign 029[3] = 029[31];
assign 029[0] = cnt[0];
/---------------------------------------------------------------------------------------/

usage: read_verilog
read Verilog
inputfile : the name of a file to read
outputfile : the name of a file to write

@yuzy111
Copy link
Author

yuzy111 commented Apr 1, 2022

ABC can read the second format

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

Successfully merging this pull request may close these issues.

1 participant