mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Merge branch 'main' of github.com:openhwgroup/cvw
This commit is contained in:
		
						commit
						ca1c09041a
					
				
							
								
								
									
										7
									
								
								bin/wsim
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								bin/wsim
									
									
									
									
									
								
							@ -89,10 +89,11 @@ if(int(args.locksteplog) >= 1): EnableLog = 1
 | 
				
			|||||||
else: EnableLog = 0
 | 
					else: EnableLog = 0
 | 
				
			||||||
prefix = ""
 | 
					prefix = ""
 | 
				
			||||||
if (args.lockstep or args.lockstepverbose or args.fcov or args.fcovimp):
 | 
					if (args.lockstep or args.lockstepverbose or args.fcov or args.fcovimp):
 | 
				
			||||||
   if (args.sim == "questa" or args.sim == "vcs"):
 | 
					    if (args.sim == "questa" or args.sim == "vcs"):
 | 
				
			||||||
        prefix = "IMPERAS_TOOLS=" + WALLY + "/config/"+args.config+"/imperas.ic"
 | 
					        prefix = "IMPERAS_TOOLS=" + WALLY + "/config/"+args.config+"/imperas.ic"
 | 
				
			||||||
   if (args.sim == "questa"):
 | 
					# Force Questa to use 64-bit mode, sometimes it defaults to 32-bit even on 64-bit machines
 | 
				
			||||||
        prefix = "MTI_VCO_MODE=64 " + prefix
 | 
					if (args.sim == "questa"):
 | 
				
			||||||
 | 
					    prefix = "MTI_VCO_MODE=64 " + prefix
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (args.lockstep or args.lockstepverbose):
 | 
					if (args.lockstep or args.lockstepverbose):
 | 
				
			||||||
    if(args.locksteplog != 0): ImperasPlusArgs = " +IDV_TRACE2LOG=" + str(EnableLog) + " +IDV_TRACE2LOG_AFTER=" + str(args.locksteplog)
 | 
					    if(args.locksteplog != 0): ImperasPlusArgs = " +IDV_TRACE2LOG=" + str(EnableLog) + " +IDV_TRACE2LOG_AFTER=" + str(args.locksteplog)
 | 
				
			||||||
 | 
				
			|||||||
@ -76,7 +76,7 @@ module fround import cvw::*;  #(parameter cvw_t P) (
 | 
				
			|||||||
  assign Eeqm1 = ($signed(E) == -1);
 | 
					  assign Eeqm1 = ($signed(E) == -1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Logic for nonnegative mask and rounding bits
 | 
					  // Logic for nonnegative mask and rounding bits
 | 
				
			||||||
  assign IMask = {1'b1, {P.NF{1'b0}}} >>> E; /// if E > Nf, this produces all 0s instead of all 1s.  Hence exact handling is needed below.
 | 
					  assign IMask = $signed({1'b1, {P.NF{1'b0}}}) >>> E; /// if E > Nf, this produces all 0s instead of all 1s.  Hence exact handling is needed below.
 | 
				
			||||||
  assign Tmasknonneg = ~IMask >>> 1'b1;
 | 
					  assign Tmasknonneg = ~IMask >>> 1'b1;
 | 
				
			||||||
  assign HotE = IMask & ~(IMask << 1'b1);
 | 
					  assign HotE = IMask & ~(IMask << 1'b1);
 | 
				
			||||||
  assign HotEP1 = HotE >> 1'b1;
 | 
					  assign HotEP1 = HotE >> 1'b1;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user