TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

MyHDL – Design hardware with Python – Examples

101 点作者 mr_tyzic大约 11 年前

7 条评论

DanWaterworth大约 11 年前
I&#x27;ve recently started writing my own HDL as an embedded language within Idris. The idea behind it is that you can take advantage of the rich type system and you have the option to prove theorems about your circuits to gain confidence in them. There are also bindings to picosat, so that you can automatically prove some properties. Here&#x27;s a snippet of how it looks so far (though things are changing rapidly):<p><pre><code> lt : BoolOperation op =&gt; Vect n v -&gt; Vect n v -&gt; SSA op v v lt [] [] = constOp False lt (x :: xs) (y :: ys) = do nX &lt;- notOp x t1 &lt;- andOp [nX, y] t2 &lt;- xnorOp x y t3 &lt;- lt xs ys t4 &lt;- andOp [t2, t3] orOp [t1, t4]</code></pre>
评论 #7709441 未加载
评论 #7709285 未加载
wyager大约 11 年前
There is so much potential in open source hardware design.<p>Right now, we are held back by (at best) mediocre tools. We need better HDL software, better synthesis software, better EDA software before we have any hope of widespread use of open source hardware.<p>Imagine if the only compilers available were proprietary compilers locked behind hundreds of pages of licensing requirements and legal bullshit. Open source software would still be in the dark ages.<p>I applaud any effort to advance the open source hardware design toolset.
评论 #7709250 未加载
评论 #7710884 未加载
评论 #7708928 未加载
ioseph大约 11 年前
Always great to see new developments in HDLs.<p>It seems there is no synthesis (which is to be expected without vendor support). With &#x27;limited&#x27; conversion to VHDL&#x2F;Verilog, I wonder how useful this is for actual implementation.<p>Also from the site I couldn&#x27;t find any mention of higher level functionality such as generics, etc.
评论 #7708790 未加载
评论 #7708668 未加载
评论 #7708602 未加载
aprdm大约 11 年前
I don&#x27;t know, i&#x27;ve been working with VHDL for 5 years and i don&#x27;t see how this could be useful.<p>Usually we first develop our algorithms using fixed point math at Matlab, which is a piece of cake.<p>After doing this, developing our VHDL based on Matlab implementation is very straight forward.<p>Python language isn&#x27;t a very common knowledge for people developing hardware, so they really need to learn a complete new language made to another domain (software) in order to do the same thing!<p>VHDL&#x2F;Verilog has been used for 30 years and in my opinion will continue to be used for many mores, Python&#x27;s language structure just doesn&#x27;t have what&#x27;s needed to the hardware domain.<p>I see myself wasting a lot of time having to teach our old hardware guys Python and how to think in terms of RTL with a new Language. That&#x27;s why i didn&#x27;t try to switch.<p>Remember, most of the engineers working with hardware come from EE background, not CS. They are more familliar with Schematics than C.
评论 #7710017 未加载
评论 #7709765 未加载
xtacy大约 11 年前
A related project is Chisel, in which you create language using Scala: <a href="https://chisel.eecs.berkeley.edu/" rel="nofollow">https:&#x2F;&#x2F;chisel.eecs.berkeley.edu&#x2F;</a>
评论 #7708916 未加载
评论 #7709404 未加载
paraboul大约 11 年前
Related project : <a href="https://github.com/m-labs/migen" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;m-labs&#x2F;migen</a>
评论 #7709408 未加载
sown大约 11 年前
I like this. I keep saying there&#x27;s a hardware renaissance near by and I think the wider-spread use of HDL and the like will help along with this.