Project

General

Profile

Actions

Bug #5976

closed

Shifted bit vector should be of the same size that was a source one

Added by Mikhail Chupilko over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Andrei Tatarnikov
Category:
nML Translator
Target version:
Start date:
05/22/2015
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Platform:
Published in build:
150522

Description

I have to write coerce explicitly:

wmask<1..0> = coerce(card(2), welem<1..0> >>> R)

rather that simply assign the shift result:
wmask<1..0> = welem<1..0> >>> R

Otherwise there would be an error: can't assign 32-bit value to a 2-bit field!

Actions

Also available in: Atom PDF