From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,509f8e43dc081fde X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!sumatra.thomas-huehn.de!news.bawue.net!npeer.de.kpn-eurorings.net!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Simulation of fixed point in c WITH DIFFERENT BIT-WIDTH Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1130690498.388857.225170@g49g2000cwa.googlegroups.com> Date: Sun, 30 Oct 2005 18:00:22 +0100 Message-ID: <1pha1l3xyu60.3jh4odnl0esm$.dlg@40tude.net> NNTP-Posting-Date: 30 Oct 2005 18:00:20 MET NNTP-Posting-Host: db304007.newsread2.arcor-online.net X-Trace: DXC==Z3>oPUU>D6h^:`T28h7Qn?D9BSA]<2l84:\?TkB9[6LHn;2LCV>[ On 30 Oct 2005 08:41:38 -0800, mnamky wrote: > Consider the following exaple > y = x * b' > > where x is 12-bit wordlength and 11-bit fraction > and b is 16-bit wordlength and 14-bit fraction ... and b' is a differential of b? (:-)) > simulation of this code What does it mean to "simulate code"? > is rather easy im Matlab but how could we do a > full analysis of this code in C with a good precision? "Precision of full code analysis" sounds like compiler writing. Are you writing a compiler ... in MATLAB/Simulink? (:-)) AFAIK, MATLAB/Simulink generates C and Ada code, so you can take a look at it. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de