sages
Newbie level 6
when I'm trying to multiply A by 2, it seems there is no pre-defined macro in balsa.
Thus, I'm trying to use shift method to implement multiplication as below:
variable A : 8 bits
type A8 is array 8 of bit
type B8 is 8 bits
B := (A8 {0}@{(#A)[0:6] as B8})
but there is an error message occure: expression list has fewer elements than expected
anyone could solve this problem?
PS: B := ( (#A)[0:6]@{0} as B8 ) this is right, but not multiplicaiton
Thus, I'm trying to use shift method to implement multiplication as below:
variable A : 8 bits
type A8 is array 8 of bit
type B8 is 8 bits
B := (A8 {0}@{(#A)[0:6] as B8})
but there is an error message occure: expression list has fewer elements than expected
anyone could solve this problem?
PS: B := ( (#A)[0:6]@{0} as B8 ) this is right, but not multiplicaiton