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

Forcing bits on a bus to be ordered numerically #135

Open
benipoo opened this issue Jul 18, 2023 · 1 comment
Open

Forcing bits on a bus to be ordered numerically #135

benipoo opened this issue Jul 18, 2023 · 1 comment

Comments

@benipoo
Copy link

benipoo commented Jul 18, 2023

If I run Yosys on the following Verilog module that detects if a bus is equal to zero:

always @(*)
	if(bus0 == 1)
		begin
			boolean = 1;
		end
	else
		begin
			boolean = 0;
		end

Using this Yosys command:

yosys -p 'synth -auto-top ; abc -g cmos2; write_verilog output.v' "equal_to_zero.v" -p 'write_json answer.json'

It will yield this SVG schematic, however I would like the bus bits to be in order. Is there a way to do this?
equal_to_one

@nobodywasishere
Copy link
Contributor

Just to clarify, are you using the latest release or the latest from master?

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