7 ms·
FPGA Interchange format to enable interoperable FPGA tooling
- jka 5y agoPotentially relevant: AMD Receives Approval for Acquisition of Xilinx[1] and HN discussion[2] [1] - https://www.amd.com/en/press-releases/2022-02-10-amd-receives-all-necessary-approvals-for-proposed-acquisition-xilinx https://www.amd.com/en/press-releases/2022-02-10-amd-receive... [2] - https://news.ycombinator.com/item?id=30285837 https://news.ycombinator.com/item?id=30285837
- transpute 5y agoOCP ODSA work on chiplets, https://www.opencompute.org/events/past-events/odsa-chiplet-business-enablement-workshop-presented-by-ase-group https://www.opencompute.org/events/past-events/odsa-chiplet-... Could the upcoming TSMC fab in Arizona be used for FPGAs which require US mainland provenance? OpenFPGA, https://osfpga.org/introduction-to-openfpga-a-fully-customizable-fpga-ip-generator-open-source-toolchain-initiative/ https://osfpga.org/introduction-to-openfpga-a-fully-customiz... > The Open-Source FPGA Foundation offers a set of free and open-source tools enabling fast prototyping for FPGA chips and automated EDA support, through open standard collaboration. The Foundation aims to set FPGA companies free from engineering-labor intensive process in producing FPGA chips, give full freedom for software developers when customize FPGA software stacks and provide an open collaboration for FPGA end-users to implement high-quality designs.
- AshamedCaptain 5y agoSoon: there are 15 different formats for passing netlists around ( oblig https://xkcd.com/927/ https://xkcd.com/927/ ) I have very little hope from any netlist format that comes from Yosys. Not only has it changed a couple times in the last years, but the latest iteration is some JSON-based monstrosity that has to be by far the most inconvenient netlist format ever created (see https://github.com/nturley/netlistsvg/blob/master/test/digital/mux4.json https://github.com/nturley/netlistsvg/blob/master/test/digit... ) .
- drpixie 5y agoGoogle: "So ... we're loosing search ... and people don't trust our email ... and we killed Reader ... Android is falling to bits ... but we have money, and we need a new business ... ... lets get into FPGAs!"
- tasty_freeze 5y agoI down-voted you and I want to explain why. First, the authors of the article are from Antmicro, not Google. They partnered with google in this effort. But more importantly, your comment is easy cynicism and doesn't offer any new information or insight. I'm guilty of it myself, and when I recognize it in myself I try to resist. All language is open to interpretation, especially written language. Dialog is more productive if one tries to assume the most charitable reading instead of the worst.
- JaimeThompson 5y agoWith each passing month it gets hard to assume the most charitable read from things coming out of Google when the negative things keep coming. They really need to stop penny pinching when it comes to their customers.
- drpixie 5y agoFair enough - it was quick cynicism - apologies for my quick reaction. Not really up to Hacker News standards. For some perspective, I've been around long enough to have seen many many similar things before ... generally not for the better. I saw Google appear, and do very well, all the while acknowledging that their world is complex and their business had the potential for terrible consequences. Remember "Don't be Evil." That could have been enough - do great, useful, interesting stuff, and profit from it. But Google (like most of the others) has been subsumed by new managerialism and short-term goals. Search and Maps have both morphed and look more like low-end advertising directories. Android hasn't learnt much from Windows; is driven by "feature tick-boxism" and becomes more bloated and confused (for users and programmers) with each release. And short-term profit-driven decisions have written-off or endangered products like Reader, Drive, and Gmail. So when I see "Google" and "FPGA" I was primed for warning flags. And flags-a-plenty there are. I'm afraid I distrust the basic model: pick an open source tool (nextptr) and "extend" it (which locks users into the new tool). Create an "alliance", bundle, and add bits and pieces. It looks (deliberately or not) like an attempt to dominate an environment - reminds me of the Android development environment, and not in a good way.
- williadc 5y agoNote: I support design silicon at Google, but made no contributions to this project. I'd love to see an open standard be widely adopted in this space. In my daily work, open standards (Si2.org formats and SDC in particular) drives meaningful competition and moves the industry forward.
- AshamedCaptain 5y agoIs SDC actually open? The company whose name is the first letter of the acronym is known to be litigation-happy, and has successfully sued smaller players into oblivion just for trying to interoperate. The larger players never care about this.
- aseipp 5y agoYou can download some generic specs from Synopsys under an "open source license agreement" (hah) for various things including SDC and Liberty.[1] I think it even comes with a generic set of tcl definitions for things like set_false_path, create_clocks, etc that is intended to be integrated by EDA toolmakers themselves into whatever they're making, I guess. It's not like it's all that uniform between the vendors; it's just a generic set of limited TCL APIs, but I guess it doesn't matter if they can just bully you anyway. [1] https://www.synopsys.com/community/interoperability-programs/tap-in.html https://www.synopsys.com/community/interoperability-programs...
- femto 5y agoFair enough to create a device/vendor independent format for describing FPGA resources, but why not use EDIF [1] for the logical and physical netlists? [1] https://en.wikipedia.org/wiki/EDIF https://en.wikipedia.org/wiki/EDIF
- AshamedCaptain 5y agoOr BLIF or EBLIF (already used by the verilog-to-routing flow), or structural verilog, or a dozen more. But no, let's invent yet another netlist format. The fact that these existing formats are all named "xxx logic interchange format" should give you an idea what will happen to this new "interchange format". It will be used mostly to interchange with itself. From what I gather ( https://github.com/SymbiFlow/python-fpga-interchange/blob/master/tests/example_netlist.py https://github.com/SymbiFlow/python-fpga-interchange/blob/ma... ) , the new format is basically close to the existing Yosys/nextpnr JSON format except dumped as a Cap'n Proto binary file. I am not impressed -- this is even more inconvenient than a huge JSON file. I guess the meat here is on the universal device resources format anyway...
- clavin1024 5y agoA few reasons why EDIF might not be a good candidate for this: 1) The standards body that controls EDIF no longer exists, this could limit the ability to evolve and improve it. 2) Large placed and routed FPGA designs contain a lot of data and rendering it to EDIF would just slow down the process of transferring, parsing, etc. Binary is the way to go (unless debugging, the FPGA Interchange Format offers a human-readable version for that). As a comparison, some of the proprietary vendor design formats can take tens of minutes to load a full design. 3) Expressing the details necessary to reconstruct a placed and routed FPGA circuit would not naturally flow from EDIF. EDIF is good for describing a logical netlist. However, a placed and routed FPGA implementation is the mapping of a logical netlist onto the physical netlist of the FPGA. Building a format suited to FPGA architecture makes expression of these constructs easier and more efficient. 4) Writing and maintaining an EDIF parser/de-parser creates more work than using a schema-based code generator. Although work is still involved when interfacing the tool to the format, it removes a pile of issues associated with text-based formats. [edit: fixed typo]
- Traster 5y agoI'm really interested in this subject. What with it being my job. I've thought about this a lot, and the fundamental problem for me is that you have RTLs, but these don't mean anything, they're a cruel joke on engineering students "Oh sure, you can do that in this language but does it map." The problem is that really it's only a tiny subset of RTL languages that are supported by FPGAs, and an even tinier subset that's optimial. God alone can write 10 lines of RTL that'll map to DSP blocks utilizing the carry chain. The problem isn't that the languages don't support multiple targets, it's that the targets are so idiosyncratic that you have to know exactly how it maps. Now, what this format promises to do encompasses describing the resources on a device, but there's a few problems with this. Firstly, they're incredibly complex in terms of trade-offs (you can do X Y Z but X only in A mode Y in all modes but B, Z but the timing of N is off). The likely result of this are a set of simplified rules that make it tractable, but not performant. Secondly, since the only way of getting optimal hardware is to design it for one target - an interchange format seems like nonsense. It's exactly like RTL - it describes everything but doesn't functionally help you translate between targets at all. Fundamentally this just doesn't seem like it solves anything, it's seems to suggest "Hey guys, adopt our standard for all your stuff!", but why? They don't seem to be offering anything of value. If I were being particularly glib, I'd wish a swift promotion to the guys at Google who authored this.
- p1esk 5y agoYour comment is insightful. But what would be the solution? IP blocks for everything? Smarter compilers/mappers? A dominant FPGA vendor who would force a standard for everyone to follow? Or are you content with the status quo? I mean, I don't see why an FPGA expert wouldn't be :)
- admax88qqq 5y agoPerhaps this is why FPGAs are still relegated to mostly prototyping tools, or niche use cases where such low level reprogrammability is needed. For mainstream use and high perf/low power you're maybe still better off doing custom synthesis.
- 5y ago
- xphos 5y agoThe problem is not that you need a unifying language to do this , you already have 2 vhdl and verilog which are mature etc. The problem is and has always been vendors don't want to release their tools. It's like saying only one assembly language should exist. Why? There can be multiple versions of assembly but the vendors of these things need to release a version of llvm or gcc that allows people to build for there devices without having to pay 10000s of dollars to use them. Players like Xilinx have held out their compliers and instead selling them and using lawsuit to prevent people from reverse engineering there IP. This hasn't stopped people or lesser players like lattice from doing this but it's definitely slowed it down. I think open sourcing or releasing the compliers is just kind of forced because what new company would but a complier if they can get one for free (yosys).
- duskwuff 5y agoHDLs like VHDL and Verilog are at a different level. If HDLs are like C, the interchange format is more comparable to a .o file. That being said, EDIF already exists.
- Taniwha 5y agowe've commonly used verilog (just instantiating gates) to do this - partly because for a period (ie the 90s) we didn't really trust synthesis tools to get it right and always ran gatesim before we taped out just in case. My crowning glory hack from that era was a perl script that read verilog netlists and lisp placement data between the place and route stages of the P&R tool and did location dependent scan insertion producing a netlist and a the lisp instructions to the P&R tool to fix it up
- Rochus 5y agoYou can pretty well represent low-level netlists in Verilog. EDIF is big and complex and there are different only partially compatible versions in parallel use.
- mithro 5y agoOn a semi-related note, Google has also been investigating in improving support for SystemVerilog support in open source tooling -> https://opensource.googleblog.com/2021/09/open-source-systemverilog-tools-in-asic-design.html https://opensource.googleblog.com/2021/09/open-source-system...
- bandq 5y agoLike a few other people have said, EDIF has existed for decades and it works and it's open. As of late it seems to be a lot of re-invention of problems that have been solved, except there's some use of JSON, Python, etc. It feels like people solving problems they find interesting rather than solving problems that are necessary.
- bandq 5y agoSince I was curious myself to see what was out there for EDIF, I stumbled upon this -- an open-source C++ library to read/write EDIF (I haven't used the library nor do I have any affiliation with the project): http://torc-isi.github.io/torc/index.html http://torc-isi.github.io/torc/index.html
- nudgeee 5y agoIndeed, in the mid 2000s I worked on building tool flows in a multi-vendor environment with EDIF as the common netlist format. It worked fairly OK, with some tweaking. I synthesized complex modules to EDIF/NGC using Synopsys Design Compiler, Xilinx XST and Mentor Precision and stitched them together via NGDbuild targeting Virtex 4 FPGAs.
- kayson 5y agoCadence, et al, came up with the "OpenAccess" for circuit design databases in the early 2000's. Needless to say... it's not very open. Hopefully this is different but I'm not holding my breath. "OpenAccess is a proprietary API controlled by the OpenAccess Coalition" https://en.wikipedia.org/wiki/OpenAccess https://en.wikipedia.org/wiki/OpenAccess
- baybal2 5y agoIt's because they did it to counter Artisan "free IP" Artisan is now off the scene, and they have no incentive to do it properly now.
- xvilka 5y agoThere is a nice discussion[1] about the same in SymbiFlow[2]. I hope, they at least read through it. [1] https://github.com/SymbiFlow/ideas/issues/19 https://github.com/SymbiFlow/ideas/issues/19 [2] https://symbiflow.github.io/ https://symbiflow.github.io/
- phendrenad2 5y agoI don't think it's the same. That proposal seems to be be an intermediate format that VHDL and Verilog (and things like MyHDL/SpinalHDL). The FPGA Interchange Format seems to tackle a more compelling challenge: A format for defining the routed (or maybe partially-routed) design (actually, it seems like a general-purpose netlist that can describe the FPGA before and also after place & route).
- jhallenworld 5y agoWhat's funny about this is that it exists, but owned by Xilinx... In the early 90's NeoCAD created multi-vendor P&R tools. Xilinx bought them, their software became basis for Foundation and then ISE. Lattice also uses the NeoCAD tools for their FPGAs (at the time, they were AT&T's ORCA FPGAs). Basically Lattice Diamond and ISE are almost the same tool..
- javajosh 5y ago>By focusing on the only architecture type in mainstream use on the market today, namely island-based (also called tile-based) FPGAs, the standard reaches a level of universality and conciseness, which makes it easy to work with, adopt, and implement. This implies that there are other architectures this group looked at and felt did not need to be addressed in this announcement. What are they, I wonder?
- nickysielicki 5y agoPretty sure it’s just PR/HR gibberish to justify why this project is so acutely aware of the Xilinx chips they’re supporting.
- MobiusHorizons 5y agoI think it might be trying to explain the difference between a format for use when building ASICs and one that targets fpga architecture. With an fpga, there is a structure (the tile) that contains some ram some, luts and other blocks. The luts are reconfigurable, and so is the wiring, but otherwise the fpga is mostly fixed. So this is quite different than an asic, where there are more cell types (flip flops, logic gates, or fets, etc) and they can be freely placed in the design.
- jecel 5y agoThe other popular architecture is the CPLD (complex programmable logic device) which grew out of the PALs (programmable array logic) of the late 1970s. Altera pioneered the CPLD and Xilinx the FPGA in the mid 1980s. Until recently "FPGA" was used for tile based architectures and "CPLD" for macroblock architectures, but marketing has redefined the terms such that small FPGAs are now called CPLDs if they are non volatile (they are already configured when you turn them on).
- ngcc_hk 5y agogeneral hints based on history Car - you need a model T Computer - you need a os/360 and later ms/dos Os - you needs a os/360, unix/linux and ms/dos then windows Mobile - you need apple then android The key immature part is that when you start this no one told you not to start with ecp5 but x. And that is the problem. You need start with 1 then better 2 dominating players in a free to choose environment. Waiting for the market to mature.
- kisamoto 5y agoSemi-related but what is the best intro to FPGAs, their pros/cons and how to program/interact with them? I have a background in software engineering so I'm fairly comfortable with that part but looking for a sideline into FPGAs.
- PanosJee 5y agoHas anyone tried the tooling of inaccel.com?
- kats 5y agoShould have used XSD. ARM, STM, TI, Autosar already use XML-based formats.