BWRC-AMS-ML-Discovery / AutoCkt

Deep Reinforcement Learning of Analog Circuit Designs
0 stars 2 forks source link

Typing for the Client-Server Interface #5

Closed dan-fritchman closed 1 year ago

dan-fritchman commented 1 year ago

So it looks like -

@dataclass
class State:
  mp1: int # These are all widths? Number of fingers? Write it down whatever it is.
  mn1: int
  mp3: int 
  mn3: int
  mn4: int
  mn5: int
  cc: float # Or maybe `str`, or the Hdl21/ VLSIR `Prefixed` fixed-point type

@dataclass 
class Specs:
  ugbw: float
  gain: float
  phm: float 
  ibias: float
kingh0730 commented 1 year ago

Done in the afore mentioned PR