state name change
This commit is contained in:
		
					parent
					
						
							
								850ebb8f0d
							
						
					
				
			
			
				commit
				
					
						4eabf8cc38
					
				
			
		
					 2 changed files with 24 additions and 1 deletions
				
			
		
							
								
								
									
										23
									
								
								doc/plan.org
									
										
									
									
									
								
							
							
						
						
									
										23
									
								
								doc/plan.org
									
										
									
									
									
								
							| 
						 | 
					@ -6365,6 +6365,29 @@ endtask
 | 
				
			||||||
 }
 | 
					 }
 | 
				
			||||||
#+END_CENTER
 | 
					#+END_CENTER
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					*** state names are fixed
 | 
				
			||||||
 | 
					#+BEGIN_CENTER
 | 
				
			||||||
 | 
					make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
 | 
				
			||||||
 | 
					p4c-sdnet -o minip4.sdnet --sdnet_info .sdnet_switch_info.dat minip4_solution.p4
 | 
				
			||||||
 | 
					minip4_solution.p4(37): warning: start: implicit transition to `reject'
 | 
				
			||||||
 | 
					     state start {
 | 
				
			||||||
 | 
					           ^^^^^
 | 
				
			||||||
 | 
					minip4_solution.p4(52): warning: realparser: unused instance
 | 
				
			||||||
 | 
					    RealParser() realparser;
 | 
				
			||||||
 | 
					                 ^^^^^^^^^^
 | 
				
			||||||
 | 
					minip4_solution.p4(45): error: parser TopParser: parser does not have a `start' state
 | 
				
			||||||
 | 
					parser TopParser(
 | 
				
			||||||
 | 
					       ^^^^^^^^^
 | 
				
			||||||
 | 
					minip4_solution.p4(45): warning: accept state in parser TopParser is unreachable
 | 
				
			||||||
 | 
					parser TopParser(
 | 
				
			||||||
 | 
					       ^^^^^^^^^
 | 
				
			||||||
 | 
					Makefile:34: recipe for target 'all' failed
 | 
				
			||||||
 | 
					make[1]: *** [all] Error 1
 | 
				
			||||||
 | 
					make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src'
 | 
				
			||||||
 | 
					Makefile:31: recipe for target 'frontend' failed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#+END_CENTER
 | 
				
			||||||
 | 
					
 | 
				
			||||||
*** TODO Further notes P4/master thesis
 | 
					*** TODO Further notes P4/master thesis
 | 
				
			||||||
    - Cannot easily run P4 on notebook - changes to the system very
 | 
					    - Cannot easily run P4 on notebook - changes to the system very
 | 
				
			||||||
      invasive
 | 
					      invasive
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -51,7 +51,7 @@ parser TopParser(
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    RealParser() realparser;
 | 
					    RealParser() realparser;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    state fakestart {
 | 
					    state start {
 | 
				
			||||||
        realparser.apply(b, p, user_metadata, digest_data, sume_metadata);
 | 
					        realparser.apply(b, p, user_metadata, digest_data, sume_metadata);
 | 
				
			||||||
        transition accept;
 | 
					        transition accept;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue