mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Clean up lint errors in fpu and muldiv
booth.sv had an actual error where a signal was being assigned to too many bits. muldiv has a lot of non blocking assignments, so I suppressed those warnings so the linter output was readable.
This commit is contained in:
parent
e7822ce20c
commit
c055ab272d
@ -22,7 +22,10 @@ module booth(xExt, choose, add1, e, pp);
|
|||||||
3'b100 : pp = {negx, 1'b0}; // -2
|
3'b100 : pp = {negx, 1'b0}; // -2
|
||||||
3'b101 : pp = {1'b1, negx}; // -1
|
3'b101 : pp = {1'b1, negx}; // -1
|
||||||
3'b110 : pp = {1'b1, negx}; // -1
|
3'b110 : pp = {1'b1, negx}; // -1
|
||||||
3'b111 : pp = 55'hfffffffffffffff; // -0
|
// *** <Thomas Fleming> I changed this to fix a lint error. '1 should
|
||||||
|
// fill the signal with all ones.
|
||||||
|
// 3'b111 : pp = 55'hfffffffffffffff;
|
||||||
|
3'b111 : pp = '1; // -0
|
||||||
endcase
|
endcase
|
||||||
|
|
||||||
always_comb
|
always_comb
|
||||||
|
@ -23,6 +23,13 @@
|
|||||||
// OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
||||||
|
// *** <Thomas Fleming> I added these verilator controls to clean up the
|
||||||
|
// lint output. The linter warnings should be fixed, but now the output is at
|
||||||
|
// least readable.
|
||||||
|
/* verilator lint_off COMBDLY */
|
||||||
|
/* verilator lint_off IMPLICIT */
|
||||||
|
|
||||||
|
|
||||||
module div (Q, rem0, done, divBusy, div0, N, D, clk, reset, start);
|
module div (Q, rem0, done, divBusy, div0, N, D, clk, reset, start);
|
||||||
|
|
||||||
input logic [63:0] N, D;
|
input logic [63:0] N, D;
|
||||||
@ -1554,3 +1561,5 @@ module shifter_r32 (Z, A, Shift);
|
|||||||
|
|
||||||
endmodule // shifter_r32
|
endmodule // shifter_r32
|
||||||
|
|
||||||
|
/* verilator lint_on COMBDLY */
|
||||||
|
/* verilator lint_on IMPLICIT */
|
||||||
|
Loading…
Reference in New Issue
Block a user