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

Verilator generates incorrect filename for module that accepts a real number parameter #992

Closed
veripoolbot opened this issue Nov 4, 2015 · 2 comments
Assignees
Labels
resolution: fixed Closed; fixed

Comments

@veripoolbot
Copy link
Contributor


Author Name: Johan Bjork
Original Redmine Issue: 992 from https://www.veripool.org
Original Date: 2015-11-04
Original Assignee: Wilson Snyder (@wsnyder)


// DESCRIPTION: Verilator: Verilog Test module
//
// This test examines Verilator against paramter definition with functions.
// Particularly the function takes in argument which is multi-dimentional.
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2015 by Johan Bjork

module mod #(
     parameter real HZ = 0
);
//verilator no_inline_module
  initial begin
     $display("%f", HZ);
  end
endmodule

module t();
mod #(.HZ(123.45)) mod1();
mod #(.HZ(24.45)) mod2();

initial begin
    $write("*-* All Finished *-*\n");
    $finish;
end
endmodule

Fails with

	cd obj_dir/t_param_real &&  make -f/home/phb/hs/src/vats.verilator/ext/public/verilator/git/build/verilator/test_regress/Makefile_obj VM_PREFIX=Vt_param_real CPPFLAGS_DRIVER=-DT_PARAM_REAL    Vt_param_real    > obj_dir/t_param_real/vlt_gcc.log
make: *** No rule to make target `Vt_param_real_mod__H24.cpp', needed by `Vt_param_real__ALLboth.cpp'.  Stop.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2015-11-05T03:02:45Z


Thanks for the good test, simple enough.

Fixed in git towards 3.880.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2015-12-19T15:32:17Z


In 3.880.

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

No branches or pull requests

2 participants