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.

ISIM sfixed values looks wrong.

Status
Not open for further replies.

nesta

Junior Member level 2
Joined
Feb 19, 2010
Messages
20
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,466
Hi VhdlExperts,

I am using Xilinx webpack 12.4 ISIM and see some strange results for sfixed values especially for negative numbers.

for eg:

signal Ain : sfixed(7 downto -3);

Ain <= to_sfixed(-2.5),Ain);


gives me 11111101100 (ie 11111101.100 ) instead of 11111110.100


-----

Ain <= to_sfixed(-3.5),Ain);

gives me 11111100100 (ie 11111100.100 ) instead of 11111101.100
---

Am i doing something wrong, or my intrepretation is wrong.


Also would like to know if the operators & functions like ( + addition, * mul, abs) are synthesizable as i am using simulator currently.



Please help.

Thanks,
Sunish
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top