{"id":17864881,"url":"https://github.com/mattvenn/flipflop_demo","last_synced_at":"2025-03-21T03:33:34.209Z","repository":{"id":38028879,"uuid":"448043138","full_name":"mattvenn/flipflop_demo","owner":"mattvenn","description":"Flip flop setup, hold \u0026 metastability explorer tool","archived":false,"fork":false,"pushed_at":"2022-10-28T11:39:02.000Z","size":35783,"stargazers_count":27,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-01-29T08:10:50.916Z","etag":null,"topics":["flip-flop","metastability","ngspice","simulation","sky130"],"latest_commit_sha":null,"homepage":"https://zerotoasiccourse.com","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattvenn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["https://zerotoasiccourse.com"]}},"created_at":"2022-01-14T16:58:51.000Z","updated_at":"2023-12-28T14:56:33.000Z","dependencies_parsed_at":"2023-01-19T15:02:14.603Z","dependency_job_id":null,"html_url":"https://github.com/mattvenn/flipflop_demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattvenn%2Fflipflop_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattvenn%2Fflipflop_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattvenn%2Fflipflop_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattvenn%2Fflipflop_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattvenn","download_url":"https://codeload.github.com/mattvenn/flipflop_demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221811374,"owners_count":16884305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flip-flop","metastability","ngspice","simulation","sky130"],"created_at":"2024-10-28T09:17:18.762Z","updated_at":"2024-10-28T09:17:19.304Z","avatar_url":"https://github.com/mattvenn.png","language":"Jupyter Notebook","funding_links":["https://zerotoasiccourse.com"],"categories":[],"sub_categories":[],"readme":"# Interactive flip flop simulation\n\nMade for a video about flip flops: https://www.youtube.com/watch?v=5PRuPVIjEcs\n\nFor the [Zero to ASIC course](https://ZeroToASICcourse.com)\n\n![screenshot](screenshot.png)\n\n## To play with bundled data set from SKY130 df transmission gate flip flop\n\n    git clone https://github.com/mattvenn/flipflop_demo\n    cd flipflop_demo/spice\n    tar xf csv.tar.bz2\n    ./wave.py\n\n\nYou will probably need to install the [requirements](spice/requirements.txt)\n\n    pip3 install -r spice/requirements.txt\n\n## If you want to build the GDS of the design\n\nAfter install of openlane/pdk etc, copy this directory to $OPENLANE_ROOT/designs. Then:\n\n    cd $OPENLANE_ROOT\n    make mount\n    ./flow.tcl -design flipflop_demo\n\n## Create the dataset yourself\n\nThis will simulate moving a data pulse through the setup and hold times of a d type flop.\n\n    make setup\n    make sim\n\n![schematic](schematic/tgff_with_clock.png)\n\nTakes about 8 mins on my laptop.\n\n[Schematic generated with schemdraw](schematic/tg_ff.py) with thanks to Proppy.\n\n## Fun facts\n\nThe flip flop is one of the largest and most complex [standard cells](https://www.zerotoasiccourse.com/terminology/standardcell/). Here's the [GDS](https://www.zerotoasiccourse.com/terminology/gds2/) layout:\n\n![gds](gds.png)\n\n* 26 fets, 13 CMOS pairs\n* 7 inverters\n* 2 tristate inverters\n* 2 transmission gates\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattvenn%2Fflipflop_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattvenn%2Fflipflop_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattvenn%2Fflipflop_demo/lists"}