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.

fixed point multiplication using verilog

Status
Not open for further replies.

siva_7517

Full Member level 2
Joined
Jan 16, 2006
Messages
138
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
2,401
verilog fixed point

Hi,

In fixed-point multiplication, we should add an extended sign bit in the multiplication process . Example below:

1.110 -0.25 B
X 0.110 0.75 C
-------------------------
0000
111110
11110
0000
-----------------------------
11110100 -0.1875 A


I have try to do a verilog as below:

assign A = B * C

But i dont have an idea on how to do a extended bit in verilog. Hope can help me on this.
Thank in advance.
 

fixed point multiplication

You can use the concatenation operator.

assign A = {4{B[3]}, B} * {4{C[3]}, C};
 

verilog multiplication

Hi,

Is this equation is include with the extra sign bit while doing the multiplication?

assign A = {4{B[3]}, B} * {4{C[3]}, C};Hi,
 

signed multiplication verilog

Yes, it is 4-bit signed times 4-bit signed and result is 8-bit signed.
 

fixed point verilog

Hi,



-----------------1.110 @@@@@@@ -0.25 B
--------------X 0.110 @@@@@@ 0.75 C
-------------------------
---------------- 0000
------------111110------------------->extended sign bit
------------11110--------------------->extended sign bit
----------+0000
-----------------------------
----------11110100 @@@@@@@@-0.1875 A



i understand with concept of increase the output bit........but when we do a fixed point multiplication there is extra sign bit in inserted before the adding is done. I have difficulty on how to intepret this in verilog.thanx
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top