mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	edited controller so that add.uw passes tests
This commit is contained in:
		
							parent
							
								
									cf09bbff5f
								
							
						
					
					
						commit
						c9e6b9aeef
					
				@ -160,6 +160,9 @@ module controller(
 | 
				
			|||||||
                      ControlsD = `CTRLW'b1_000_00_00_000_0_1_0_0_1_0_0_0_0_00_0; // R-type W instructions for RV64i
 | 
					                      ControlsD = `CTRLW'b1_000_00_00_000_0_1_0_0_1_0_0_0_0_00_0; // R-type W instructions for RV64i
 | 
				
			||||||
                  else if (Funct7D == 7'b0000001 & `M_SUPPORTED & `XLEN == 64)
 | 
					                  else if (Funct7D == 7'b0000001 & `M_SUPPORTED & `XLEN == 64)
 | 
				
			||||||
                      ControlsD = `CTRLW'b1_000_00_00_011_0_0_0_0_1_0_0_0_1_00_0; // W-type Multiply/Divide
 | 
					                      ControlsD = `CTRLW'b1_000_00_00_011_0_0_0_0_1_0_0_0_1_00_0; // W-type Multiply/Divide
 | 
				
			||||||
 | 
					                  else
 | 
				
			||||||
 | 
					                      if (Funct7D == 7'b0000100 & `ZBA_SUPPORTED)
 | 
				
			||||||
 | 
					                        ControlsD = `CTRLW'b1_000_00_00_000_0_1_0_0_0_0_0_0_0_00_0; // adduw
 | 
				
			||||||
                      else
 | 
					                      else
 | 
				
			||||||
                        ControlsD = `CTRLW'b0_000_00_00_000_0_0_0_0_0_0_0_0_0_00_1; // Non-implemented instruction
 | 
					                        ControlsD = `CTRLW'b0_000_00_00_000_0_0_0_0_0_0_0_0_0_00_1; // Non-implemented instruction
 | 
				
			||||||
      7'b1100011:     ControlsD = `CTRLW'b0_010_11_00_000_1_0_0_0_0_0_0_0_0_00_0; // branches
 | 
					      7'b1100011:     ControlsD = `CTRLW'b0_010_11_00_000_1_0_0_0_0_0_0_0_0_00_0; // branches
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user