Project

General

Profile

Feature #9774

Case expression/value type casting

Added by Mikhail Lebedev 6 months ago. Updated 4 months ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
07/26/2019
Due date:
% Done:

100%

Estimated time:
Published in build:
0.1.2-beta-190909

Description

There can be a situation when an expression in a case and its possible values have different types. For example, vcegar/zaher/zdlx_impl.v_for_pred.v :

...
wire [7:0] concat_rep50_3;
...
wire [7:0] concat_rep50_4;
...
case (ID_EX_EXCTRL[4:3])
  concat_rep50_3:
    ALUCtrl =  3'b010;
  concat_rep50_4:
    ALUCtrl =  0;
endcase

This situation may lead to an incompatible types error in some tools. Type casting should be performed.

History

#1

Updated by Sergey Smolov 6 months ago

  • Target version set to 0.1
#2

Updated by Sergey Smolov 6 months ago

  • Status changed from New to Open
#3

Updated by Sergey Smolov 6 months ago

  • % Done changed from 0 to 100
  • Status changed from Open to Resolved

Fixed in b73ba05f

#4

Updated by Sergey Smolov 5 months ago

  • Status changed from Resolved to Verified
#5

Updated by Sergey Smolov 4 months ago

  • Published in build set to 0.1.2-beta-190909
  • Status changed from Verified to Closed

Also available in: Atom PDF