compat: add fhdl.specials.TSTriple shim.
This commit is contained in:
		
							parent
							
								
									7200346249
								
							
						
					
					
						commit
						3b23645fb7
					
				|  | @ -1,6 +1,6 @@ | |||
| from .fhdl.structure import * | ||||
| from .fhdl.module import * | ||||
| # from .fhdl.specials import * | ||||
| from .fhdl.specials import * | ||||
| from .fhdl.bitcontainer import * | ||||
| # from .fhdl.decorators import * | ||||
| # from .fhdl.simplify import * | ||||
|  |  | |||
							
								
								
									
										18
									
								
								nmigen/compat/fhdl/specials.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								nmigen/compat/fhdl/specials.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | |||
| from ...genlib.io import TSTriple as NewTSTriple | ||||
| 
 | ||||
| 
 | ||||
| __all__ = ["TSTriple"] | ||||
| 
 | ||||
| 
 | ||||
| class CompatTSTriple(NewTSTriple): | ||||
|     def __init__(self, bits_sign=None, min=None, max=None, reset_o=0, reset_oe=0, reset_i=0, | ||||
|                  name=None): | ||||
|         super().__init__(shape=bits_sign, min=min, max=max, | ||||
|                          reset_o=reset_o, reset_oe=reset_oe, reset_i=reset_i, | ||||
|                          name=name) | ||||
| 
 | ||||
|     def get_tristate(self, target): | ||||
|         raise NotImplementedError("TODO") | ||||
| 
 | ||||
| 
 | ||||
| TSTriple = CompatTSTriple | ||||
		Loading…
	
		Reference in a new issue
	
	 whitequark
						whitequark