forked from Github_Repos/cvw
		
	Multiplier tweaks
This commit is contained in:
		
							parent
							
								
									3edf910c18
								
							
						
					
					
						commit
						dc758a0c7b
					
				| @ -2,6 +2,7 @@ | |||||||
| # The verilator lint tool is faster and better than Modelsim so it is best to run this first. | # The verilator lint tool is faster and better than Modelsim so it is best to run this first. | ||||||
| 
 | 
 | ||||||
| verilator --lint-only --top-module wallypipelinedsoc -Iconfig/rv64ic src/*/*.sv  | verilator --lint-only --top-module wallypipelinedsoc -Iconfig/rv64ic src/*/*.sv  | ||||||
|  | #verilator --lint-only --top-module wallypipelinedsoc -Iconfig/rv64ic src/*/*.sv src/*/div/*.sv | ||||||
| 
 | 
 | ||||||
| # --lint-only just runs lint rather than trying to compile and simulate | # --lint-only just runs lint rather than trying to compile and simulate | ||||||
| # -I points to the include directory where files such as `include wally-config.vh  are found | # -I points to the include directory where files such as `include wally-config.vh  are found | ||||||
|  | |||||||
| @ -48,15 +48,17 @@ module muldiv ( | |||||||
| 
 | 
 | ||||||
|       mul mul(.*); |       mul mul(.*); | ||||||
| 
 | 
 | ||||||
|       if (WIDTH==32) begin | /* | ||||||
|         divide4x32 div(.clk(clk), .reset(reset),  |       if (`XLEN==32) begin | ||||||
|  |         int32div div(.clk(clk), .reset(reset),  | ||||||
|                        .N(SrcAE), .D(SrcBE), .Q(QuotE), .rem0(RemE), |                        .N(SrcAE), .D(SrcBE), .Q(QuotE), .rem0(RemE), | ||||||
|                        .start(), .div0(), .done(), .divone()); |                        .start(), .div0(), .done(), .divdone()); | ||||||
|       end else begin // WIDTH=64
 |       end else begin // XLEN=64
 | ||||||
|         divide4x64 div(.clk(clk), .reset(reset),  |         int64div div(.clk(clk), .reset(reset),  | ||||||
|                        .N(SrcAE), .D(SrcBE), .Q(QuotE), .rem0(RemE), |                        .N(SrcAE), .D(SrcBE), .Q(QuotE), .rem0(RemE), | ||||||
|                        .start(), .div0(), .done(), .divone()); |                        .start(), .div0(), .done(), .divdone()); | ||||||
|       end |       end | ||||||
|  |       */ | ||||||
| 
 | 
 | ||||||
|       // Select result
 |       // Select result
 | ||||||
|       always_comb |       always_comb | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user