Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

balsa user: how to implement multiplication in balsa

Status
Not open for further replies.

sages

Newbie level 6
Joined
Jul 27, 2011
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,353
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
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top