mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Merge 3627757c1c into b8b0f80f79
				
					
				
			This commit is contained in:
		
						commit
						34b84cde6d
					
				
					 4 changed files with 23 additions and 0 deletions
				
			
		|  | @ -1598,6 +1598,12 @@ struct SharePass : public Pass { | |||
| 		config.generic_cbin_ops.insert(ID($logic_and)); | ||||
| 		config.generic_cbin_ops.insert(ID($logic_or)); | ||||
| 
 | ||||
| 		config.generic_uni_ops.insert(ID($reduce_and)); | ||||
| 		config.generic_uni_ops.insert(ID($reduce_or)); | ||||
| 		config.generic_uni_ops.insert(ID($reduce_xor)); | ||||
| 		config.generic_uni_ops.insert(ID($reduce_xnor)); | ||||
| 		config.generic_uni_ops.insert(ID($reduce_bool)); | ||||
| 
 | ||||
| 		config.generic_other_ops.insert(ID($alu)); | ||||
| 		config.generic_other_ops.insert(ID($macc)); | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										1
									
								
								tests/share/.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								tests/share/.gitignore
									
										
									
									
										vendored
									
									
								
							|  | @ -1 +1,2 @@ | |||
| temp | ||||
| *.log | ||||
|  |  | |||
							
								
								
									
										11
									
								
								tests/share/bug321.ys
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								tests/share/bug321.ys
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| read_verilog <<EOF | ||||
| module top(a, b, s, y); | ||||
| 	input wire [7:0] a; | ||||
| 	input wire [7:0] b; | ||||
| 	input wire s; | ||||
| 	output wire y; | ||||
| 	assign y = s ? |a : |b; | ||||
| endmodule | ||||
| EOF | ||||
| 
 | ||||
| share -force | ||||
							
								
								
									
										5
									
								
								tests/share/run-test.sh
									
										
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/share/run-test.sh
									
										
									
									
									
										
										
										Executable file → Normal file
									
								
							|  | @ -36,4 +36,9 @@ if [ -n "$failed_share" ]; then | |||
| 	false | ||||
| fi | ||||
| 
 | ||||
| for x in *.ys; do | ||||
|   echo "Running $x.." | ||||
|   ../../yosys -ql ${x%.ys}.log $x | ||||
| done | ||||
| 
 | ||||
| exit 0 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue