dll_fpga
Full Member level 3
- Joined
- Mar 9, 2011
- Messages
- 185
- Helped
- 19
- Reputation
- 38
- Reaction score
- 21
- Trophy points
- 1,298
- Location
- kerala,India
- Activity points
- 2,416
hello,
I'm designing a multiplier module for image compression it should give
xxxx.xxxxx
xxxx.xxxxx
ie 4.5*4.5 =8.10(result)
where 8 and 10 are decimal and fractional part.....
1) how can i view decimal numbers having fractional part in modelsim?Modelsim is showing the number as a single unit.....but i need to see decimal and fractional parts seperate...like(eg 5.12)how can this be done?
2) now i need to quantise the result.........But how many bits can i discard ?Is there any rule?or should i use matlab?(If then how)?
I'm designing a multiplier module for image compression it should give
xxxx.xxxxx
xxxx.xxxxx
ie 4.5*4.5 =8.10(result)
where 8 and 10 are decimal and fractional part.....
1) how can i view decimal numbers having fractional part in modelsim?Modelsim is showing the number as a single unit.....but i need to see decimal and fractional parts seperate...like(eg 5.12)how can this be done?
2) now i need to quantise the result.........But how many bits can i discard ?Is there any rule?or should i use matlab?(If then how)?