# \#division

**URL:** https://verificationacademy.com/forums/tag/division/6002.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [Newbie Question: Division Result wrong when using input longint](https://verificationacademy.com/forums/t/newbie-question-division-result-wrong-when-using-input-longint/37073)

<div class="topic-metadata">

**Author:** [@SparkyNZ](https://verificationacademy.com/forums/u/SparkyNZ)\
**Replies:** 3\
**Last updated:** [January 25, 2020, 6:44pm UTC](https://verificationacademy.com/forums/t/newbie-question-division-result-wrong-when-using-input-longint/37073 "2020-01-25T18:44:07Z")

</div>

In my main/top module I instantiate the following: longint baudRate = 9600; UART\_BaudRate\_generator BaudGen1( .Clk( clk ), .Tick( baudTick ), .BaudRate( baudRate ) ); … module UART\_BaudRate\_generator…

---

## [Wrong result of div](https://verificationacademy.com/forums/t/wrong-result-of-div/32831)

<div class="topic-metadata">

**Author:** [@saritr](https://verificationacademy.com/forums/u/saritr)\
**Replies:** 4\
**Last updated:** [February 9, 2017, 4:02pm UTC](https://verificationacademy.com/forums/t/wrong-result-of-div/32831 "2017-02-09T16:02:59Z")

</div>

I have the following member of in\_trx class: bit signed \[15:0\] rand\_data\_xi; logic \[3:0\] fact\_log\_2; And the followinf var: bit signed \[15:0\] xi\_prev = 0; bit signed \[15:0\] yi\_prev = 0; I…

---

## [Wrong rounding the result of division](https://verificationacademy.com/forums/t/wrong-rounding-the-result-of-division/32799)

<div class="topic-metadata">

**Author:** [@saritr](https://verificationacademy.com/forums/u/saritr)\
**Replies:** 3\
**Last updated:** [February 2, 2017, 2:45pm UTC](https://verificationacademy.com/forums/t/wrong-rounding-the-result-of-division/32799 "2017-02-02T14:45:46Z")

</div>

I have the following asssignment : predicted.y = ($signed(in\_trx.xi) \* $signed(in\_trx.cos) - $signed(in\_trx.xq) \* $signed(in\_trx.sin))/ (131072); Where the type are: bit \[15:0\] xi; bit \[15:0\] xq; bit \[15:0\]…
