VHDL 2019 supply and demand

Given that we have now entered another calendar year without any widespread tool support for VHDL 2019, I thought it would be worth starting another discussion about its perceived merits and prospects for adoption.

Myself and my team are probably in the same position as most other users out there in their use of VHDL, having adopted 2008 for testbenches but stuck with 93 for synthesisable code. The main reason being the failure of synthesis tool vendors to consistently support VHDL 2008. Obviously this discourages established users from adopting 2008 due to doubts about portability, but it also has the more pernicious effect of forcing new users (students and hobbyists) to use 93 and view 2008 features as some kind of exotic luxury. For simulation the situation is much better, one can write 2008 testbenches confident that they will work in other simulators, but this does not entirely compensate for the damage done.

As for 2019, there are a couple of new features that I am especially keen on. Which are the improvements to the file API (directory manipulation and random access files) and 64-bit integer support. It seems to me that these particular parts of the standard would be reasonably simple to implement in a simulator from a technical standpoint. But after the fiasco of 2008 I suspect I am expecting too much to think I will ever get to use them, even with access to the latest version of ModelSim DE.

So r/FPGA, I will leave you with some questions:

  1. Is your experience of VHDL 2008 different to mine?
  2. Is there some feature of VHDL 2019 that you are also hankering for but can't use?
  3. Maybe there is some feature you wish was in 2019 but isn't?
  4. The typical vendor response seems to be "We will implement VHDL 2019 when customers demand it." Well when they are in their annual listening mode (which oddly enough seems to coincide with the quote for licence maintenance), I will be asking what's happening. For those also paying maintenance for a tool, have you asked about VHDL 2019 support? If so what was the response?

Posted Jan 7, 2022, 12:24 PM UTC

3623

I'm curious as to why you feel synthesis tools don't support VHDL2008. Vivado, Quartus and Synplify all have a lot of support. There are some super frustrating bugs that one has to investigate and find work arounds for. Also worth noting Riviera has some VHDL2019 support that I hear works pretty well, but have not tried it myself.

In terms of my desires for VHDL2019, there are quite a few things I want. The biggest one is the interfaces, which in my opinion renders most of the GUI flow advantages completely obsolete. I'd also appreciate the 64 bit integers, a lot.

I'd have to study VHDL2019 more to know what's in it, there's almost certainly more I'd want but I haven't given it.

I've asked Xilinx, they've told me there is not enough demand at the moment. I'm not convinced that's completely accurate, we should all speak up often and loudly!

18
skydivertricky•

Vivado was one of the last to the vhdl 2008 party. While they started "supporting " it many version ago, it wasn't until v2019.2 that some terrible bugs got fixed. Given the sudden increase in support, I can only assume some big customer threatened to jump ship without it.

Fpga tools have always been slow with standard support. Vivado has a bad 2008 rep, and it is very weird that the 2008 support in the simulator is practically non existent (plus listing 2002 features as 2008). But remember that some tools never even got full 1993 support even several years after standardisation ( eg max plus 2 ).

8
FieldProgrammableOPIntel User•

According to the comparison page Quartus Prime only supports 2008 in the pro edition, not standard or lite. Which is absolutely useless to me because Pro supports a much narrower range of devices than Standard or Lite, so if I write any synthesisable code in 2008 it won't work on a whole swath of Intel FPGAs.

4

Yeah standard sucks.. Pro is for the stratix 10/agilex/arria 10 type parts which are all I care about. If you're stuck on the the older or tinier things like the max10 then you either don't use VHDL2008 or shell out money to Synopsys for a synplify license. I have complained to Intel about this as all new parts should be supported in pro is my claim which would cover the max10. If you're stuck on older Xilinx parts (prior to 7 series), then you have the same problem with ISE.

2
skydivertricky•

What's even funnier for ise is os support.

1
physix4•

Quartus 20.1 Lite does support a subset of VHDL 2008. I rarely run into issues, the last one I can remember was numeric_std_unsigned not being present (even though the source file is present in the installation directory). As I only use Quartus as hobbyist, I don't care all that much that it does not have full and official support, but I definitely understand it if in a professional setting.

2
KevinKZ•

I don’t understand. I’m using the student edition and it has support for 2008

1
FieldProgrammableOPIntel User•

Well as others have since pointed out, there are features of 2008 that do work in Lite despite Intel saying it isn't supported, so I guess it's not surprising that you also found an exception.

In any case, the fact that they don't provide any guarantee that the tool complies with the standard causes ambiguity and confusion. Those who need to be conservative fall back on the lowest common denominator of VHDL 93 and as a result knowledge and use of 2008 is much more limited than it should be.

1
KevinKZ•

Oh I hadn’t even noticed that. The few things I’ve used so far from v2008 have worked out well but I guess when it comes to more obscure cases, it doesn’t work out that well

1
threespeedlogicXilinx User•

Xilinx supports VHDL-2008 in synthesis better than in simulation. XSIM is not alone here: third-party simulators nickle-and-dime you for support (mixed language, VHDL-2008) in ways that FPGA vendors can't, whereas everyone using Xilinx parts uses Vivado as a synthesizer. The incentives are better for synthesis than simulation.

I believe there's only one way to break the supply/demand problem: for new VHDL-2019 features, create a translation layer that converts VHDL-2019 code to VHDL-2008 code. I've heard it called a "polyfill" in the JavaScript world, where different browser and JavaScript versions created a compatibility morass. Unfortunately, VHDL is difficult to parse.

Personally: I would love to use interfaces for top-level stitching of buses.

9
ReversedGif•

You can use GHDL's parser by dumping its AST with ghdl --file-to-xml.

3
fullouterjoin•

I'd also look at the ecosystem around https://github.com/fabianschuiki/llhd which include parsers and simulators.

2
FieldProgrammableOPIntel User•

Well I've never had issues with 2008 support in ModelSim either in the OEM flavours or PE and DE. I mainly use 2008 for its hierarchical reference support (external names and aliases), which are pretty important for an advanced testbench.

I'm not sure how you would translate things like the new directory and time/date API calls from 2019 to VHDL 2008, where they simply don't exist.

2
threespeedlogicXilinx User•

Clearly, not all of VHDL-2019 could be polyfilled into VHDL-2008 or '93, easily, practically, or at all. However, some of it could. (My test particle, again, is interfaces. Looking back on VHDL-2008, there is a lot of syntactic sugar that could have been polyfilled back to '93 in pure VHDL - no translation layer required.)

At best, a polyfill helps break up the vendor-reluctance logjam we're currently stuck in by demonstrating demand. At worst, we get some VHDL-2019 support we otherwise wouldn't have, at the expense of an extra translation layer. Whether this is worthwhile or not depends a lot on the quality and ergonomics of the translation layer itself.

2
d360jr•

A poly fill for an OS call like a date time req would be a call to a native program that returns the value. So you’d write a python component to the VHDL polyfill for example

2
threespeedlogicXilinx User•

To pick nits - the date/time API is reviewed in this Sigasi article. From a simulation context, the underlying date/time call should operate at runtime within the simulator - it's not a static value that can be produced during translation. (I suppose a static translation value be quasi-useful here, depending on the purpose - but it's certainly not what the VHDL-2019 standard intended.)

A correct polyfill for time_record in a VHDL-2008 simulator would require a VHPI or DPI call from within the simulator to the OS - which seems plausible. Doing this in a simulator-agnostic way is the kind of headache that tooling like edalize tries to make less obnoxious.

1
Usevhdl•

I did a series of VHDL-2019 webinars with Aldec. The recordings are here:
Part 1: https://www.aldec.com/en/support/resources/multimedia/webinars/2116
Part 2: https://www.aldec.com/en/support/resources/multimedia/webinars/2121
Part 3: https://www.aldec.com/en/support/resources/multimedia/webinars/2124
Part 4: https://www.aldec.com/en/support/resources/multimedia/webinars/2134

These reflect what Aldec RivieraPRO had implemented by Spring 2021. There will be additional presentations this spring.

I tried out versions of the code I used in the webinar and it is available on GitLab here:
https://gitlab.com/synthworks/VHDL_2019

WRT to VHDL-2019 features that are important to me - Interfaces is probably number one. The one that surprises me that I want is impure functions with out and inout parameters (allow side effects).

For both of these, if they were portable, I would start using them immediately. It is likely that I will pre-implement and test some of the capabilities that I have planned for impure functions - because Aldec has already implemented it.

The vendor response of "We will implement VHDL 2019 when customers demand it." seems to me to be an indication of how little that vendor pays attention to you as their customer.

6
skydivertricky•

Active hdl 13.0 will have huge vhdl2019 support. From the pre release I used i think most of the protected type improvements were working and I think improved function interfaces also worked. I'm not sure what's taking the release so long.

3
Usevhdl•

My GitLab examples run in RiveraPRO - and they have OSVVM pro scripts so they can be run on other simulators once they support VHDL-2019.

1
asp_digital•

I've been in Microsemi (now Microchip) land for awhile, and the provide Synplify Pro and ModelSim Pro, both of which have solid VHDL-2008 support. By that I mean there has not been a feature of 2008 I've needed that neither supports. This includes fun stuff like package generics as well as unconstrained vectors everywhere. For simulation the expanded textio is great.

I will throw in with everyone else who says that the main feature of VHDL-2019 that is a must-have is interfaces. And yeah, 64-bit integers would really help.

Microchip has not said anything about VHDL-2019 support, most likely because they outsource that to Synopsys and (I guess it's) Siemens. The last two versions of Synplify Pro provided with Libero have had a VHDL-2019 option, which does as far as I can tell three things. One: it enables the conditional analysis feature. Two: the subtype (range) of a signal or variable can be automatically inferred from its initialization expression. Three: an initial-value expression can contain when-else expressions.

ModelSim, at least according to the manuals provided with Libero 2021.3, does not support any of VHDL-2019.

4
Allan-H•

an initial-value expression can contain when-else expressions

That was one of my requests. I thought it was going to be in VHDL2008, and was disappointed to find that due to a mistake in the BNF it only allowed for when-else expressions in signal and variable assignments.

1
Usevhdl•

Is there any truth to Altera/Intel had VHDL-2008 support in the lite tool and now does not offer it because the tool is free?

1
FieldProgrammableOPIntel User•

I believe it was partially supported in Quartus II web edition (I think it was in 13.1) but support was removed from Quartus Prime Lite. But if you consider that ISE has never supported 2008 then the window of having good support from both main vendors is small.

The joke is that it isn't just the free version of Quartus that lacks 2008 support, the standard edition doesn't support it either, only Pro edition which only supports the latest top tier parts. Want VHDL 2008 support on Cyclone V? Nope, you're shafted.

1