Closed mattskl-openai closed 2 weeks ago
Drive by comment. The implementation looks more like a priority encoder than one-hot to bin. Should we change this:
if (in[i]) begin out = BinWidth'(i); break; end
To this?
if (in[i]) begin out |= BinWidth'(i); end
Happy to make the change; is it typical to make multiple changes in one PR?
If you think the change is correct, then up to you whether it should be a separate PR. Yeah, usually best to keep separate logical changes in separate PRs ... but to a point ... if the changes are all to the same file and simple, for example, I think it's okay to save the overhead of two PRs. This is all subjective, of course.
Drive by comment. The implementation looks more like a priority encoder than one-hot to bin. Should we change this:
if (in[i]) begin out = BinWidth'(i); break; end
To this?
if (in[i]) begin out |= BinWidth'(i); end
Happy to make the change; is it typical to make multiple changes in one PR?
If you think the change is correct, then up to you whether it should be a separate PR. Yeah, usually best to keep separate logical changes in separate PRs ... but to a point ... if the changes are all to the same file and simple, for example, I think it's okay to save the overhead of two PRs. This is all subjective, of course.
Thanks for the catch, @btowles-openai! I'm fine with merging this fix in this PR
Happy to make the change; is it typical to make multiple changes in one PR?