5 ms·
In a general purpose language, every line of code is implicitly sequenced, until told otherwise (e.g. for each in parallel, do...) In a hardware description la
by etep 12y ago
In a general purpose language, every line of code is implicitly sequenced, until told otherwise (e.g. for each in parallel, do...)
In a hardware description language, every line of code is executed in parallel, unless explicitly sequenced.
QED
I think it would be interesting, or at least instructive, to try and teach the HDL version of thinking to an untainted student.
- Tyr42 12y agoNote that that's not quite true for Haskell. In Haskell, each line is not sequenced implicitly, though there are useful patterns (monads) which do specify the evaluation order. IO, State, and Writer are all sequenced, [] is depth first search, and Par is in parallel. We've got patterns for them all.
- etep 12y agoA good point, and I would agree that Haskell is a good candidate for HDL. The following project nicely captures what I think of as a good direction (except for dependence on the JVM which is cross platform torture): https://chisel.eecs.berkeley.edu https://chisel.eecs.berkeley.edu