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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1a44c40a66c293f3 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!uns-out.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Preferred OS, processor family for running embedded Ada? References: <1172192349.419694.274670@k78g2000cwa.googlegroups.com> <1172239820.896603.222120@k78g2000cwa.googlegroups.com> From: Stephen Leake Date: Sun, 25 Feb 2007 10:08:57 -0500 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:1bwcT3AyxbTWEfygdcwXL/sQbOA= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 5a7fe45e1a68e759e00d420334 Xref: g2news2.google.com comp.lang.ada:9523 Date: 2007-02-25T10:08:57-05:00 List-Id: "Dr. Adrian Wrigley" writes: > I came to Ada from VHDL. When I first encountered VHDL, my first though > was "Wow! You can say what you mean clearly". Features like user > defined types (ranges, enumerations, modular types, multi-dimensional > arrays) gave a feeling of clarity and integrity absent from software > development languages. I had the same feeling when I first met Pascal, after learning APL and Basic. Then Ada was just more of the same :). > But I have ever since wondered why the VHDL and Ada communities are > so far apart. It seems like such a natural partnership for > hardware/software codevelopment. And there is significant scope for > convergence of language features - fixing the niggling and > unnecessary differences too. Physical types, reverse ranges, > configurations, architectures, defered constants and ultra-light > concurrency come to mind from VHDL. And general generics, private > types, tagged types, controlled types from Ada (does the latest VHDL > have these?) I haven't actually studied the additions in VHDL 2003, but I don't think most of these Ada features make sense for VHDL. At least, if you are using VHDL to program FPGAs. And reverse ranges make things ambiguous, especially for slices of unconstrainded arrays. So I don't want to see those in Ada. One big problem with VHDL is that it was not actually designed for programming FPGAs; it was designed as a hardware modeling language. People discovered that you can sort of use it for FPGA programming, and it was the only standard language available for that purpose. There are many things that you can say in VHDL that make no sense in an FPGA, so each compiler vendor picks a slightly different subset of VHDL to support for FPGAs, and gives things different meanings. > Perhaps a common denominator language can be devised which has the > key features of both, with none of the obsolescent features, and > can be translated into either automatically? Why would you want to translate them into each other? The semantics of VHDL are _significantly_ different from Ada. A VHDL process is _not_ an Ada task. Although I suppose if you decided to use VHDL to write code for a CPU instead of an FPGA, you could decide that they were the same. -- -- Stephe