mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	SigSpec refactoring: added RTLIL::SigSpec::operator[]
This commit is contained in:
		
							parent
							
								
									e7e30f1c86
								
							
						
					
					
						commit
						f80da7b41d
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -522,6 +522,9 @@ public: | |||
| 
 | ||||
| 	int size() const { return width_; } | ||||
| 
 | ||||
| 	RTLIL::SigBit &operator[](int index) { unpack(); return bits_.at(index); } | ||||
| 	const RTLIL::SigBit &operator[](int index) const { unpack(); return bits_.at(index); } | ||||
| 
 | ||||
| 	void expand(); | ||||
| 	void optimize(); | ||||
| 	RTLIL::SigSpec optimized() const; | ||||
|  | @ -540,7 +543,7 @@ public: | |||
| 	void remove_const(); | ||||
| 
 | ||||
| 	RTLIL::SigSpec extract(RTLIL::SigSpec pattern, RTLIL::SigSpec *other = NULL) const; | ||||
| 	RTLIL::SigSpec extract(int offset, int length) const; | ||||
| 	RTLIL::SigSpec extract(int offset, int length = 1) const; | ||||
| 
 | ||||
| 	void append(const RTLIL::SigSpec &signal); | ||||
| 	void append_bit(const RTLIL::SigBit &bit); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue