Datorarkitektur 1. Sekventiella kretsar (minne) December 2008

Relevanta dokument
Digitalteknik och Datorarkitektur 5hp

Sekventiella krestar (minne)

Digitalteknik och Datorarkitektur 5hp

Foto: Rona Proudfoot (some rights reserved) Datorarkitektur 1. Datapath & Control. December

c a OP b Digitalteknik och Datorarkitektur 5hp ALU Design Principle 1 - Simplicity favors regularity add $15, $8, $11

Beijer Electronics AB 2000, MA00336A,

12.6 Heat equation, Wave equation

Problem som kan uppkomma vid registrering av ansökan

LUNDS TEKNISKA HÖGSKOLA Institutionen för Elektro- och Informationsteknik

Läsminne Read Only Memory ROM

Support Manual HoistLocatel Electronic Locks

Preschool Kindergarten

Styrteknik: Binära tal, talsystem och koder D3:1

2.1 Installation of driver using Internet Installation of driver from disk... 3

Boiler with heatpump / Värmepumpsberedare

Webbregistrering pa kurs och termin

Isometries of the plane

Integrated Circuits. Digitalteknik och Datorarkitektur 5hp. An SSI chip containing four gates. Relay Triod Transistor

Writing with context. Att skriva med sammanhang

FÖRBERED UNDERLAG FÖR BEDÖMNING SÅ HÄR

FORTA M315. Installation. 218 mm.

Ett minneselements egenskaper. F10: Minneselement. Latch. SR-latch. Innehåll:


Ett hållbart boende A sustainable living. Mikael Hassel. Handledare/ Supervisor. Examiner. Katarina Lundeberg/Fredric Benesch

Viktig information för transmittrar med option /A1 Gold-Plated Diaphragm

Instruction Manual. Svenska, English. Power Bank. Model: PRBN

English. Things to remember

F9: Minne. Sammansättning av minnesgrupper Ansluta minne till Interface till olika typer av minnen Användningsområden.

Hur fattar samhället beslut när forskarna är oeniga?



Recitation 4. 2-D arrays. Exceptions

Module 1: Functions, Limits, Continuity

Make a speech. How to make the perfect speech. söndag 6 oktober 13

Om oss DET PERFEKTA KOMPLEMENTET THE PERFECT COMPLETION 04 EN BINZ ÄR PRECIS SÅ BRA SOM DU FÖRVÄNTAR DIG A BINZ IS JUST AS GOOD AS YOU THINK 05

electiaprotect GSM SEQURITY SYSTEM Vesta EZ Home Application SMART SECURITY SYSTEMS! SVENSKA ios Android

Webbreg öppen: 26/ /

Minnessystem. Minneshierarki. Flyktigt eller icke flyktigt huvudsakliga egenskaper. Minneshierarki

Michael Q. Jones & Matt B. Pedersen University of Nevada Las Vegas

Stiftelsen Allmänna Barnhuset KARLSTADS UNIVERSITET

D-RAIL AB. All Rights Reserved.

Resultat av den utökade första planeringsövningen inför RRC september 2005

Tentamen PC-teknik 5 p

Enterprise App Store. Sammi Khayer. Igor Stevstedt. Konsultchef mobila lösningar. Teknisk Lead mobila lösningar

CHANGE WITH THE BRAIN IN MIND. Frukostseminarium 11 oktober 2018

Digitalteknik och Datorarkitektur 5hp

Digital IC konstruktion

Accomodations at Anfasteröd Gårdsvik, Ljungskile

Digital IC konstruktion

F ξ (x) = f(y, x)dydx = 1. We say that a random variable ξ has a distribution F (x), if. F (x) =

Release notes for Permobil R-net PC-programmer ver Dealer access level

Lösenordsportalen Hosted by UNIT4 For instructions in English, see further down in this document

Materialplanering och styrning på grundnivå. 7,5 högskolepoäng

Information technology Open Document Format for Office Applications (OpenDocument) v1.0 (ISO/IEC 26300:2006, IDT) SWEDISH STANDARDS INSTITUTE

Mot hållbar elbilsanvändning


VHDL Basics. Component model Code model Entity Architecture Identifiers and objects Operations for relations. Bengt Oelmann -- copyright

Random Access Memory. Amare Reda Jenny Holmberg Henrik Kreipke Gaylord Kaya

4 grundregler. Minneshantering. Problemet. Windows minkrav

Styrteknik: Grundläggande logiska funktioner D2:1

This exam consists of four problems. The maximum sum of points is 20. The marks 3, 4 and 5 require a minimum

The Arctic boundary layer

Styrteknik : Funktioner och funktionsblock

Chapter 2: Random Variables

Discovering!!!!! Swedish ÅÄÖ. EPISODE 6 Norrlänningar and numbers Misi.se

rd, rs, rt Digitalteknik och Datorarkitektur 5hp ALU register) 32 bit register b 5 bit 32 Registers 32 bit MIPS is a Register-toregister

Solutions to exam in SF1811 Optimization, June 3, 2014

Datasäkerhet och integritet

Grafisk teknik IMCDP IMCDP IMCDP. IMCDP(filter) Sasan Gooran (HT 2006) Assumptions:

4.3 Stokastiska variabler (slumpmässiga variabler) 4.4 Väntevärde och varians till stokastiska variabler

F9: Minne. Minneskonfiguration. Sammansättning av minnesgrupper Ansluta minne till Interface till olika typer av minnen Användningsområden

Kvalitetsarbete I Landstinget i Kalmar län. 24 oktober 2007 Eva Arvidsson

Taking Flight! Migrating to SAS 9.2!

Workplan Food. Spring term 2016 Year 7. Name:

Vad kännetecknar en god klass. Vad kännetecknar en god klass. F12 Nested & Inner Classes

Digital IC konstruktion

PFC and EMI filtering

GU / Chalmers Campus Lindholmen Tentamen Programutveckling LEU 482 / TIG167

BOENDEFORMENS BETYDELSE FÖR ASYLSÖKANDES INTEGRATION Lina Sandström

Föreläsning 4 IS1300 Inbyggda system

Grafisk teknik IMCDP. Sasan Gooran (HT 2006) Assumptions:

LOG/iC2. Introduction

The Algerian Law of Association. Hotel Rivoli Casablanca October 22-23, 2009

Installation Instructions

Urban Runoff in Denser Environments. Tom Richman, ASLA, AICP

Dokumentnamn Order and safety regulations for Hässleholms Kretsloppscenter. Godkänd/ansvarig Gunilla Holmberg. Kretsloppscenter

ISBN: Tommy Ohlsson Stockholm 2013

Samverkan på departementsnivå om Agenda 2030 och minskade hälsoklyftor

LUNDS TEKNISKA HÖGSKOLA Inst. for Elektro- och Informationsteknik. SIGNALBEHANDLING I MULTIMEDIA, ETI265 Inlämningsuppgift 1 (av 2), Task 1 (out of 2)

Det finns en handledning till kortet på hemsidan. AVR STK500.

Service och bemötande. Torbjörn Johansson, GAF Pär Magnusson, Öjestrand GC

Övning 5 ETS052 Datorkommuniktion Routing och Networking

Rastercell. Digital Rastrering. AM & FM Raster. Rastercell. AM & FM Raster. Sasan Gooran (VT 2007) Rastrering. Rastercell. Konventionellt, AM

Annonsformat desktop. Startsida / områdesstartsidor. Artikel/nyhets-sidor. 1. Toppbanner, format 1050x180 pxl. Format 1060x180 px + 250x240 pxl.

STORSEMINARIET 3. Amplitud. frekvens. frekvens uppgift 9.4 (cylindriskt rör)

Application Note SW

För att justera TX finns det ett tool med namnet MMDVMCal. t.ex. /home/pi/applications/mmdvmcal/mmdvmcal /dev/ttyacm0

1. Compute the following matrix: (2 p) 2. Compute the determinant of the following matrix: (2 p)

D0013E Introduktion till Digitalteknik

Provlektion Just Stuff B Textbook Just Stuff B Workbook

Transkript:

Datorarkitektur Sekventiella kretsar (minne) December 28 karl.marklund@it.uu.se

B M C A The function can be described by a thruth table. 4 Minterms The majority function

Tools such as Logisim can calculate the thruth table from a circuit...and minimize the expression using a Karnaugh map......and build the minimized circuit for us!

För en kombinatorisk krets gäller att det existerar en entydig kombination av utsignal-tillstånd för varje möjlig kombination av insignaler. En utsignal från en kombinatorisk krets beror ej av kretsens historia dvs tidigare in-signalvärden - kretsen saknar minne! Är detta en kombinatorisk krets? Därför kan kombinatoriska logiska kretsars funktion beskrivas med hjälp av sanningstabeller. register a 5 bit register b 5 bit register c 5 bit Registers 32 bit Vi har sett att vi kan 32 bit konstruera en ALU med hjälp av ALU OP kombinatoriska kretstar. 32 bit

Om det var en kombinatorisk krets skulle vi få samma utdata för samma indata varje gång register a 5 bit 32 bit register b 5 bit 32 Registers 32 bit En kombinatorisk krets kan inte ha feedback (återkoppling). ALU OP register c 5 bit 32 bit och vad är nu det här? På en och samma adress vill vi kunna lagra olika data vid olika tillfällen.

Vi behöver krestar med minne.

Q = when at least one of A and B equals Q = when both A and B equal A B Q Q Q = when at least one of A and B equals Q = when at least one of A or B equal

When Q is true, the bottom NOR-gate actcs like an inverter (no matter the value of S) and Q becomes false... What happens if we change to true here?... which becomes the input to the top NOR-gate Q = true = Q (Q is unchanged) A pair of cross-coupled NOR-gates.

What happens if we change back to false again? Asserting R will give Q = false...... which becomes the input to the bottom NORgate Q = true... which becomes the input to the upper NORgate Q = false

Deasserting R won t change anything, Q remains false no matter the value of R. What happens if we change to true here? When both R and S are deasserted, the cross-coupled NOR-gats remembers the values of Q and Q

What happens if we change S back to false?... which becomes the input to the top NOR-gate Q = true Asserting S gives Q = false...

Again, when both R and S are deasserted, the crosscoupled NOR-gats remembers the values of Q and Q Deasserting S won t change anything...

R S Q n+ Q n+ Q n Q n?? Logisim DEMO

R S Q n+ Q n+ both zero Q n Q n Overriding the memory feedback action. What happens if both R and S drops (voltage change is not instanteneous) to zero simultaneously?

R drops first...... resulting in Q = S drops first...... resulting in Q =

An example of sequential logic: The output output depends not only on the present input but also on the history of the input. R S Q n+ Q n+ Q n Q n Restricted If both R and S drops to zero at the same time metastability

R Q R S Q n+ Q n+ Q n Q n S Q Restricted A SR Latch (Set and Reset Latch) can store -bit of data.

SR Latch Setting C to will only reset Q if D is at the same time. D Latch D can only function as Set when C (clock/enable) is true.

C D Q n+ Q n+ Comment X Q n Q n No Change Reset Set

C Q A D Latch (Data Latch) can store -bit of data. D Q C D Q n+ Q n+ Comment X Q n Q n No Change Reset Set

R S Q Q A latch is a sequential device that watches all of its inputs continuously and changes its outputs at any time. R S SR Latch Q n+ Q n Q n+ Q n Restricted A flip-flop is a sequential device that samples its inputs and changes its outputs only at times determined by a clocking signal. C Q C D D Latch / Flip-Flop Q n+ Q n+ Comment D Q X Q n Q n No Change Reset Set

C Q C D Q n+ D Latch Q n+ Comment D Q X Q n Q n No Change Reset Set D C Q When the latch is open (C=) Q follows D (a transparent latch)

Changing C back to zero The output Q of the master latch follows input D when clock is high (which closes the slave latch).

Changing C back to zero opens the slave latch taking the Q output of the master latch as D input.

D C Q Output Q only changes on falling clock edges (non transparent).

C D Q n+ Q n+ Comment non-falling X Q n Q n No Change Set Reset

The triangle indicates an edge-trigged latch a flip flop. C Q A D Flip-Flop The inversion bubble on the clock input indicate a falling-edge triggered flip-flop D Q C D Q n+ Q n+ Comment non-falling X Q n Q n No Change Set Reset

Logisim DEMO 8 bit D flip-flop register

Clock 8 D Flip-Flops used to form a 8 bit register. 2 A falling edge trigged D flip-flop C Q D Q

Clock goes to high... output remains unchanged. 2

Clock falls back to low... output equals input. 2

Changing input... does not affect ouput. 2

Funkar bra med multiplexer eftersom vi har relativt få register. We have now built a complete register file. register a 3 bit 8 bit register b 3 bit Registers 8 bit ALU OP register c 3 bit 8 bit

MEMORY Varje cell har en unik adress. Fyra bytes bildar ett ord (word) om 32 bitar. Address xffffffff xfffffffe xfffffffd xfffffffc... x3 x2 x x Content I MIPS består minnet av 2 32 celler. Varje cell i minnet kan lagra åtta bitar, dvs en byte. Kan vi bygga minnet på samma sätt som register-filen?

32 stycken MEMORY 2 32 stycken Address xffffffff xfffffffe xfffffffd xfffffffc... x3 x2 x x Content Giant Multiplexor

Möjligt, men absolut inte praktiskt att bygga ut till 2 32 olika data inputs......och 32 select input.

All inputs share the same output line. What happens if we change to here? Signals are not or... Signals on the wire are high or low voltage. We cannot have high and low voltage at the same time. E = Error

Three State Buffer A B E A (low ) E (low) B High Z When not Enabled (E = ) the three state buffer acts lika a huge resistance, kind of cutting of the wire. (high) (low) High Z (low) (high) (high) (high) (low) (high) When Enabled (E = ) the three state buffer lets the input signal A through. Output B can be in three states, (low), (high) and high resistance (Z).

A tranistor is never completely off, only the number of electrons used to form the current can be controlled high or low current A three state buffer acts like a true switch compared to a transistor.

A multilexor Can use three state buffers to implement a multiplexor. A shared data line (bus).

4x2 SRAM Memory A D Flip-Flop Using three state buffer instead of multiplerxors make it possible to share data lines. A shared output data bus.

4x4 SRAM Memory Using three state buffer instead of multiplerxors make it easy to extend... Address line, aka word line. 4x8 bit = 32 bit = Word

Static Random Access Memory 4x4 SRAM Memory Random? Random: takes the same time to access any random memory location. Static?

En kondensator (Capacitor) är som en läckande hink med vatten. Kondensatorn fylls på med elektroner och laddas därmed upp. Efter en tid "rinner" ellektronerna ut och kondensatorn tappar sin laddning. Hmm, en kondensator borde kunna användas för att lagra en bit... Synd bara att den tappar sitt minne efter ett tag...

Transistor Word Line Capacitor Bit Line Asserting both the Word Line and the Bit Line charges the capacitor

Write: assert word line, drive new value (/) on bit line. Word Line Read: assert word line, sense value on bit line (destroys saved value) Bit Line Reading a bit destroys the bit must refresh the memory cell.

Word Lines Bit Cell High Bit Lines Sense Amplifier Low Address Data

bit line word line Since real capacitors leak charge, the information eventually fades unless the capacitor charge is refreshed periodically A latch is used to remember a whole word line. because of this refresh requirement, it is a dynamic random access memory as opposed to SRAM and other static memory DRAM

Normal RAM drives many bits (row) out of array, selects few to output. Latch Adding latch at row outputs allows us to save an entire row of the RAM Later accesses to the RAM can eliminate the row access time, just need column access time Most common in DRAM, page-mode SRAMs also exist

SRAM DRAM Faster Stable - holds value as long as power applied Less dense (4-6 transistors/bit) More expensive per bit Unstable - needs refresh Slower High density ( ransistor/bit) Less expensive per bit Registers must be as fast as possible, hence Flip-Flop memory similar to SRAM is used for registers. Since we use quite a few registers, the low bit denisity does not matter that much.

John Von Neumann, who lived from 93-957, was working at the Institute for Advanced Study when he became fascinated by the success of the ENIAC. This fascination would lead him to undertake an abstract study of computation that showed that: a computer should have a very simple, fixed physical structure, and yet be able to execute any kind of computation by means of a proper programmed control without the need for any change in the unit itself.

John von Neuman 945: The stored program computer The von Neuman model

Ur den formella kursplanen: Efter genomgången kurs skall deltagarna ingående kunna beskriva funktionen hos och uppbyggnaden av en dators delar såsom -styrenhet - primärminne - in- och utmatningssystem Dessa saker börjar vi få hyffsad koll på... Deltagarna skall kunna programmera i assemblerspråk.

Jaha... Men enligt den informella kursplanen då? Hur kul som hellst! Vi får lära oss från grunden hur en dator egentligen fungerar. När jag gått kursen kan jag i princip springa ner på stan och köpa en säck transistorer, bygga en dator och programmera den.