preet
Advanced Member level 4

signal cc_c : std_logic;
variable right_operand : word;
variable tmp_result : unsigned(word'length downto 0);
tmp_result := ('0' & GPR_r1) + ('0' & right_operand)+ resize(unsigned'('0' & cc_c), word'length + 1);
ERROR:HDLParsers:827: The above expression can not be qualified by type unsigned
ERROR:HDLParsers:3324: IN mode Formal NEW_SIZE of resize with no default value must be associated with an actual value.
Please guide me for the above error
Warm Regards
variable right_operand : word;
variable tmp_result : unsigned(word'length downto 0);
tmp_result := ('0' & GPR_r1) + ('0' & right_operand)+ resize(unsigned'('0' & cc_c), word'length + 1);
ERROR:HDLParsers:827: The above expression can not be qualified by type unsigned
ERROR:HDLParsers:3324: IN mode Formal NEW_SIZE of resize with no default value must be associated with an actual value.
Please guide me for the above error
Warm Regards