forked from Github_Repos/cvw
		
	Division working too
This commit is contained in:
		
							parent
							
								
									9c694b887e
								
							
						
					
					
						commit
						ddc237f6bc
					
				@ -2,7 +2,7 @@
 | 
			
		||||
// srt.sv
 | 
			
		||||
//
 | 
			
		||||
// Written: David_Harris@hmc.edu 13 January 2022
 | 
			
		||||
// Modified: cturek@hmc.edu June 2022
 | 
			
		||||
// Modified: cturek@hmc.edu July 2022
 | 
			
		||||
//
 | 
			
		||||
// Purpose: Combined Divide and Square Root Floating Point and Integer Unit
 | 
			
		||||
// 
 | 
			
		||||
 | 
			
		||||
@ -72,7 +72,7 @@ module testbench;
 | 
			
		||||
 | 
			
		||||
  // Equip Int test or Sqrt test
 | 
			
		||||
  assign Int = 1'b0;
 | 
			
		||||
  assign Sqrt = 1'b1;
 | 
			
		||||
  assign Sqrt = 1'b0;
 | 
			
		||||
 | 
			
		||||
  // Divider
 | 
			
		||||
  srt srt(.clk, .Start(req), 
 | 
			
		||||
@ -101,7 +101,7 @@ module testbench;
 | 
			
		||||
    begin
 | 
			
		||||
      testnum = 0; 
 | 
			
		||||
      errors = 0;
 | 
			
		||||
      $readmemh ("sqrttestvectors", Tests);
 | 
			
		||||
      $readmemh ("testvectors", Tests);
 | 
			
		||||
      Vec = Tests[testnum];
 | 
			
		||||
      a = Vec[`mema];
 | 
			
		||||
      {asign, aExp, afrac} = a;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user