diff options
author | Josh Blum <josh@joshknows.com> | 2011-07-19 13:47:32 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-07-19 13:47:32 -0700 |
commit | 05cfc2d5c908f6fd36cff4c0bb816b146d913960 (patch) | |
tree | 9b432549a4f992de837c208d8421f42ddaf56282 /usrp2/sdr_lib/round.v | |
parent | c0fadece89314f3a00892122c28caf187ce1a717 (diff) | |
parent | fbc01138d5f943b06ce1bf3f746287b9d6c7789d (diff) | |
download | uhd-05cfc2d5c908f6fd36cff4c0bb816b146d913960.tar.gz uhd-05cfc2d5c908f6fd36cff4c0bb816b146d913960.tar.bz2 uhd-05cfc2d5c908f6fd36cff4c0bb816b146d913960.zip |
Merge branch 'b100_shrink' into new_work
Diffstat (limited to 'usrp2/sdr_lib/round.v')
-rw-r--r-- | usrp2/sdr_lib/round.v | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usrp2/sdr_lib/round.v b/usrp2/sdr_lib/round.v index c4f9ec9cd..7a137d702 100644 --- a/usrp2/sdr_lib/round.v +++ b/usrp2/sdr_lib/round.v @@ -26,8 +26,10 @@ module round #(parameter bits_in=0, parameter bits_out=0) (input [bits_in-1:0] in, - output [bits_out-1:0] out); + output [bits_out-1:0] out, + output [bits_in-bits_out:0] err); assign out = in[bits_in-1:bits_in-bits_out] + (in[bits_in-1] & |in[bits_in-bits_out-1:0]); + assign err = in - {out,{(bits_in-bits_out){1'b0}}}; endmodule // round |