-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from alibillalhammoud/main
Adding more LLM code from Ali's repository
- Loading branch information
Showing
26 changed files
with
255 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 1 addition & 14 deletions
15
openfasoc/generators/glayout/glayout/llm/rag_data/CommonSource.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,2 @@ | ||
# Common Source Amplifier | ||
The common source amplifier, serves as an amplifier with voltage gain and phase inversion. | ||
The main amplifying transistor is in a common-source configuration. Its source is connected to a common reference (often ground), its gate receives the input signal, and the drain is connected to the active load. | ||
# Common Source Amplifier | ||
There are two MOSFETs. One acts as the amplifying stage and we will call this M1, and the other is the active load which we will call M2. Depending on the type of active load, the port of the active load corresponding to the direction of current is connected to the drain of M1. The source of M1 is connected to a lower voltage level than the supply. | ||
Pseudo Netlist: | ||
an nmos is has the following subckt definition: | ||
NMOS drain gate source body | ||
a pmos is has the following subckt definition: | ||
PMOS drain gate source body | ||
|
||
a common source amplifier with a biased pfet transistor has the following subckt definition: | ||
.subckt commonsourceamp vin vbias vdd vss vout | ||
m1 vout vin vss vss NMOS | ||
m2 vout vbias vdd vdd PMOS | ||
.endsubckt |
10 changes: 1 addition & 9 deletions
10
openfasoc/generators/glayout/glayout/llm/rag_data/CurrentMirror.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,4 @@ | ||
# Current Mirror | ||
A current mirror is a circuit designed to copy a current | ||
The ratio is the width ratio between mirror and reference, used to tune the relative current between mirror transistor drain and reference transistor drain. | ||
two transistors (either nfet or pfet) one labeled as the reference which accepts an input current at the drain, and one labeled as mirror which has the output current at the drain. The sources of reference and mirror are connected and the gates of reference and mirror are also connected. The drain of the reference is connected to gate of reference. | ||
Pseudo Netlist: | ||
an nmos is has the following subckt definition: | ||
NMOS drain gate source body | ||
the nfet current mirror has the following subckt definition: | ||
.subckt currentmirror inputcurrent outputcurrent | ||
reference inputcurrent inputcurrent gnd gnd NMOS | ||
mirror outputcurrent inputcurrent gnd gnd NMOS | ||
.endsubckt | ||
two transistors (either nfet or pfet) one labeled as the reference which accepts an input current at the drain, and one labeled as mirror which has the output current at the drain. The sources of reference and mirror are connected and the gates of reference and mirror are also connected. The drain of the reference is connected to gate of reference. |
2 changes: 2 additions & 0 deletions
2
openfasoc/generators/glayout/glayout/llm/rag_data/DeltaSigmaModulator.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Delta Sigma Modulator ADC | ||
A delta sigma modulator is a circuit consisting of several existing components including an opamp and a latched comparator. The latched compartor includes a d flip flop and a strong arm latch. All these components can be directly imported. The outputs of the opamp should be connected to the inputs of the latched comparator. |
3 changes: 1 addition & 2 deletions
3
openfasoc/generators/glayout/glayout/llm/rag_data/StrongArmLatch.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
# Strong Arm Latch | ||
A strong arm latch is a comparator (which means it compares two input voltages). If one voltage is higher it outputs a high voltage and if one of them is lower then it output a low voltage. | ||
A strong arm latch consists of a diffpair. The inputs of the diffpair are the inputs of the strong arm latch. The diff pair outputs are connected to a cross coupled inverter..... drain. There are 2 pfets for... | ||
A strong arm latch consists of a diffpair, a CrossCoupleInverters, a bridge nfet, a clkgnd nfet, and two pfets clkpwrL (west) and clkpwrR (east). The cross coupled inverters should be at the top. The bridge should be above the diffpair but below the cross coupled inverters. The clkgnd should be at the bottom, and both clkpwr transistors should be left and right of the cross coupled inverters. You must route the drain of transistor A of the diffpair with the drain of the bridge, the drain of transistor B of the diffpair with the source of the bridge, the source of transistor A in the diffpair with the source of clkgnd. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,2 @@ | ||
# Opamp | ||
An operational amplifier or opamp is a voltage amplifying device. | ||
## Terms Defined | ||
Inverting Input (IN-): The input terminal where the signal is inversely amplified. <br /> | ||
Non-inverting Input (IN+): The input terminal where the signal is amplified retaining its original phase. <br /> | ||
Output Terminal: Where the amplified signal is provided. <br /> | ||
Power Supply Ports: Two ports, one for the positive power supply voltage (V+), and one for the negative (V-). <br /> | ||
Bias Current: The current that flows into the input terminals due to internal transistor biasing. <br /> | ||
Open-Loop Gain: The amplification factor of the operational amplifier without any feedback. <br /> | ||
Slew Rate: The maximum rate at which the output voltage can change, often specified in V/µs. <br /> | ||
Offset Voltage: A small voltage that must be applied between the input terminals to ensure a zero volt output without any signal. | ||
### In Words | ||
The op amp symbol consists of a triangle pointing to the right with five terminals: two input terminals on the left side, one output terminal on the triangle's right tip, and two power supply terminals (-V and +V) at the top and bottom respectively. The non-inverting input (IN+) is usually shown at the top left of the triangle, and the inverting input (IN-) is depicted below it. | ||
An operational amplifier or opamp is a voltage amplifying device. A 4 stage opamp consists of several integrator stages. |
23 changes: 1 addition & 22 deletions
23
openfasoc/generators/glayout/glayout/llm/rag_data/pushpullamp.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,2 @@ | ||
# Push Pull Amp (Class B Amplifier) | ||
A push-pull amplifier is a type of amplifier which is able to | ||
|
||
## Terms Defined | ||
|
||
Class: The amplifier class, such as Class A, B, AB, or C, indicating the portion of the input signal cycle during which each transistor conducts. | ||
Active Device: The amplifying element, often a transistor, that can control a large current flow with a smaller input signal. | ||
Biasing: The process of setting the initial operating point of an active device. | ||
Crossover Distortion: A form of distortion that occurs in Class B and AB push-pull amplifiers due to the transition between the "push" and "pull" transistors. | ||
|
||
## Schematic | ||
|
||
### In Words | ||
|
||
A push-pull amplifier typically consists of two transistors, an NPN (or N-channel MOSFET) and a PNP (or P-channel MOSFET) transistor. The emitters (or sources) of the two transistors are connected together and to the output load. The bases (or gates) receive the input signal through a phase splitter, which creates two signals that are 180 degrees out of phase with each other. The collectors (or drains) of each transistor are connected to the supply voltages. | ||
|
||
### Pseudo Netlist | ||
|
||
A push pull amp has the following subckt definition: .subckt pushpullamp input output vcc vee | ||
Q1 NPN_collector input common vcc NPN | ||
Q2 PNP_collector input common vee PNP | ||
.endsubckt | ||
|
||
A push-pull amplifier typically consists of two transistors, a nmos and pmos. The sources of the two transistors are connected together and to the output load. The drains of each transistor are connected to the supply voltages. |
28 changes: 0 additions & 28 deletions
28
openfasoc/generators/glayout/glayout/llm/rag_data/resistor.md
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.