[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  SVN::S4
  SystemPerl
  Voneline
  WFH
General Info
  Papers

Issue #335

type casting does not work

Added by Alex Solomatnikov about 2 years ago. Updated about 2 years ago.

Status:Closed Start date:03/16/2011
Priority:Normal Due date:
Assignee:Wilson Snyder % Done:

0%

Category:Unsupported
Target version:-

Description

Example:

`define MC_WIDTH 32 typedef logic [`MC_WIDTH-1:0] mc_t;

module t( output mc_t o, input mc_t i );

always_comb begin
   o = mc_t'(1);
end

endmodule // t

Modelsim compiles just fine but verilator does not:

%Error: tmp.v:8: syntax error, unexpected TYPE-IDENTIFIER %Error: Exiting due to 1 warning(s)

History

Updated by Wilson Snyder about 2 years ago

  • Category set to Unsupported
  • Status changed from New to Resolved
  • Assignee set to Wilson Snyder

Fixed in git for 3.812.

Updated by Wilson Snyder about 2 years ago

BTW only simple scalar types are supported, no arrays etc. I suspect there will be later improvements needed here.

Updated by Wilson Snyder about 2 years ago

  • Status changed from Resolved to Closed

In 3.812.

Also available in: Atom