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.

VHDL Mathematic function Implementation

Status
Not open for further replies.

AdvaRes

Advanced Member level 4
Advanced Member level 4
Joined
Feb 14, 2008
Messages
1,163
Helped
113
Reputation
220
Reaction score
51
Trophy points
1,328
Location
At home
Activity points
7,442
Hi members,
Can someone tell me how to implement this function in VHDL:
A*B

Where:
A is a signed 16 bit data
B=∑dij.(2^i)
Thanks in advance
 

Hi
Is dij a float value.convert to bit vector.
A is signed 16 bit data so MSB represents sign value one for negative zero for positive.
check for conditions based on this.
2^i is simple shift opeartion- left shift by i times.
I hope this helps and further discussion welcome...

regards,
Vinod
 

    AdvaRes

    Points: 2
    Helpful Answer Positive Rating
vinodkumar said:
Hi
Is dij a float value.convert to bit vector.
A is signed 16 bit data so MSB represents sign value one for negative zero for positive.
check for conditions based on this.
2^i is simple shift opeartion- left shift by i times.
I hope this helps and further discussion welcome...

regards,
Vinod

Thanks,
For your help. I forgot to say that dij can be 0, 1 or -1. These values are taken from a matrix. How to compute B ?
 

size of your matrix i.e., i,j range...and model it has a RAM..

check this link:
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top