Concepts Introduced. A 1-Bit Logical Unit. 1-Bit Half Adder (cont.) 1-Bit Half Adder
|
|
- Earl Quinn
- 5 years ago
- Views:
Transcription
1 oncepts Introduced A -Bit Logicl Unit sic rithmetic/logic unit clocks ltches nd ip-ops registers SRAMs nd RAMs nite stte mchines Below is -it logicl unit tht performs AN nd OR opertions Both the AN nd OR opertions re lwys performed, ut the output produced depends on the selector to the multiplexor A 32-it logicl unit for AN nd OR opertions would just e n rry of these -it logicl units Opertion -Bit Hlf Adder A hlf dder tkes two inputs, nd, nd genertes two outputs, the crry nd the sum A hlf dder is clled (2,2) dder s it tkes two inputs nd produces two outputs Wht type of gte cn produce the crry output? Wht type of gte cn produce the sum output? Inputs Outputs crry sum omments + = 2 -Bit Hlf Adder (cont) The circuit for the crry cn use n AN gte The circuit for the sum cn use n XOR gte crry sum The gtes cn e comined together s one logic lock sum + = 2 + = 2 + = 2 crry
2 -Bit Full Adder Only the lest signicnt its (LSBs) will use hlf dder The ddition for the other its need third input, which is the from the previous it position This type is clled full dder or (3,2) dder since it tkes three inputs nd produces two outputs -Bit Full Adder (cont) Note the crryout nd the sum outputs for the full dder dier from the hlf dder Sum = = Inputs Outputs Sum omments + + = two + + = two + + = two + Sum + + = two + + = two + + = two + + = two + + = two Sum from Full Adder from Full Adder Sum = = = + + Sum
3 from Full Adder (cont) Sum nd from Full Adder = + + Sum Hrdwre ely -Bit ALU for AN, OR, nd Addition This -it ALU performs AN, OR, nd ddition on nd Opertion ely is dened s the time from when the input is stle to the time when the output is stle Will the full -it dder dely e greter thn the hlf -it dder dely? 2
4 32-Bit ALU for AN, OR, nd Addition Supporting Sutrction The 32-it dder, lso clled the ripple crry dder, is creted y linking the of the previous -it dder to the of the current -it dder Fster dders re possile 2 2 ALU ALU ALU2 Opertion 2 Rememer tht = + = + + in two's complement representtion So to support : Invert every it in Add to the result Add with 3 3 ALU3 3 -Bit ALU for AN, OR, Addition, nd Sutrction This -it ALU performs AN, OR, nd ddition on ( nd ) or ( nd ) By selecting nd setting to in the LSB of the ALU, the ALU cn perform sutrction of from Binvert Opertion -Bit ALU for AN, OR, NOR, Addition, nd Sutrction This -it ALU performs AN, OR, nd ddition on ( or ) nd ( or ) By selecting nd, ( NOR ) is produced from ( AN ) Ainvert Binvert Opertion 2 2
5 Supporting the SLT Instruction eling with Overow Rememer tht the slt instruction produces if rs < rt (or < ) nd otherwise So we need to set ll ut the lest signicnt it (LSB) to The LSB is set ccording to the result of the most signicnt it (MSB) fter performing n - opertion ( ) < (( ) + ) < ( + ) < When the result of the sutrction is greter thn the lrgest positive representle vlue or is smller thn the smllest negtive representle vlue, then we hve n overow The MSB of sutrction result cnnot e used when there is n overow A+B Opernd A Opernd B Overflow? < < < < < < Yes No < < No < No < < No < No hecking for Overow hecking for Overow (cont) We cn detect overow y checking if the nd of the MSB dier The lrgest positive vlue is Adding the two lrgest positive vlues will give result of, which hs the MSB set, ut the is not set The smllest negtive vlue is Adding the two smllest negtive vlues will give result of, which hs the MSB cler, ut the is set MSB MSB rry In MSB MSB rry rry MSB Over- XOR A B In Out flow? rry Out Notes No Yes crries differ No A < B No A > B No A > B No A < B Yes crries differ No
6 -Bit ALU for All Bits Except the Most Signicnt Bit This -it ALU hs n extr input clled tht cn e used for the result of the slt instruction This -it ALU is used for ll its except the MSB Ainvert Binvert Opertion 2 3 -Bit ALU for the Most Signicnt Bit This -it ALU for the MSB hs n output clled Set for the slt instruction from performing the sutrction This -it ALU lso checks for overow Ainvert Opertion Binvert Set Overflow detection Overflow Ainvert Opertion Binvert 32-Bit ALU for AN, OR, NOR, Addition, Sutrction, SLT Supporting the BE Instruction The Set output is the input for the LSB -it ALU A zero is input s the signl for ll other -it ALUs If Overow is set, then the Set result for the MSB should e inverted Binvert Ainvert Overflow detection 2 ALU 3 ALU Set Opertion Overflow To support eq instruction, we cn get the result of nd check if the result is zero ( = ) = To check if ny of the sutrction it results re not zero: NotZero = ( ) 2 2 ALU2 2 To check if ll of the sutrction it results re zero: Zero = ( ) ALU3 Set Overflow
7 Finl 32-Bit ALU The Zero result is used for the eq instruction Ainvert Bnegte 2 2 ALU ALU ALU2 2 Opertion ALU3 Set Overflow Zero ALU ontrol Lines The ALU control lines cn e represented s inry vlue The MSB is the Ainvert line, the 2nd MSB is the Binvert line, nd the two LSBs re the Opertion lines ( - AN, - OR, - dd, - slt) ALU control lines AN OR dd Function sutrct set on less thn NOR Universl ALU Symol Below is the universl symol tht is used to represent complete ALU ALU opertion Verilog Behviorl enition of MIPS ALU module MIPSALU(ALUctl, A, B, ALUOut, Zero); input [3:] ALUctl; input [3:] A, B; output reg [3:] ALUOut; output Zero; ALU Zero Overflow ssign Zero = (ALUOut == ); A, B) cse (ALUctl) : ALUOut <= A & B; : ALUOut <= A B; 2: ALUOut <= A + B; 6: ALUOut <= A - B; 7: ALUOut <= A < B? : ; 2: ALUOut <= ~(A B); defult: ALUOut <= ; endcse endmodule
8 locks Stte Elements A clock is signl tht ocsilltes etween low nd high voltges in xed period of time The clock cycle time or clock period is the time etween two trnsitions from low voltge to high voltge (rising edges) or the time etween two trnsitions from high voltge to low voltge (flling edges) Edge-triggered clocking mens ll stte chnges occur on the ctive (rising or flling) clock edge Flling edge A stte element hs some type of internl storge nd t lest two inputs nd one output The required inputs to stte element re the dt vlue to e written nd the clock signl, which indictes when the dt vlue is to e written The output from stte element is the vlue tht ws written on previous cycle Some stte elements re only written when there is n explicit write signl is ctive lock period Rising edge Synchronous System A signl is vlid when it is stle (not chnging) nd the vlue will not chnge gin until the inputs chnge A synchronous system is logic system tht employs clocks nd dt signls re red only when the clock indictes tht the signl vlues re stle (not chnging) In synchonous system, stte elements provide inputs to comintionl logic lock nd the outputs of the comintionl logic re stored in stte elements, which occurs only on the ctive clock edge Reding nd Writing the Sme Stte Element It is possile to hve stte element tht is used s oth n input nd output to the sme comintionl lock Stte element omintionl logic Stte element omintionl logic Stte element 2 lock cycle
9 A Verilog Speciction of lock Ltches nd Flip-Flops A clock cn e specied in Verilog s register tht is updted on ech time step reg clock; // clock is register lwys egin # clock = ; # clock = ; end Ltches nd Flip-ops re the simplest stte elements The dierence is the point t which the clock cuses the stte to chnge In clocked ltch, the stte cn chnge when the clock signl is sserted nd in ip-op, the stte is chnged only on n ctive clock edge Unclocked S-R Ltch Unclocked S-R Ltch Actions Below is n S-R ltch (set-reset ltch), which is uilt from pir of NOR gtes S stnds for set the stte to, R stnds reset the stte to, is the output, nd is the complement of the output When neither S nd R re sserted, retins its previous stte When S is sserted nd R is desserted, then is set to When S is desserted nd R is sserted, then is reset to Asserting oth S nd R is not llowed R S Inputs Initil Stle R S =R NOR =S NOR =R NOR =S NOR Action = NOR = NOR = NOR = NOR hold stte of = NOR = NOR = NOR = NOR hold stte of = NOR = NOR = NOR = NOR set to = NOR = NOR = NOR = NOR set to = NOR = NOR = NOR = NOR reset to = NOR = NOR = NOR = NOR reset to not llowed not llowed
10 Ltch Opertion of Ltch A ltch hs two inputs, which re the dt vlue () to e stored nd the clock signl () tht indictes when the ltch should red the input nd store it A ltch hs two outputs, which re the internl stte () nd its complement () When is sserted, the ltch is sid to e open nd when is desserted, then ltch is sid to e closed When the (clock) signl is sserted, then the ltch is open nd the output ssumes the vlue of the input A Flip-Flop with Flling-Edge Trigger Opertion of Flip-Flop with Flling-Edge Trigger A ip-op's stte only chnges on clock edge The gure elow shows how flling-edge ip-op is constructed from pir of ltches When flls, the rst ltch (mster) is closed nd the second ltch (slve) is open nd gets its input from the mster ltch When the (clock) signl chnges from sserted to desserted, then the output ssumes the vlue of the input ltch ltch
11 Verilog Behviorl escription of Flip-Flop The posedge indictes tht the lwys construct is only reevluted when the clock chnges from to Register Files A register le cn e implemented s n rry of registers uilt from ip-ops, where ech register requires 32 ip-ops Typiclly register le hs t lest two red ports nd one write port module FF(clock,,, r) input clock, ; output reg ; output r; ssign r = ~; clock) = ; endmodule Red register numer Red register numer 2 Write register Write dt Register file Write Red dt Red dt 2 Register File Red Ports Register File Write Port Register le red ports for n registers re implemented with pir of n-to- multiplexors The register numer is used s the multiplexor selector signl Red register numer Red register numer 2 Register Register Register n 2 Register n M u x M u x Red dt Red dt 2 A register le write port is implemented using decoder tht tkes the register numer s input to determine which register to write Both the decoder output nd write signl hve to e set for register to e written The register vlue to e written is third input
12 Register File Write Port (cont) MIPS Register File Written in Behviorl Verilog Write The register le is only written on the positive edge of the clock when the RegWrite signl is set Register numer n-to-2 n decoder n 2 n Register Register module registerfile(red, Red2, WriteReg, Writet, RegWrite, t, t2, clock); input [5:] Red, Red2, WriteReg; input [3:] Writet; input RegWrite, clock; output [3:] t, t2; reg [3:] RF [3:]; Register dt Register n 2 Register n ssign t = RF[Red]; ssign t2 = RF[Red2]; clock) if (RegWrite) RF[WriteReg] <= Writedt; endmodule SRAM RAM SRAM - Sttic Rndom Access Memory Used in cches Usully hs single ccess port tht cn provide either red or write ccess Requires 6 trnsistors per it to prevent dt from eing corrupted when red nd requires 4 times the mount of spce s compred to RAM for ech stored it Ech it vlue is stored in cell y using pir of inverting gtes nd the vlue cn e kept indenitely s long s power is pplied, which is why SRAM is clled sttic SRAM ssess time is out 5 to times fster thn RAM SRAM is perhps 2 times more expensive thn RAM Synchronous SRAM (SSRAM) hs synchronous interfce to llow urst trnsfers, where clock is used to trnsfer successive words given only strting ddress nd length RAM - ynmic Rndom Access Memory Used for min memory Requires single trnsistor per it, which is lost fter eing red, so ech red requires tht the dt e written ck The vlue representing it is kept in cell tht is stored s chrge in cpcitor tht is ccessed y the single trnsistor RAM requires tht the dt e refreshed periodiclly, out 5% of the cycles, which is why RAM is clled dynmic nd is ccomplished y reding the dt nd writing it ck
13 RAM Accesses RAM Optimiztions Access time - time etween when red is requested nd the desired word rrives ycle time - minimum time etween requests to memory The ddress pins to RAM chip re typiclly decresed y two y multiplexing the ddress lines Row Access Stroe (RAS) - rst hlf of the ddress is sent for the row olumn Access Stroe (AS) - second hlf of the ddress is sent for the column RAMs llow repeted ccesses to the sme row without nother RAS, which is clled fst pge mode Synchronous RAM (SRAM) dds clock signl to void overhed of synchronizing with the memory controller nd llows vrile numer of ytes to e sent over multiple cycles per memory request oule dt rte (R) trnsfers dt on oth the rising nd flling edges of the RAM clock signl SRAMs introduced 2 to 8 nks tht cn operte independently nd simultneously service independent requests, which lso reduces power SRAMs hve low power mode, which disles the SRAM except for the internl refresh Returning to n ctive power mode requires out 2 cycles Error etection ode Hmming Error orrection ode Most memories use n error-checking code to detect possile corruption of dt With prity code, the numer of its tht re s in word is counted nd prity it is stored indicting if the numer of dt its is odd () or even () When the word is red, then the prity it is red nd if the prity of the word does not mtch the prity it, then n error is detected Use of single prity it provides single it error detection code A Hmming code llows detection nd correction of it of error Steps to clculte the Hmming error correction code (E) Numer its from left to right strting from esignte ll it positions tht re powers of 2 s prity its nd ll other its s dt its The position of the prity it determines the sequence of dt its tht it checks Bit checks its (, 3, 5, 7, 9, ) where the rightmost it ssocited with the vlue is Bit 2 checks its (2, 3, 6, 7,, ) where the second rightmost it ssocited with the vlue is Bit 4 checks its (4-7, 2-5, 2-23, ) where the third rightmost it ssocited with the vlue is Bit 8 checks its (8-5, 24-3, 4-47, ) where the fourth rightmost it ssocited with the vlue is Set prity its to crete even prity for ech group
14 Hmming E for Eight t Bits Single error correction (SE) requires p prity its for d dt its, where p >= log2(p + d + ) So p=4 when d=8, p=5 when d=6, p=6 when d=32, etc Ech dt it is covered y two or more prity its If the vlue of the four prity clcultions indictes ll even prity, then there is no error Otherwise, the it pttern of the prity its indictes which it is in error Bit position Encoded dt its Prity it coverge p p2 p4 p p p2 d p4 d2 d3 d4 p8 d5 d6 d7 d8 X X X X X X X X X X X X X X X X X X X X X X Exmple of Using Hmming E for Eight t Bits Assume one yte dt vlue is Leving spces for the prity its, the 2-it pttern would e Filling in the prity its, the 2-it pttern would e Assume it ten is in error, so the dt word would e Prity it is (), which is OK since 4 one's re set Prity it 2 is (), which hs n error since 5 one's re set Prity it 4 is (), which is OK since 2 one's re set Prity it 8 is (), which hs n error since 3 one's re set Prity its 2 nd 8 detect errors, so it (2+8) must e wrong nd the error cn e corrected y inverting tht it Single Error orrecting / oule Error etecting odes Finite Stte Mchines With n dditionl prity it tht is clculted over the entire word, single it errors cn e corrected nd doule it errors cn e detected Assume 4-it word, so the old positions in re the prity its, where H is the originl prity its (p, p2, nd p3) nd p4 is prity it for the entire word There re four cses when t most two its cn e in error H nd p4 oth indicte no error, so no error occurred H nd p4 oth indicte n error, so correctle single error occurred s p4 indictes the sme error s H H indictes no error nd p4 indictes n error, so single error occurred in the p4 it, ut not in the rest of the word H indictes n error nd p4 indictes no error, so doule error occurred s p4 clcultes even prity if two errors occurred SE/E codes re commonly used in min memories tody The ehvior of sequentil systems depends on oth the inputs nd the contents of internl memory nd nite stte mchines (FSMs) re used to descrie their ehvior A nite stte mchine consists of: set of sttes A next-stte function tht given the current stte nd current inputs determines the next stte An output function tht produces set of outputs from the current stte nd inputs
15 Finite Stte Mchines (cont) Intelligent Trc ontroller Prolem esign FSM to control green nd red trc light t the intersection of north-south rod nd est-west rod Inputs urrent stte lock Next-stte function Output function Next stte Outputs two output signls: NSlite: When this signl is sserted, the light on the north-south rod is green; when desserted it is red EWlite: When this signl is sserted, the light on the est-west rod is green; when desserted it is red two input signls: NScr: Indictes there is t lest one cr over the detectors plced in the roded in the north-south rod EWcr: Indictes there is t lest one cr over the detectors plced in the roded in the est-west rod The trc light should chnge from one direction to the other if there is cr witing in the other direction; otherwise the light should continue to e green in the sme direction Intelligent Trc ontroller Prolem (cont) Intelligent Trc ontroller Prolem (cont) Below is the next stte function depicted in tle Need two sttes NSgreen: The trc light is green in the north-south direction EWgreen: The trc light is green in the est-west direction Below is grphicl representtion of the nite stte mchine EWcr NSgreen: NSlite NScr EWcr EWgreen: EWlite NScr urrent Stte Inputs NScr EWcr Next Stte NSgreen NSgreen EWgreen NSgreen EWgreen EWgreen EWgreen EWgreen NSgreen NSgreen Below is the output function for ech stte depicted in tle urrent Stte Outputs NSlite EWlite NSgreen EWgreen
16 Implementing Finite Stte Mchine Implementing the Intelligent Trc ontroller A FSM is implemented with stte register tht holds the current stte nd comintionl logic lock to compute the next stte nd the outputs omintionl logic Outputs Next stte The vlue in the stte register indictes the current stte We need to ssign numers to identify the sttes Assign to NSgreen Assign to EWgreen We only need it register since there re only two sttes Stte register Inputs Implementing the Intelligent Trc ontroller (cont) Implementing the Intelligent Trc ontroller (cont) Below is the sme tle for the next stte function using stte numers insted of nmes urrent Stte NScr Inputs EWcr Next Stte This tle cn e expressed s the following logic eqution Below is the sme tle for the output function using stte numers insted of nmes urrent Stte NSlite Outputs EWlite This tle cn e expressed s the following logic equtions NSlite = urrentstte EWlite = urrentstte NextStte = (urrentstte EWcr) + (urrentstte NScr)
17 Implementing the Intelligent Trc ontroller (cont) Verilog Version of the Trc Light ontroller NSlite EWlite NScr module TrfficLite(EWcr, NSr, EWLite, NSLite, clock); input EWcr, NScr, clock; output EWlite, NSlite; reg stte; lock flip flop it stte EWcr initil stte = ; ssign NSLite = ~stte; ssign EWLite = stte; clock) cse (stte) : stte = EWr; : stte = NSr; endcse endmodule Four Steps to Build Finite Stte Mchine Step : etermine the stte trnsitions hoose n initil stte Represent the stte trnsitions with grph nd tle Step 2: stte ssignment Assign unique numer to ech stte Rewrite the stte trnsition tle to use the ssigned stte numers Step 3: Produce the comintionl logic equtions Step 4: Implement the equtions in hrdwre
What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers
Wht do ll those bits men now? bits (...) Number Systems nd Arithmetic or Computers go to elementry school instruction R-formt I-formt... integer dt number text chrs... floting point signed unsigned single
More informationBasics of Logic Design Arithmetic Logic Unit (ALU)
Bsics of Logic Design Arithmetic Logic Unit (ALU) CPS 4 Lecture 9 Tody s Lecture Homework #3 Assigned Due Mrch 3 Project Groups ssigned & posted to lckord. Project Specifiction is on We Due April 9 Building
More informationSystems I. Logic Design I. Topics Digital logic Logic gates Simple combinational logic circuits
Systems I Logic Design I Topics Digitl logic Logic gtes Simple comintionl logic circuits Simple C sttement.. C = + ; Wht pieces of hrdwre do you think you might need? Storge - for vlues,, C Computtion
More informationWhat do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers
Wht do ll those bits men now? bits (...) Number Systems nd Arithmetic or Computers go to elementry school instruction R-formt I-formt... integer dt number text chrs... floting point signed unsigned single
More informationQuestions About Numbers. Number Systems and Arithmetic. Introduction to Binary Numbers. Negative Numbers?
Questions About Numbers Number Systems nd Arithmetic or Computers go to elementry school How do you represent negtive numbers? frctions? relly lrge numbers? relly smll numbers? How do you do rithmetic?
More informationUT1553B BCRT True Dual-port Memory Interface
UTMC APPICATION NOTE UT553B BCRT True Dul-port Memory Interfce INTRODUCTION The UTMC UT553B BCRT is monolithic CMOS integrted circuit tht provides comprehensive MI-STD- 553B Bus Controller nd Remote Terminl
More informationCourse Administration
/4/7 Spring 7 EE 363: Computer Orgniztion Arithmetic for Computers Numer Representtion & ALU Avinsh Kodi Deprtment of Electricl Engineering & Computer Science Ohio University, Athens, Ohio 457 E-mil: kodi@ohio.edu
More informationComputer Arithmetic Logical, Integer Addition & Subtraction Chapter
Computer Arithmetic Logicl, Integer Addition & Sutrction Chpter 3.-3.3 3.3 EEC7 FQ 25 MIPS Integer Representtion -it signed integers,, e.g., for numeric opertions 2 s s complement: one representtion for
More informationGeorge Boole. IT 3123 Hardware and Software Concepts. Switching Algebra. Boolean Functions. Boolean Functions. Truth Tables
George Boole IT 3123 Hrdwre nd Softwre Concepts My 28 Digitl Logic The Little Mn Computer 1815 1864 British mthemticin nd philosopher Mny contriutions to mthemtics. Boolen lger: n lger over finite sets
More informationCOMP 423 lecture 11 Jan. 28, 2008
COMP 423 lecture 11 Jn. 28, 2008 Up to now, we hve looked t how some symols in n lphet occur more frequently thn others nd how we cn sve its y using code such tht the codewords for more frequently occuring
More informationStack Manipulation. Other Issues. How about larger constants? Frame Pointer. PowerPC. Alternative Architectures
Other Issues Stck Mnipultion support for procedures (Refer to section 3.6), stcks, frmes, recursion mnipulting strings nd pointers linkers, loders, memory lyout Interrupts, exceptions, system clls nd conventions
More informationIn the last lecture, we discussed how valid tokens may be specified by regular expressions.
LECTURE 5 Scnning SYNTAX ANALYSIS We know from our previous lectures tht the process of verifying the syntx of the progrm is performed in two stges: Scnning: Identifying nd verifying tokens in progrm.
More informationExample: 2:1 Multiplexer
Exmple: 2:1 Multiplexer Exmple #1 reg ; lwys @( or or s) egin if (s == 1') egin = ; else egin = ; 1 s B. Bs 114 Exmple: 2:1 Multiplexer Exmple #2 Normlly lwys include egin nd sttements even though they
More informationAgenda & Reading. Class Exercise. COMPSCI 105 SS 2012 Principles of Computer Science. Arrays
COMPSCI 5 SS Principles of Computer Science Arrys & Multidimensionl Arrys Agend & Reding Agend Arrys Creting & Using Primitive & Reference Types Assignments & Equlity Pss y Vlue & Pss y Reference Copying
More informationLecture 10 Evolutionary Computation: Evolution strategies and genetic programming
Lecture 10 Evolutionry Computtion: Evolution strtegies nd genetic progrmming Evolution strtegies Genetic progrmming Summry Negnevitsky, Person Eduction, 2011 1 Evolution Strtegies Another pproch to simulting
More informationDigital Design using HDLs EE 4755 Final Examination
Nme Solution Digitl Design using HDLs EE 4755 Finl Exmintion Thursdy, 8 Decemer 6 :3-4:3 CST Alis The Hottest Plce in Hell Prolem Prolem Prolem 3 Prolem 4 Prolem 5 Prolem 6 Exm Totl (3 pts) ( pts) (5 pts)
More informationFig.25: the Role of LEX
The Lnguge for Specifying Lexicl Anlyzer We shll now study how to uild lexicl nlyzer from specifiction of tokens in the form of list of regulr expressions The discussion centers round the design of n existing
More informationEECS150 - Digital Design Lecture 23 - High-level Design and Optimization 3, Parallelism and Pipelining
EECS150 - Digitl Design Lecture 23 - High-level Design nd Optimiztion 3, Prllelism nd Pipelining Nov 12, 2002 John Wwrzynek Fll 2002 EECS150 - Lec23-HL3 Pge 1 Prllelism Prllelism is the ct of doing more
More informationPresentation Martin Randers
Presenttion Mrtin Rnders Outline Introduction Algorithms Implementtion nd experiments Memory consumption Summry Introduction Introduction Evolution of species cn e modelled in trees Trees consist of nodes
More informationClass 04 MUX / DMUX and Full Adder
lss 4 MUX / DMUX nd Full dder June 3, 23 2 Multiplexer MUX S S Y D D D 2 D 3 S S Y 3 D 3 D 3 D 23 D 33 Y 2 D 2 D 2 D 22 D 32 Y D D D 2 D 3 Y D D D 2 D 3 June 3, 23 3 Multiplexer MUX ENTITY mux4sel IS s:
More informationECEN 468 Advanced Logic Design Lecture 36: RTL Optimization
ECEN 468 Advnced Logic Design Lecture 36: RTL Optimiztion ECEN 468 Lecture 36 RTL Design Optimiztions nd Trdeoffs 6.5 While creting dtpth during RTL design, there re severl optimiztions nd trdeoffs, involving
More informationToday s Lecture. Basics of Logic Design: Boolean Algebra, Logic Gates. Recursive Example. Review: The C / C++ code. Recursive Example (Continued)
Tod s Lecture Bsics of Logic Design: Boolen Alger, Logic Gtes Alvin R. Leeck CPS 4 Lecture 8 Homework #2 Due Ferur 3 Outline Review (sseml recursion) Building the uilding locks Logic Design Truth tles,
More informationUnit 5 Vocabulary. A function is a special relationship where each input has a single output.
MODULE 3 Terms Definition Picture/Exmple/Nottion 1 Function Nottion Function nottion is n efficient nd effective wy to write functions of ll types. This nottion llows you to identify the input vlue with
More information10.5 Graphing Quadratic Functions
0.5 Grphing Qudrtic Functions Now tht we cn solve qudrtic equtions, we wnt to lern how to grph the function ssocited with the qudrtic eqution. We cll this the qudrtic function. Grphs of Qudrtic Functions
More informationSlides for Data Mining by I. H. Witten and E. Frank
Slides for Dt Mining y I. H. Witten nd E. Frnk Simplicity first Simple lgorithms often work very well! There re mny kinds of simple structure, eg: One ttriute does ll the work All ttriutes contriute eqully
More informationCS321 Languages and Compiler Design I. Winter 2012 Lecture 5
CS321 Lnguges nd Compiler Design I Winter 2012 Lecture 5 1 FINITE AUTOMATA A non-deterministic finite utomton (NFA) consists of: An input lphet Σ, e.g. Σ =,. A set of sttes S, e.g. S = {1, 3, 5, 7, 11,
More informationLAB L Hardware Building Blocks
LAB L Hrdwre Building Blocks Perform the following groups of tsks: LL1.v 1. In previous l we creted the 2-to-1 mux shown in the left prt of the figure elow nd found tht it cts s n if sttement. c c 0 1
More informationBefore We Begin. Introduction to Spatial Domain Filtering. Introduction to Digital Image Processing. Overview (1): Administrative Details (1):
Overview (): Before We Begin Administrtive detils Review some questions to consider Winter 2006 Imge Enhncement in the Sptil Domin: Bsics of Sptil Filtering, Smoothing Sptil Filters, Order Sttistics Filters
More informationthis grammar generates the following language: Because this symbol will also be used in a later step, it receives the
LR() nlysis Drwcks of LR(). Look-hed symols s eplined efore, concerning LR(), it is possile to consult the net set to determine, in the reduction sttes, for which symols it would e possile to perform reductions.
More informationMIPS I/O and Interrupt
MIPS I/O nd Interrupt Review Floting point instructions re crried out on seprte chip clled coprocessor 1 You hve to move dt to/from coprocessor 1 to do most common opertions such s printing, clling functions,
More informationPARALLEL AND DISTRIBUTED COMPUTING
PARALLEL AND DISTRIBUTED COMPUTING 2009/2010 1 st Semester Teste Jnury 9, 2010 Durtion: 2h00 - No extr mteril llowed. This includes notes, scrtch pper, clcultor, etc. - Give your nswers in the ville spce
More informationCS 241. Fall 2017 Midterm Review Solutions. October 24, Bits and Bytes 1. 3 MIPS Assembler 6. 4 Regular Languages 7.
CS 241 Fll 2017 Midterm Review Solutions Octoer 24, 2017 Contents 1 Bits nd Bytes 1 2 MIPS Assemly Lnguge Progrmming 2 3 MIPS Assemler 6 4 Regulr Lnguges 7 5 Scnning 9 1 Bits nd Bytes 1. Give two s complement
More informationCMPUT101 Introduction to Computing - Summer 2002
CMPUT Introdution to Computing - Summer 22 %XLOGLQJ&RPSXWHU&LUFXLWV Chpter 4.4 3XUSRVH We hve looked t so fr how to uild logi gtes from trnsistors. Next we will look t how to uild iruits from logi gtes,
More informationEngineer To Engineer Note
Engineer To Engineer Note EE-169 Technicl Notes on using Anlog Devices' DSP components nd development tools Contct our technicl support by phone: (800) ANALOG-D or e-mil: dsp.support@nlog.com Or visit
More informationReducing a DFA to a Minimal DFA
Lexicl Anlysis - Prt 4 Reducing DFA to Miniml DFA Input: DFA IN Assume DFA IN never gets stuck (dd ded stte if necessry) Output: DFA MIN An equivlent DFA with the minimum numer of sttes. Hrry H. Porter,
More information2 Computing all Intersections of a Set of Segments Line Segment Intersection
15-451/651: Design & Anlysis of Algorithms Novemer 14, 2016 Lecture #21 Sweep-Line nd Segment Intersection lst chnged: Novemer 8, 2017 1 Preliminries The sweep-line prdigm is very powerful lgorithmic design
More informationAddress/Data Control. Port latch. Multiplexer
4.1 I/O PORT OPERATION As discussed in chpter 1, ll four ports of the 8051 re bi-directionl. Ech port consists of ltch (Specil Function Registers P0, P1, P2, nd P3), n output driver, nd n input buffer.
More informationLexical Analysis. Amitabha Sanyal. (www.cse.iitb.ac.in/ as) Department of Computer Science and Engineering, Indian Institute of Technology, Bombay
Lexicl Anlysis Amith Snyl (www.cse.iit.c.in/ s) Deprtment of Computer Science nd Engineering, Indin Institute of Technology, Bomy Septemer 27 College of Engineering, Pune Lexicl Anlysis: 2/6 Recp The input
More informationEnginner To Engineer Note
Technicl Notes on using Anlog Devices DSP components nd development tools from the DSP Division Phone: (800) ANALOG-D, FAX: (781) 461-3010, EMAIL: dsp_pplictions@nlog.com, FTP: ftp.nlog.com Using n ADSP-2181
More informationΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών
ΕΠΛ323 - Θωρία και Πρακτική Μταγλωττιστών Lecture 3 Lexicl Anlysis Elis Athnsopoulos elisthn@cs.ucy.c.cy Recognition of Tokens if expressions nd reltionl opertors if è if then è then else è else relop
More informationAlgorithm Design (5) Text Search
Algorithm Design (5) Text Serch Tkshi Chikym School of Engineering The University of Tokyo Text Serch Find sustring tht mtches the given key string in text dt of lrge mount Key string: chr x[m] Text Dt:
More informationA Tautology Checker loosely related to Stålmarck s Algorithm by Martin Richards
A Tutology Checker loosely relted to Stålmrck s Algorithm y Mrtin Richrds mr@cl.cm.c.uk http://www.cl.cm.c.uk/users/mr/ University Computer Lortory New Museum Site Pemroke Street Cmridge, CB2 3QG Mrtin
More informationWhat are suffix trees?
Suffix Trees 1 Wht re suffix trees? Allow lgorithm designers to store very lrge mount of informtion out strings while still keeping within liner spce Allow users to serch for new strings in the originl
More informationZZ - Advanced Math Review 2017
ZZ - Advnced Mth Review Mtrix Multipliction Given! nd! find the sum of the elements of the product BA First, rewrite the mtrices in the correct order to multiply The product is BA hs order x since B is
More informationCSCI 3130: Formal Languages and Automata Theory Lecture 12 The Chinese University of Hong Kong, Fall 2011
CSCI 3130: Forml Lnguges nd utomt Theory Lecture 12 The Chinese University of Hong Kong, Fll 2011 ndrej Bogdnov In progrmming lnguges, uilding prse trees is significnt tsk ecuse prse trees tell us the
More informationAgilent Mass Hunter Software
Agilent Mss Hunter Softwre Quick Strt Guide Use this guide to get strted with the Mss Hunter softwre. Wht is Mss Hunter Softwre? Mss Hunter is n integrl prt of Agilent TOF softwre (version A.02.00). Mss
More informationMcAfee Network Security Platform
10/100/1000 Copper Active Fil-Open Bypss Kit Guide Revision E McAfee Network Security Pltform This document descries the contents nd how to instll the McAfee 10/100/1000 Copper Active Fil-Open Bypss Kit
More informationFrom Dependencies to Evaluation Strategies
From Dependencies to Evlution Strtegies Possile strtegies: 1 let the user define the evlution order 2 utomtic strtegy sed on the dependencies: use locl dependencies to determine which ttriutes to compute
More informationCMPSC 470: Compiler Construction
CMPSC 47: Compiler Construction Plese complete the following: Midterm (Type A) Nme Instruction: Mke sure you hve ll pges including this cover nd lnk pge t the end. Answer ech question in the spce provided.
More informationTO REGULAR EXPRESSIONS
Suject :- Computer Science Course Nme :- Theory Of Computtion DA TO REGULAR EXPRESSIONS Report Sumitted y:- Ajy Singh Meen 07000505 jysmeen@cse.iit.c.in BASIC DEINITIONS DA:- A finite stte mchine where
More informationStack. A list whose end points are pointed by top and bottom
4. Stck Stck A list whose end points re pointed by top nd bottom Insertion nd deletion tke plce t the top (cf: Wht is the difference between Stck nd Arry?) Bottom is constnt, but top grows nd shrinks!
More informationLanguages. L((a (b)(c))*) = { ε,a,bc,aa,abc,bca,... } εw = wε = w. εabba = abbaε = abba. (a (b)(c)) *
Pln for Tody nd Beginning Next week Interpreter nd Compiler Structure, or Softwre Architecture Overview of Progrmming Assignments The MeggyJv compiler we will e uilding. Regulr Expressions Finite Stte
More informationEXPONENTIAL & POWER GRAPHS
Eponentil & Power Grphs EXPONENTIAL & POWER GRAPHS www.mthletics.com.u Eponentil EXPONENTIAL & Power & Grphs POWER GRAPHS These re grphs which result from equtions tht re not liner or qudrtic. The eponentil
More information1.1. Interval Notation and Set Notation Essential Question When is it convenient to use set-builder notation to represent a set of numbers?
1.1 TEXAS ESSENTIAL KNOWLEDGE AND SKILLS Prepring for 2A.6.K, 2A.7.I Intervl Nottion nd Set Nottion Essentil Question When is it convenient to use set-uilder nottion to represent set of numers? A collection
More informationCS 241 Week 4 Tutorial Solutions
CS 4 Week 4 Tutoril Solutions Writing n Assemler, Prt & Regulr Lnguges Prt Winter 8 Assemling instrutions utomtilly. slt $d, $s, $t. Solution: $d, $s, nd $t ll fit in -it signed integers sine they re 5-it
More informationIntroduction to Algebra
INTRODUCTORY ALGEBRA Mini-Leture 1.1 Introdution to Alger Evlute lgeri expressions y sustitution. Trnslte phrses to lgeri expressions. 1. Evlute the expressions when =, =, nd = 6. ) d) 5 10. Trnslte eh
More informationUNIT 11. Query Optimization
UNIT Query Optimiztion Contents Introduction to Query Optimiztion 2 The Optimiztion Process: An Overview 3 Optimiztion in System R 4 Optimiztion in INGRES 5 Implementing the Join Opertors Wei-Png Yng,
More informationCSCE 531, Spring 2017, Midterm Exam Answer Key
CCE 531, pring 2017, Midterm Exm Answer Key 1. (15 points) Using the method descried in the ook or in clss, convert the following regulr expression into n equivlent (nondeterministic) finite utomton: (
More informationQuiz2 45mins. Personal Number: Problem 1. (20pts) Here is an Table of Perl Regular Ex
Long Quiz2 45mins Nme: Personl Numer: Prolem. (20pts) Here is n Tle of Perl Regulr Ex Chrcter Description. single chrcter \s whitespce chrcter (spce, t, newline) \S non-whitespce chrcter \d digit (0-9)
More informationLexical analysis, scanners. Construction of a scanner
Lexicl nlysis scnners (NB. Pges 4-5 re for those who need to refresh their knowledge of DFAs nd NFAs. These re not presented during the lectures) Construction of scnner Tools: stte utomt nd trnsition digrms.
More information6.3 Volumes. Just as area is always positive, so is volume and our attitudes towards finding it.
6.3 Volumes Just s re is lwys positive, so is volume nd our ttitudes towrds finding it. Let s review how to find the volume of regulr geometric prism, tht is, 3-dimensionl oject with two regulr fces seprted
More informationcisc1110 fall 2010 lecture VI.2 call by value function parameters another call by value example:
cisc1110 fll 2010 lecture VI.2 cll y vlue function prmeters more on functions more on cll y vlue nd cll y reference pssing strings to functions returning strings from functions vrile scope glol vriles
More informationLexical Analysis: Constructing a Scanner from Regular Expressions
Lexicl Anlysis: Constructing Scnner from Regulr Expressions Gol Show how to construct FA to recognize ny RE This Lecture Convert RE to n nondeterministic finite utomton (NFA) Use Thompson s construction
More information2-3 search trees red-black BSTs B-trees
2-3 serch trees red-lck BTs B-trees 3 2-3 tree llow 1 or 2 keys per node. 2-node: one key, two children. 3-node: two keys, three children. ymmetric order. Inorder trversl yields keys in scending order.
More informationData sharing in OpenMP
Dt shring in OpenMP Polo Burgio polo.burgio@unimore.it Outline Expressing prllelism Understnding prllel threds Memory Dt mngement Dt cluses Synchroniztion Brriers, locks, criticl sections Work prtitioning
More informationDefinition of Regular Expression
Definition of Regulr Expression After the definition of the string nd lnguges, we re redy to descrie regulr expressions, the nottion we shll use to define the clss of lnguges known s regulr sets. Recll
More informationQEL 33A/35A, 98/99 Series
*24908394* 24908394 Bseplte Conversion Kit QEL 33A/35A, 98/99 Series Instlltion Instructions 1. This kit converts ll 33/35A nd 98/99 series EL devices nd fire devices uilt prior to Oct. 2014 to quiet electric
More informationCS481: Bioinformatics Algorithms
CS481: Bioinformtics Algorithms Cn Alkn EA509 clkn@cs.ilkent.edu.tr http://www.cs.ilkent.edu.tr/~clkn/teching/cs481/ EXACT STRING MATCHING Fingerprint ide Assume: We cn compute fingerprint f(p) of P in
More informationCompilers Spring 2013 PRACTICE Midterm Exam
Compilers Spring 2013 PRACTICE Midterm Exm This is full length prctice midterm exm. If you wnt to tke it t exm pce, give yourself 7 minutes to tke the entire test. Just like the rel exm, ech question hs
More informationTries. Yufei Tao KAIST. April 9, Y. Tao, April 9, 2013 Tries
Tries Yufei To KAIST April 9, 2013 Y. To, April 9, 2013 Tries In this lecture, we will discuss the following exct mtching prolem on strings. Prolem Let S e set of strings, ech of which hs unique integer
More informationAn Efficient Divide and Conquer Algorithm for Exact Hazard Free Logic Minimization
An Efficient Divide nd Conquer Algorithm for Exct Hzrd Free Logic Minimiztion J.W.J.M. Rutten, M.R.C.M. Berkelr, C.A.J. vn Eijk, M.A.J. Kolsteren Eindhoven University of Technology Informtion nd Communiction
More informationSymbol Table management
TDDD Compilers nd interpreters TDDB44 Compiler Construction Symol Tles Symol Tles in the Compiler Symol Tle mngement source progrm Leicl nlysis Syntctic nlysis Semntic nlysis nd Intermedite code gen Code
More information5 Regular 4-Sided Composition
Xilinx-Lv User Guide 5 Regulr 4-Sided Composition This tutoril shows how regulr circuits with 4-sided elements cn be described in Lv. The type of regulr circuits tht re discussed in this tutoril re those
More informationCS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig
CS311H: Discrete Mthemtics Grph Theory IV Instructor: Işıl Dillig Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 1/25 A Non-plnr Grph Regions of Plnr Grph The plnr representtion of
More informationDescribing Combinational circuits in BSV
Decriing Comintionl circuit in BSV Arvind Computer Science & Artificil Intelligence L. Mchuett Intitute of Technology Ferury 13, 2018 http://cg.cil.mit.edu/6.s084 L03-1 Three imple comintionl circuit NOT
More informationImplementing Automata. CSc 453. Compilers and Systems Software. 4 : Lexical Analysis II. Department of Computer Science University of Arizona
Implementing utomt Sc 5 ompilers nd Systems Softwre : Lexicl nlysis II Deprtment of omputer Science University of rizon collerg@gmil.com opyright c 009 hristin ollerg NFs nd DFs cn e hrd-coded using this
More information10/9/2012. Operator is an operation performed over data at runtime. Arithmetic, Logical, Comparison, Assignment, Etc. Operators have precedence
/9/22 P f Performing i Si Simple l Clcultions C l l ti with ith C#. Opertors in C# nd Opertor Precedence 2. Arithmetic Opertors 3. Logicl Opertors 4. Bitwise Opertors 5. Comprison Opertors 6. Assignment
More informationSERIES. Patterns and Algebra OUT. Name
D Techer Student Book IN OUT 8 Nme Series D Contents Topic Section Ptterns Answers nd (pp. functions ) identifying ptterns nd nd functions_ creting ptterns_ skip equtions counting nd equivlence completing
More informationDr. D.M. Akbar Hussain
Dr. D.M. Akr Hussin Lexicl Anlysis. Bsic Ide: Red the source code nd generte tokens, it is similr wht humns will do to red in; just tking on the input nd reking it down in pieces. Ech token is sequence
More information1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES)
Numbers nd Opertions, Algebr, nd Functions 45. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES) In sequence of terms involving eponentil growth, which the testing service lso clls geometric
More informationMA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork
MA1008 Clculus nd Liner Algebr for Engineers Course Notes for Section B Stephen Wills Deprtment of Mthemtics University College Cork s.wills@ucc.ie http://euclid.ucc.ie/pges/stff/wills/teching/m1008/ma1008.html
More informationRegister Transfer Level (RTL) Design
CSE4: Components nd Design Techniques for Digitl Systems Register Trnsfer Level (RTL) Design Tjn Simunic Rosing Where we re now Wht we hve covered lst time: Register Trnsfer Level (RTL) design Wht we re
More informationSection 3.1: Sequences and Series
Section.: Sequences d Series Sequences Let s strt out with the definition of sequence: sequence: ordered list of numbers, often with definite pttern Recll tht in set, order doesn t mtter so this is one
More informationTilt-Sensing with Kionix MEMS Accelerometers
Tilt-Sensing with Kionix MEMS Accelerometers Introduction Tilt/Inclintion sensing is common ppliction for low-g ccelerometers. This ppliction note describes how to use Kionix MEMS low-g ccelerometers to
More informationInformation Retrieval and Organisation
Informtion Retrievl nd Orgnistion Suffix Trees dpted from http://www.mth.tu.c.il/~himk/seminr02/suffixtrees.ppt Dell Zhng Birkeck, University of London Trie A tree representing set of strings { } eef d
More informationView, evaluate, and publish assignments using the Assignment dropbox.
Blckord Lerning System CE 6 Mnging Assignments Competencies After reding this document, you will e le to: Crete ssignments using the Assignment tool. View, evlute, nd pulish ssignments using the Assignment
More informationLab 1 - Counter. Create a project. Add files to the project. Compile design files. Run simulation. Debug results
1 L 1 - Counter A project is collection mechnism for n HDL design under specifiction or test. Projects in ModelSim ese interction nd re useful for orgnizing files nd specifying simultion settings. The
More informationThe Math Learning Center PO Box 12929, Salem, Oregon Math Learning Center
Resource Overview Quntile Mesure: Skill or Concept: 80Q Multiply two frctions or frction nd whole numer. (QT N ) Excerpted from: The Mth Lerning Center PO Box 99, Slem, Oregon 9709 099 www.mthlerningcenter.org
More informationMcAfee Network Security Platform
NTBA Applince T-200 nd T-500 Quick Strt Guide Revision B McAfee Network Security Pltform 1 Instll the mounting rils Position the mounting rils correctly nd instll them t sme levels. At the front of the
More informationCS412/413. Introduction to Compilers Tim Teitelbaum. Lecture 4: Lexical Analyzers 28 Jan 08
CS412/413 Introduction to Compilers Tim Teitelum Lecture 4: Lexicl Anlyzers 28 Jn 08 Outline DFA stte minimiztion Lexicl nlyzers Automting lexicl nlysis Jlex lexicl nlyzer genertor CS 412/413 Spring 2008
More information6/23/2011. Review: IEEE-754. CSE 2021: Computer Organization. Exercises. Examples. Shakil M. Khan (adapted from Profs. Roumani & Asif)
6/23/2 CSE 22: Computer Orgniztion Lecture-8() Floting point computing (IEEE 754) Review: IEEE-754 single: 8 its doule: its single: 23 its doule: 52 its S Exponent Frction S x ( ) ( Frction) 2 (Exponent
More informationGeometric transformations
Geometric trnsformtions Computer Grphics Some slides re bsed on Shy Shlom slides from TAU mn n n m m T A,,,,,, 2 1 2 22 12 1 21 11 Rows become columns nd columns become rows nm n n m m A,,,,,, 1 1 2 22
More informationCS201 Discussion 10 DRAWTREE + TRIES
CS201 Discussion 10 DRAWTREE + TRIES DrwTree First instinct: recursion As very generic structure, we could tckle this problem s follows: drw(): Find the root drw(root) drw(root): Write the line for the
More informationEECS 281: Homework #4 Due: Thursday, October 7, 2004
EECS 28: Homework #4 Due: Thursdy, October 7, 24 Nme: Emil:. Convert the 24-bit number x44243 to mime bse64: QUJD First, set is to brek 8-bit blocks into 6-bit blocks, nd then convert: x44243 b b 6 2 9
More informationNOTES. Figure 1 illustrates typical hardware component connections required when using the JCM ICB Asset Ticket Generator software application.
ICB Asset Ticket Genertor Opertor s Guide Septemer, 2016 Septemer, 2016 NOTES Opertor s Guide ICB Asset Ticket Genertor Softwre Instlltion nd Opertion This document contins informtion for downloding, instlling,
More informationNetwork Interconnection: Bridging CS 571 Fall Kenneth L. Calvert All rights reserved
Network Interconnection: Bridging CS 57 Fll 6 6 Kenneth L. Clvert All rights reserved The Prolem We know how to uild (rodcst) LANs Wnt to connect severl LANs together to overcome scling limits Recll: speed
More informationSimplifying Algebra. Simplifying Algebra. Curriculum Ready.
Simplifying Alger Curriculum Redy www.mthletics.com This ooklet is ll out turning complex prolems into something simple. You will e le to do something like this! ( 9- # + 4 ' ) ' ( 9- + 7-) ' ' Give this
More informationProduct of polynomials. Introduction to Programming (in C++) Numerical algorithms. Product of polynomials. Product of polynomials
Product of polynomils Introduction to Progrmming (in C++) Numericl lgorithms Jordi Cortdell, Ricrd Gvldà, Fernndo Orejs Dept. of Computer Science, UPC Given two polynomils on one vrile nd rel coefficients,
More informationCS143 Handout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexical Analysis
CS143 Hndout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexicl Anlysis In this first written ssignment, you'll get the chnce to ply round with the vrious constructions tht come up when doing lexicl
More informationTopic 2: Lexing and Flexing
Topic 2: Lexing nd Flexing COS 320 Compiling Techniques Princeton University Spring 2016 Lennrt Beringer 1 2 The Compiler Lexicl Anlysis Gol: rek strem of ASCII chrcters (source/input) into sequence of
More information