145 points · by kensai · 8y ago · 56 comments
Frankly, the closed source tools are pretty awful from a user interface perspective. Under the hood, amazing things happen, but the tools are pretty awful to use.
and the languages... ugh, the languages. Our big leap forward was SystemVerilog. It's a bastardization of three languages: of 80's c++, 80's Verilog, and an interesting constraint solver in a distinct dialect.
We need (in my humble opinion):
* Open source high performance discrete event simulator (language agnostic, use an intermediate representation like a source mapped netlist)
* Said simulator, but distributed (multi core, process, data center)
* An ecosystem that encourages language development (Said simulator could help)
* An open source synthesis framework that can read the intermediate representation netlist.
* GUIs that don't cause eye hemorrhaging and monitor punching.
Open source is hard, because without access to the data, it is hard to do a good tool like a timing analyzer. Heck, when you do have access to the data and you can talk to the physical chemist that designed the process because his desk is 5 rows over it is still hard to get it better than "close enough".
I've thought many times about doing an open source event-driven logic simulator. At one point, I was a top guru of that technology. The thing is, I doubt if a sufficient number of people would care, and it is basically worthless without all the tools that feed it and drive it.
I think the market would create itself with the right ingredients present. I think a high level language, a well defined intermediate representation with an eye toward synthesis but initially just targeting simulation, and a cycle accurate high performance simulator for said intermediate language would be explosive.
(bonus points for writing the sim in WASM, heh)
Explosive? I remain unconvinced. There just aren't enough people doing that kind of work.
I am excited to see progress in open source FPGA fitters. I've always felt those would be hard to do because without access to the performance model, it is hard to do a good job of auto-placement. So that is cool, even though the current open source tool (I forget the name...) only does a few FPGAs.
Verilog is still used for a very good reason, it is not because the EDA industry is stuck in time.
https://www.fbo.gov/spg/ODA/DARPA/CMO/HR001117S0054/listing....
The past and present are mired in "national interests"; but the real obstacle seems to be the idea that you can prevent other people from having what you have (an idea, a weapon, a key, etc.).
EDIT: I was responding to this quote from your link: "The goal of the ERI is to more constructively enmesh the technology needs and capabilities of the defense enterprise with the commercial and manufacturing realities of the electronics industry." I didn't mean to imply that what your company is working on won't work. Unless, of course, that is what your company is working on.
- you're absolutely right that the tools are horrible to use, and Verilog's time is up
- existing chip design companies are extremely conservative and hate adopting anything new even from their own preferred vendor, because risk
- a lot of the key knowledge is spread by apprenticeship and oral culture; analog IC engineers are another culture altogether
There is still something magical when a new chip design comes back from the fab and boots up!
For the rest; yeah, it looks like it's pretty eye-bleeding and hacked together from decades worth of odd little one-off tools: http://opencircuitdesign.com/qflow/, https://opencores.org/howto/eda, https://chitlesh.fedorapeople.org/papers/FEL12ReleaseNotes.p...
I do prefer VHDL to verilog. My main reason is Verilog does not make a distinction between variables and other objects. Verilog treats almost everything as if it were an assignment type. Furthermore, variables in verilog are shared by default. VHDL shows how it should be done. There is a clear distinction between signals and variables. Additionally, variables are local by default.
My opinion of course. Although VHDL can be bit more wordy. However, that's least of my worries (wordiness) when designing something. I would rather have clear semantics for me and other people on what the heck is going on.
However, Verilog is just as capable.
But it brings with it the full flexibility of a general purpose programming language which makes it a lot easier to make parameterizable designs which can be more easily reused.
I agree with the assessment of hw engineers doing software.
For a public example, our simulator is very similar to Level 2 of the PARADISE flow being developed at LBNL.
Xfab is on the backend.
I was hired by UC Davis as Summer Intern to work on porting it from X10 to X11 in 1988.
Very cools to see it still around and being used after 30 years!
For instance http://cmp.imag.fr/ has a 350nm process for only 650 euros per sq mm. However, that does exclude packaging costs which is quite steep for such a low number of devices.
I'm interested in getting into FPGAs, but I can't help but worry they are a bit of a dead end as any sufficiently popular use case will eventually be replaced by an ASIC.
Program as a term means something different with chip design than it does with software. An analogy is that to program an FPGA is to paint a canvas. The source code in chip design is instructions for how the canvas should be painted.
Another analogy would be to program an FPGA is to cook a meal. The source code is the recipe for the meal. But one doesn't run a recipe on a meal.
These analogies break down because a painting and a meal is passive... it doesn't do anything by itself, or react to the outside world.
So another analogy would be building a car. Here "programming" and "building" are the analogous terms. The instructions for the assembly line to construct the car is the source code. Once built, the car responds to stimulus (steering wheel, pedals) and does stuff. Same with the FPGA. It has inputs, it responds and does stuff. If you painted a picture of a CPU in your FPGA, it could run software.
There is tremendous overlap in designing for an FPGA and an ASIC. Most ASICs start life as an FPGA simply to prototype an idea.
The difference between an ASIC and an FPGA, at a high level from a design perspective, is the difference between writing with a pen vs a pencil. Learning to write is equally applicable.
It's probably not helpful to think about right now, but an FPGA is actually an ASIC.
Honestly, a LUT can be pretty efficient structure for what it does. The biggest advantage to coarse grained structures is their they are much faster since the internal construction can use optimal routing.
The biggest issue with FGPA's is the programmable routing/connections. Ideally each LUT would form a complete graph. However, the number of wires grows at the approx rate n(n-2)/2 where N is the number of LUTs. So instead the structure is more hierarchical. Still the majority of silicon on an FPGA is still just used for routing.
However, I think an array of ALU's actually could be quite useful for some applications over an FPGA.
FPGAs are not going away as they fill the nitch where a CPU/GPU is not fast enough, but the quantity of units needed does not justify the cost of making an ASIC. Cheap FPGAs also replace glue logic in smaller run products.
Many different FPGAs exist for different tasks. Some include multiple ARM cores so your FPGA design doesn’t have to waste FPGA space on a processor. A few even have programmable analog sections.
Technically speaking, you have to worry about these things on FPGAs as well.
But FPGAs and ASICs are quite different, so you'll have to adjust the design for those differences. In fact, you may have to adjust the design when switching fabs, because of process differences and resulting standard cell library differences.
"...a simple ASIC (say one that is a few square millimeters in size, fabricated using the 250-nm technology node) might cost a few thousand bucks for a couple dozen samples."
My summer jobs in university were for software companies, because it's easier for software devs to make something useful in a couple of months, and I was more interested in the company's location than the type of work.
I think I want to get back into hardware. I just transferred with my boss from a spin-off to a parent company, and the large company has absurd policies that bother me. Everything done during working hours belongs to the company, so all my side projects are on hold. They don't keep me busy with company projects though, so I'm really bored a lot of the time (and end up here on Hacker News). The side projects (e.g. Chinese learning) are totally unrelated to the company's business (control systems for microSD testing equipment), but it's futile to oppose the policy.
What's it like on the hardware side? If I get a job doing hardware, but have idle time in the office, am I allowed to pursue my own side projects and publish those on Github? That would encourage me to make the leap.
Granted there isn't a lot of love for patents with software, but I think ASIC design is a case where the concept would be beneficial for the public. Although the fabs would have a monopoly on their process for a time, it would atleast be published so that open source tools could be made that take advantage of these processes.
I know of at least one place that grows their own wafers and does all their own processing, and publish absolutely nothing about it - no patents, no external papers, zip, zilch, nada - specifically because other people could read the patents and figure out what they were doing, so they keep it all trade secret. It gives them absolutely no advantage to publish about something it requires enormous capital costs to even be considering, it risks exposing some of their secret sauce, and it costs tens of millions of dollars (...a year) to develop and maintain - and you'd want them to what, give it away? For 'open source'?
Open source hasn't even given us a competent PCB package, and has only recently given us a marginally passable office suite. In 2018.
Let the magnitude of the utter failure of open source just sink in for a minute, there. Are people really that clueless, that they think "well, someone will take advantage of this if we just get people to publish about all the details that someone else spent all the money to create AND maintain!"
I absolutely don't get the circle jerk for open source. It's amazing and wonderful at times, but let's not pretend it solves real problems. Elon Musk isn't going to open source his rocket designs anytime soon, but if you want a selection of 35000 poorly designed MP3 players, open source has your back!!112
If an open source solution solves a real problem, it was government funded (SPICE, LAPACK, MAXIMA, etc). We all paid for it. The one shining counterexample is the GNU Compiler - but FFS, they couldn't build a kernel even after the success of their compiler!
With gcc, IIRC Richard Stallman was basically just playing cat-and-mouse with feature parity with the commercial compilers for several years. Okay, very impressive investment in terms of total SLOC, but methinks that's a byproduct of a brain being able to excel in exactly the field it's really really good at. Apparently rms wasn't a kernel person (?).
Broadly speaking open source gives me the impression of a bunch of people who honestly don't know what they're talking about and who aren't really all that smart. As a collective, that group isn't going to have very good ideas or execution. There are undoubtedly some smart people hiding in the corners, but their work is shunned or scoffed at because of the collective lack of intelligence of the whole.
While probably a frustratingly unanswerable question, I've been yearning for an online community for some time that are like-minded toward the idea that open source isn't everything and that there are better things out there.
Yay!
<Clicks the link> https://info.blackducksoftware.com/rs/872-OLS-526/images/OSS...
Nooo…