mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Add SigSpec::extract_end() convenience function
This commit is contained in:
		
							parent
							
								
									0b56be8c56
								
							
						
					
					
						commit
						84f52aee0d
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -788,6 +788,7 @@ public:
 | 
			
		|||
	RTLIL::SigSpec extract(const RTLIL::SigSpec &pattern, const RTLIL::SigSpec *other = NULL) const;
 | 
			
		||||
	RTLIL::SigSpec extract(const pool<RTLIL::SigBit> &pattern, const RTLIL::SigSpec *other = NULL) const;
 | 
			
		||||
	RTLIL::SigSpec extract(int offset, int length = 1) const;
 | 
			
		||||
	RTLIL::SigSpec extract_end(int offset) const { return extract(offset, width_ - offset); }
 | 
			
		||||
 | 
			
		||||
	void append(const RTLIL::SigSpec &signal);
 | 
			
		||||
	void append_bit(const RTLIL::SigBit &bit);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue