mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Code now resides in `docs/source/code_examples`. `CHAPTER_Prog` -> `stubnets` `APPNOTE_011_Design_Investigation` -> `selections` and `show` `resources/PRESENTATION_Intro` -> `intro` `resources/PRESENTATION_ExSyn` -> `synth_flow` `resources/PRESENTATION_ExAdv` -> `techmap`, `macc`, and `selections` `resources/PRESENTATION_ExOth` -> `scrambler` and `axis` Note that generated images are not yet configured to build from the new code locations.
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			303 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			303 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
module test1(a, b, c, d, e, f, y);
 | 
						|
    input [19:0] a, b, c;
 | 
						|
    input [15:0] d, e, f;
 | 
						|
    output [41:0] y;
 | 
						|
    assign y = a*b + c*d + e*f;
 | 
						|
endmodule
 | 
						|
 | 
						|
module test2(a, b, c, d, e, f, y);
 | 
						|
    input [19:0] a, b, c;
 | 
						|
    input [15:0] d, e, f;
 | 
						|
    output [41:0] y;
 | 
						|
    assign y = a*b + (c*d + e*f);
 | 
						|
endmodule
 |