ucb-bar / chisel2-deprecated

chisel.eecs.berkeley.edu
388 stars 90 forks source link

RegUpdate and RegReset? #724

Open cornytrace opened 7 years ago

cornytrace commented 7 years ago

These functions are used in the tutorial and manual, but are not explained. A google search has also revealed nothing. Can someone explain what they do, and perhaps add this information to the manual?

da-steve101 commented 7 years ago

I can't find them in the chisel source or tutorial source. You sure you don't mean RegNext and RegInit? RegNext( x ) creates a register directly after x. RegInit( x ) will reset to the value of x and other behaviour must be further defined.

cornytrace commented 7 years ago

Look here: https://chisel.eecs.berkeley.edu/2.2.0/manual.html Sections 7 and 8 use RegUpdate and RegReset

da-steve101 commented 7 years ago

Ok sure. That is really out of date. Changed around 3 yrs ago see commit https://github.com/ucb-bar/chisel/commit/79134837e243f071664048f634c9e17352b0c6de Essentially RegReset has been renamed to RegInit and RegUpdate has been renamed RegNext