Skip to content

libsidplayfp/opamp-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opamp-model

An attempt to model the SID opamp transfer functions

6581 OpAmp

"Op-amp" (self-biased NMOS inverter)


               12V         12V

                T           T
                |           |
                |           |
                |    +------o
                |    |      |
                |    |  ||--+
                |    +--||
                |       ||--+
            ||--+           |
    Vi -----||              o---o----- Vo
            ||--+           |   |
                | Vx    ||--+   |
                o-------||      |
                |       ||--+   |
            ||--+           |   |
         +--||              |   |
         |  ||--+           |   |
         |      |           |   |
         |      |           |   |
         |      V           V   |
         |                      |
         |     GND         GND  |
         |                      |
         +----------------------+

    Vi  - input voltage
    Vo  - output voltage

The schematics above are laid out to show that the "op-amp" logically consists of two building blocks; an enhancement load NMOS inverter (on the right hand side of the schematics) with a common drain input stage biased by the output voltage (on the left hand side of the schematics).

W/L values

  • M1a (top left) ~ 80/20
  • M2a (bottom left) ~ 25/70
  • M1b (top right) ~ 40/20
  • M2b (bottom right) ~ 650/20

Reference values, measured on CAP1B/CAP1A on a chip marked MOS 6581R4AR 0687 14

screenshot opamp transfer function

Circuit simulation

Assuming uCox = 20uA/V² and Vt = 1.31V

https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3AWAnC1b0DYQGYBM0B2AViIA4i4jdIEKSRdsQjnJmBTAWjDACgAHcNiS4QnbNixgqbcZJxRFkXgHNwMsRKkbOuIljbKAZuGmi5U6rK3NRYaNggx4kAhlIJeAJXBXNVXwRSf1FDEAQ2MFClaCJeEx4A3QjfODFcFIxIhydYF1IkDFVU2VwMkrEwNyVeAHcK3X0G3FJg5XqotPFqZtaoXgA3cDhgi1MkmzYEcKnCFiJYlkNY4rARzXk1yFHsGhqEjNGW4KjC9L6s8ByoPMgMJALPDr9dPqig87a68fMok7N0iljIFRhFIrgzpwwbYro4bi4ELg+M9ITZTlhxHt2r5UZsIRjsB5+j50WIEGApNgENMoRSlDNfPSYHESYcyWlOrJoWEUlEmSs1KTdAQ7Pj0tsaiiCZthOZJt8wLKNpSRJUWv0OkruOrEr91coAPYgYIYaaRbBEREEBjLFxINz6PSKUTBbC8I1sU2KRWW3BYHowCBB92mEBe82+61reHwe0YR0sUR2CBuoA

unfortunately this is quite off from the measured values.

Open questions:

  • are all the transistors enhancement-mode?
  • do all the transistors have the same Vt?

About

An attempt to model the SID opamp transfer functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published