mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	hierarchy - proc reorder
This commit is contained in:
		
							parent
							
								
									980df499ab
								
							
						
					
					
						commit
						e6ad714d20
					
				
					 10 changed files with 21 additions and 17 deletions
				
			
		
							
								
								
									
										2
									
								
								tests/xilinx/.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								tests/xilinx/.gitignore
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -2,4 +2,4 @@
 | 
				
			||||||
/*.out
 | 
					/*.out
 | 
				
			||||||
/run-test.mk
 | 
					/run-test.mk
 | 
				
			||||||
/*_uut.v
 | 
					/*_uut.v
 | 
				
			||||||
/test_macc
 | 
					/test_macc
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,6 @@
 | 
				
			||||||
read_verilog add_sub.v
 | 
					read_verilog add_sub.v
 | 
				
			||||||
hierarchy -top top
 | 
					hierarchy -top top
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd top # Constrain all select calls below inside the top module
 | 
					cd top # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,8 +1,8 @@
 | 
				
			||||||
read_verilog adffs.v
 | 
					read_verilog adffs.v
 | 
				
			||||||
design -save read
 | 
					design -save read
 | 
				
			||||||
 | 
					
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top adff
 | 
					hierarchy -top adff
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -async2sync  -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -async2sync  -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd adff # Constrain all select calls below inside the top module
 | 
					cd adff # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					@ -13,8 +13,8 @@ select -assert-none t:BUFG t:FDCE %% t:* %D
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
design -load read
 | 
					design -load read
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top adffn
 | 
					hierarchy -top adffn
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -async2sync  -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -async2sync  -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd adffn # Constrain all select calls below inside the top module
 | 
					cd adffn # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					@ -26,8 +26,8 @@ select -assert-none t:BUFG t:FDCE t:LUT1 %% t:* %D
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
design -load read
 | 
					design -load read
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top dffs
 | 
					hierarchy -top dffs
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -async2sync  -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -async2sync  -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd dffs # Constrain all select calls below inside the top module
 | 
					cd dffs # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					@ -39,8 +39,8 @@ select -assert-none t:BUFG t:FDRE t:LUT2 %% t:* %D
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
design -load read
 | 
					design -load read
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top ndffnr
 | 
					hierarchy -top ndffnr
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -async2sync  -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -async2sync  -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd ndffnr # Constrain all select calls below inside the top module
 | 
					cd ndffnr # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,8 +1,8 @@
 | 
				
			||||||
read_verilog dffs.v
 | 
					read_verilog dffs.v
 | 
				
			||||||
design -save read
 | 
					design -save read
 | 
				
			||||||
 | 
					
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top dff
 | 
					hierarchy -top dff
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd dff # Constrain all select calls below inside the top module
 | 
					cd dff # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					@ -13,8 +13,8 @@ select -assert-none t:BUFG t:FDRE %% t:* %D
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
design -load read
 | 
					design -load read
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top dffe
 | 
					hierarchy -top dffe
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd dffe # Constrain all select calls below inside the top module
 | 
					cd dffe # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,8 +1,8 @@
 | 
				
			||||||
read_verilog latches.v
 | 
					read_verilog latches.v
 | 
				
			||||||
design -save read
 | 
					design -save read
 | 
				
			||||||
 | 
					
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top latchp
 | 
					hierarchy -top latchp
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -async2sync -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -async2sync -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd latchp # Constrain all select calls below inside the top module
 | 
					cd latchp # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					@ -12,8 +12,8 @@ select -assert-none t:LDCE %% t:* %D
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
design -load read
 | 
					design -load read
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top latchn
 | 
					hierarchy -top latchn
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -async2sync -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -async2sync -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd latchn # Constrain all select calls below inside the top module
 | 
					cd latchn # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					@ -24,8 +24,8 @@ select -assert-none t:LDCE t:LUT1 %% t:* %D
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
design -load read
 | 
					design -load read
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top latchsr
 | 
					hierarchy -top latchsr
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -async2sync -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -async2sync -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd latchsr # Constrain all select calls below inside the top module
 | 
					cd latchsr # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,6 @@
 | 
				
			||||||
read_verilog logic.v
 | 
					read_verilog logic.v
 | 
				
			||||||
hierarchy -top top
 | 
					hierarchy -top top
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd top # Constrain all select calls below inside the top module
 | 
					cd top # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,8 +1,8 @@
 | 
				
			||||||
read_verilog macc.v
 | 
					read_verilog macc.v
 | 
				
			||||||
design -save read
 | 
					design -save read
 | 
				
			||||||
 | 
					
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top macc
 | 
					hierarchy -top macc
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
#equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx ### TODO
 | 
					#equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx ### TODO
 | 
				
			||||||
equiv_opt -run :prove -map +/xilinx/cells_sim.v synth_xilinx
 | 
					equiv_opt -run :prove -map +/xilinx/cells_sim.v synth_xilinx
 | 
				
			||||||
miter -equiv -flatten -make_assert -make_outputs gold gate miter
 | 
					miter -equiv -flatten -make_assert -make_outputs gold gate miter
 | 
				
			||||||
| 
						 | 
					@ -15,8 +15,8 @@ select -assert-count 1 t:DSP48E1
 | 
				
			||||||
select -assert-none t:BUFG t:FDRE t:DSP48E1 %% t:* %D
 | 
					select -assert-none t:BUFG t:FDRE t:DSP48E1 %% t:* %D
 | 
				
			||||||
 | 
					
 | 
				
			||||||
design -load read
 | 
					design -load read
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top macc2
 | 
					hierarchy -top macc2
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
#equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx ### TODO
 | 
					#equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx ### TODO
 | 
				
			||||||
equiv_opt -run :prove -map +/xilinx/cells_sim.v synth_xilinx
 | 
					equiv_opt -run :prove -map +/xilinx/cells_sim.v synth_xilinx
 | 
				
			||||||
miter -equiv -flatten -make_assert -make_outputs gold gate miter
 | 
					miter -equiv -flatten -make_assert -make_outputs gold gate miter
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,6 @@
 | 
				
			||||||
read_verilog mul.v
 | 
					read_verilog mul.v
 | 
				
			||||||
hierarchy -top top
 | 
					hierarchy -top top
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd top # Constrain all select calls below inside the top module
 | 
					cd top # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,7 @@
 | 
				
			||||||
read_verilog mul_unsigned.v
 | 
					read_verilog mul_unsigned.v
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top mul_unsigned
 | 
					hierarchy -top mul_unsigned
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd mul_unsigned # Constrain all select calls below inside the top module
 | 
					cd mul_unsigned # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,8 +1,8 @@
 | 
				
			||||||
read_verilog mux.v
 | 
					read_verilog mux.v
 | 
				
			||||||
design -save read
 | 
					design -save read
 | 
				
			||||||
 | 
					
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top mux2
 | 
					hierarchy -top mux2
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd mux2 # Constrain all select calls below inside the top module
 | 
					cd mux2 # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					@ -12,8 +12,8 @@ select -assert-none t:LUT3 %% t:* %D
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
design -load read
 | 
					design -load read
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top mux4
 | 
					hierarchy -top mux4
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd mux4 # Constrain all select calls below inside the top module
 | 
					cd mux4 # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					@ -23,8 +23,8 @@ select -assert-none t:LUT6 %% t:* %D
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
design -load read
 | 
					design -load read
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top mux8
 | 
					hierarchy -top mux8
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd mux8 # Constrain all select calls below inside the top module
 | 
					cd mux8 # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					@ -35,8 +35,8 @@ select -assert-none t:LUT3 t:LUT6 %% t:* %D
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
design -load read
 | 
					design -load read
 | 
				
			||||||
proc
 | 
					 | 
				
			||||||
hierarchy -top mux16
 | 
					hierarchy -top mux16
 | 
				
			||||||
 | 
					proc
 | 
				
			||||||
equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
					equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
 | 
				
			||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
					design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
 | 
				
			||||||
cd mux16 # Constrain all select calls below inside the top module
 | 
					cd mux16 # Constrain all select calls below inside the top module
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue