Useful equations to remember

Power consumption


Dual Slope ADC



Diode Logic

And Gate

Or Gate

Not Gate



Denoter Speciality
74 Basic TTL
74H High Speed
74LS Low power Schottky
74L(Obselete) Low Power
74S(Obselete) Schottky
74AS Advanced Schottky
74ALS Advanced Low Power Schottky
74F Fast

Block Diagram

Logic Gates

The phase splitter and output stages are always the same, only the logic changes between modules.




Block Diagram



each new input is simply a new emitter on the transistor


Fan In

Fan Out

Noise Margin

Power consumption

Total power consumption is the addition of static and dynamic power losses

Static Power Consumption

Dynamic Power Consumption

Design Notes

Open Drain

Open drain devices are devices where the drain is unconnected and so the designer must choose the resistor and supply themselves.
This also means the PMOS section of the circuit is removed
Useful for Driving LEDs
Useful in Multisouce busses

Multisource bus

Multiple devices connected to a single output. Only one output can be on at once hence each gate has an enable to put its data onto the bus.
When all enables are low the output is pulled high.
Nand gates are used and so the data value on the bus is the inversion of the data that is on the enabled gate

Tristate output

Tristate circuits have 3 states they exist in: High, Low, Disconnected(high impedance). The enable pin when high allows signals to flow but otherwise acts as an open switch not allowing any current to flow.

Tristate buffer

CMOS Tristate Buffer

Here if the enable is set to low then both the transistors are off rather than the usual one one one off state


CMOS Transmission Gates

Multiple transmission gates can be used for XOR, XNOR and multiplexers.




Analogue to Digital

Remember nyquist theorem (sampling frequency must be at least twice the maximum frequency to avoid ailiasing)
The more bits the largers the resolution of the device but more storage and processing needed.
The signal is first passed through an anti-aliasing filter. This filter then is sampled and stored and fed into the ADC (Analogue to digital convertor).

When the ADC is working the input must be kept constant so the sample and hold circuit must hold one anlogue value constant for the sampling time.


Here the input is buffered and charges a capacitor to the input value the swich is then turned off and the capacitor acts like a constant voltage output with a buffer attached giving a stair step like response out of the holder.

Flash ADC

The vref and resistor network acts as a group of reference potential dividers.These are compared to the voltage in and in turn turn their outputs on depending on what the voltage is like a bobber in a water tank, this is then encoded into binary using a priority encoder on each enable pulse.
Flash converters are hardware expensive but fast.

Successive aproximation ADC

WHen a Vin is applied and a clock produced initially the msb is set high, this is then converted to analog and compared to vin, if the comparator outputs a high then keep this value on otherwise set the bit to 0. keep cycling this moving down in bit significance untill at the lsb where the aproximation is complete and the binary can be output.This method is slower but much less resource heavy (requiring the number of bits as clock cycles to make an aproximation).
Note the S/H stands for a sample hold as previously seen.

Dual Slope ADC

this method is used a lot in measurment methods.

Here an inpit voltage VA charges an integrator creating a ramp function for anmount of time, this ramp is then discharged by a reference voltage

the time taken to discharge to 0V is then measured and the output voltage given by

Digital to Analogue convertors

Binary Weighted DAC

R/2R Ladder DAC

and by thevenin/norton each bit of magnitude n equates to

Settling time

Settling time is the amount of time the output takes to never oscillate above the magnitude of the least significant bit.

Memory Heirachy

The higher up the tree the more the memory costs but the faster it is.

Principal of Locality

Temportal Locality

If a memory location has been accessed recently it will be likely accessed again soon

Spatial Locality

If a memory location has been accessed the next to be accessed is likely nearby

Memory cache

Takes advantage of temporal and spatial locality by keeping recent and nearby code in a fast access memory location.(On-chip and off-chip SRAM)


The bitlines set or read the value and the wordline enables the data on the bitlines.
Data is lost when the power is turned off


To write to SRAM the bitlines are set to the values desired and then the wordline is enabled to put this data onto the cell.


To read the data both bitline and bitline’ are set to 1 and then the word line enabled, a sense amplifier then measures current flow to detect if there was a 0 on the bitline or bitline’

DRAM cell

charge leaks over time and must be refreshed
Data is lost when the power is turned off


To write to a DRAM cell the data is set on the bitline and the word line set high to charge or discharge the capactior accordingly. the wordline is then turned off keeping the capacitor charged.


To read the bitline is set to neither high nor low but inbetween and the word line turned on, a sense amplifier then detects if current was sourced or sunk which is recovered as a 1 or a 0.

Denoter Speciality
DRAM slow asynchronus
SDRAM Synchronous DRAM
SDR SDRAM Single data rate (one word per clock cycle)
DDR SDRAM Double data rate (two words per clock cycle)
DDR4 Lots of weird things

Dual Port Ram

Can read two bits in one cycle
Can only write one per cycle as both channels are required#


Here the gate is forced to high or low voltages by applying voltages to the source, drain and gate. Due to its oxide surrounding leaves the charge floating. When a positive is applied to the control the floating gate becomes negative and is associated with a binary 0. Otherwise a negative on the gate causes a positive on the floating gate equating a binary 1.

External memory interfacing

System Bus model

Here the control buss differentiates between addressing memory or I/O

Multiplexing Address/Data Busses

Here a control pin is used to differentiate between whether data or address is on the bus. This reduces pins but can slow datarate

Memory Mapped I/O

A memory map simply splits up available addresses saying what can be found in each section (generally the program starts at 0)

Isolated I/O

Different busses are used for I/O lines than for memory

Memory Mapped I/O

The bus is shared for I/O and memory where the I/O is memory mapped after the memory.

Asynchronous Data transfer

Destination initated transfer

Here a request is sent for the data and after the data access time (ta) the data appears on the bus to be read. The data after the minimum hold time is then taken off the bus (unless not requested to)

Source initiated transfer

Here the source puts the data on the bus and then sends a control signal to say the data is ready to be read. The data is then read and data ready goes low then removing the data on the bus.


Both destination and source initiated transfer are known as strobing and works well for deterministic devices. If the data is unpredictable such as on the internet a protocal called handshaking must be used.
Here the data is sent the same way with data bus and data ready pulses but also the reciever returns data acknowleged to the source to let it know it has been read.

Direct Memory Addressing

This is where an external processor takes information from I/O directly to memory instead of via the processor, this frees us processor time.

A data transfer signal is sent to the controller and in turn the controller sends a hold interrupt to the processor where the CPU disconects from the busses and thus giving control to the controller to directly put data in the memory. The hold signal is then low and the CPU gains control of the busses again.

Semiconductors :shit:

Useful equations to remember


conductivity equation

σ=nqμe+pqμh=q(nμe+pμh) (for intrinsic σ=niq(μe+μh))

Diode equation


Fermi Dirac


Wave equations


Charge neutrality



Useful equations to remember


Op-Amp open loop gain equation


First Order Low Pass Standard form