Skip to content

Shifting by constants produces complex names when using << versus >>> #234

@desmonddak

Description

@desmonddak

Motivation

 final tShift = (t << 1).named('tShift');
 final tBarShift = (~t << 1).named('tBarShift');
 final zBarShift = (~z >>> 1).named('zBarShift');
 final gBarShift = (~g >>> 1).named('gBarShift');

produces

	assign tShift = t << _shiftAmount_const_8_h1;
	assign tBarShift = ~t << _shiftAmount_const_8_h1_0;
	assign zBarShift = ~z >> 1'h1;
	assign gBarShift = ~g >> 1'h1;

Desired solution

It would be nice to see

assign tShift = t << 1'h1;

Alternatives considered

No response

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions