myhdl / site-myhdl

myhdl.org website
13 stars 9 forks source link

A Question about Bitonic Sort Example #4

Closed standbyme closed 6 years ago

standbyme commented 6 years ago

https://github.com/myhdl/site-myhdl/blob/25ffe78a3ebcd6a8867e56e81da732fe10c3d7ae/docs/examples/bitonic/bitonic.txt#L183

Hi, I'm reading examples these days. It's very helpful. Thanks for your help! However, I fail to understand the meaning of this line(and there is no answer on Stack Overflow....)

Look forward to your reply! : )

standbyme commented 6 years ago

Why does this function return 3 values?

cfelton commented 6 years ago

@standbyme each myhdl block returns the myhdl.generators that are needed to describe the logic.

http://docs.myhdl.org/en/stable/manual/background.html#a-small-tutorial-on-generators http://docs.myhdl.org/en/stable/manual/structure.html#introduction

For questions like this consider using the myhdl forum

Hope that helps, Chris

standbyme commented 6 years ago

I'm sorry for asking question in wrong place. YES, It's helpful! Thanks for your help!