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

$mul not being converted correctly #146

Open
nachiket opened this issue Jan 20, 2025 · 2 comments
Open

$mul not being converted correctly #146

nachiket opened this issue Jan 20, 2025 · 2 comments

Comments

@nachiket
Copy link

nachiket commented Jan 20, 2025

Here's a simple example of a Verilog file I'm trying to translate to SVG.

module mult (
  input logic [7:0] a,
  input logic [7:0] b,
  input logic [7:0] c,
  output logic [7:0] y
  );

always_comb begin
  y = a*b + c;
end

endmodule

When I compile it with Verilog

yosys -p "read_verilog -sv mult.sv; proc; opt; write_json temp.json"; netlistsvg temp.json -o temp.svg; cairosvg temp.svg -o mult.pdf

I get the following result with $mul staying as a block instead of the multiply symbol.

Image

What am I missing?

Thakns
Nachiket

@nachiket
Copy link
Author

Just an FYI, even $sdff isn't getting mapped correctly to FF symbols.

@nachiket
Copy link
Author

I think I was using npm install version instead of building from source. I'm not sure if there was a plan to not need rebuilding from source to get the latest snazziest drawing flow!

Image

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

1 participant