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

I think multiplier inference is working in prjtrellis and yosys master #131

Open
minecraft2048 opened this issue Mar 27, 2020 · 0 comments

Comments

@minecraft2048
Copy link

Multipliers using manual instantiation of the MULT18X18D primitive. Inference and more advanced DSP features are not yet supported.

Reading at that I thought that inference is not working, but I tried this code:

module testmac(input clk, input [31:0] a, input [31:0] b, output [63:0] out);
    reg [63:0] acc;
    always @(posedge clk) begin
        acc <= a * b;
    end
    assign out = acc;
endmodule

and used yosys and got this:
2.52. Printing statistics.

=== testmac ===

   Number of wires:                 23
   Number of wire bits:            849
   Number of public wires:          23
   Number of public wire bits:     849
   Number of memories:               0
   Number of memory bits:            0
   Number of processes:              0
   Number of cells:                121
     CCU2C                          53
     MULT18X18D                      4
     TRELLIS_FF                     64

Looks like it can infer multipliers, I don't know whether its working or not though

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