HIGH PERFORMANCE MEMORY DESIGN TECHNIQUE FOR THE MC68000

Similar documents
Chapter 18. DRAM Circuitry Discussion. Block Diagram Description. DRAM Circuitry 113

Chapter 8. The MAP Circuit Discussion. The MAP Circuit 53

Chapter 2. Digital Circuits

Digital Blocks Semiconductor IP

Nan Ya NT5DS32M8AT-7K 256M DDR SDRAM

LATCHES & FLIP-FLOP. Chapter 7

IT T35 Digital system desigm y - ii /s - iii

FLIP-FLOPS AND RELATED DEVICES

COMP2611: Computer Organization. Introduction to Digital Logic

Sequential Logic and Clocked Circuits

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

BUSES IN COMPUTER ARCHITECTURE

V6118 EM MICROELECTRONIC - MARIN SA. 2, 4 and 8 Mutiplex LCD Driver

Contents Circuits... 1

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

Handout 16. by Dr Sheikh Sharif Iqbal. Memory Interface Circuits 80x86 processors

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

NORTHWESTERN UNIVERSITY TECHNOLOGICAL INSTITUTE

C6845 CRT Controller Megafunction

Chapter 6 Digital Circuit 6-5 Department of Mechanical Engineering

CHAPTER1: Digital Logic Circuits

Chapter 7 Memory and Programmable Logic

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

6. Sequential Logic Flip-Flops

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Logic Devices for Interfacing, The 8085 MPU Lecture 4

Vignana Bharathi Institute of Technology UNIT 4 DLD

Infineon HYB18T512160AF-3.7 DDR2 SDRAM Circuit Analysis

IMS B007 A transputer based graphics board

DIGITAL CIRCUIT LOGIC UNIT 9: MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES

Logic Gates, Timers, Flip-Flops & Counters. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

Logic Design II (17.342) Spring Lecture Outline

FIFO Memories: Solution to Reduce FIFO Metastability

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

NS8050U MICROWIRE PLUSTM Interface

ELCT201: DIGITAL LOGIC DESIGN

HD66840/HD LVIC/LVIC-II (LCD Video Interface Controller) Description. Features

UNIVERSITI TEKNOLOGI MALAYSIA

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

Sequential Logic Basics

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

CHAPTER 4: Logic Circuits

TABLE 3. MIB COUNTER INPUT Register (Write Only) TABLE 4. MIB STATUS Register (Read Only)

Chapter 5 Flip-Flops and Related Devices

Rensselaer Polytechnic Institute Computer Hardware Design ECSE Report. Lab Three Xilinx Richards Controller and Logic Analyzer Laboratory

VU Mobile Powered by S NO Group

EKT 121/4 ELEKTRONIK DIGIT 1

CHAPTER 4: Logic Circuits

Chapter 9 MSI Logic Circuits

Final Project [Tic-Tac-Toe]

EET2411 DIGITAL ELECTRONICS

Simultaneous electronic recording of video and digital information on the video channel of a VTR or VCR

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

Experiment 8 Introduction to Latches and Flip-Flops and registers

Digital Fundamentals. Lab 5 Latches & Flip-Flops CETT Name: Date:

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

Analogue Versus Digital [5 M]

Computer Systems Architecture

MC54/74F568 MC54/74F569 4-BIT BIDIRECTIONAL COUNTERS (WITH 3-STATE OUTPUTS) 4-BIT BIDIRECTIONAL COUNTERS (WITH 3-STATE OUTPUTS)

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

82C55A CHMOS PROGRAMMABLE PERIPHERAL INTERFACE

Catch or Die! Julia A. and Andrew C. ECE 150 Cooper Union Spring 2010

Although the examples given in this application note are based on the ZX-24, the principles can be equally well applied to the other ZX processors.

Laboratory 1 - Introduction to Digital Electronics and Lab Equipment (Logic Analyzers, Digital Oscilloscope, and FPGA-based Labkit)

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

For Teacher's Use Only Q Total No. Marks. Q No Q No Q No

SignalTap Plus System Analyzer

EE 367 Lab Part 1: Sequential Logic

SEQUENTIAL CIRCUITS THE RELAY CIRCUIT

EECS 270 Group Homework 4 Due Friday. June half credit if turned in by June

ELCT201: DIGITAL LOGIC DESIGN

EXPERIMENT #6 DIGITAL BASICS

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

(Refer Slide Time: 1:45)

Computer Organization & Architecture Lecture #5

55:131 Introduction to VLSI Design Project #1 -- Fall 2009 Counter built from NAND gates, timing Due Date: Friday October 9, 2009.

INTRODUCTION (EE2499_Introduction.doc revised 1/1/18)

MC9211 Computer Organization

Chapter 9 Introduction to Sequential Logic

0 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 1 1 Stop bits. 11-bit Serial Data format

Sequential logic circuits

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

Final Exam review: chapter 4 and 5. Supplement 3 and 4

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

Synchronous Sequential Logic

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

Other Flip-Flops. Lecture 27 1

Scans and encodes up to a 64-key keyboard. DB 1 DB 2 DB 3 DB 4 DB 5 DB 6 DB 7 V SS. display information.

AIM: To study and verify the truth table of logic gates

FSM Cookbook. 1. Introduction. 2. What Functional Information Must be Modeled

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

Module for Lab #16: Basic Memory Devices

Factory configured macros for the user logic

CPS311 Lecture: Sequential Circuits

Asynchronous (Ripple) Counters

A MISSILE INSTRUMENTATION ENCODER

12-bit Wallace Tree Multiplier CMPEN 411 Final Report Matthew Poremba 5/1/2009

Combinational vs Sequential

Transcription:

MOTOROLA Semiconductor Products nc. AN-838 Application Note HGH PERFORMANCE MEMORY DESGN TECHNQUE FOR THE MC68000 This application note presents a technique for interfacing a 256K byte semi-transparent refresh memory board with an 8 MHz MC68000 microprocessor. The memory board consists of four banks of MCM6664 dynamic RAM chips and the memory control circuit. Each MCM6664 high-speed memory chip is provided with pin 1 refresh. To maintain RAM integrity, pin number 1 must be pulsed 128 times every 2 milliseconds. Moreover, each memory chip includes its own refresh counter/multiplexer and requires only 8 address (-A7) inputs. Thus, the MCM6664 chip is practically ideal for this task. Semi-transparency, as used herein, means that the memory refresh cycle does not impact the system operational speed except for some special cases. System constraints determine whether these special cases do indeed occur. n effect, the system constraints determine the degree of refresh transparency. For a better understanding of the system constraint description, a brief look at the MCM6664 memory bank signal requirements is presented next. MCM6664 MEMORY BANKS Figure 1 identifies the signal requirements for the 4-bank memory portion of the semi-transparent refresh memory board. Buffering (not shown) is provided for all address, data, and control signals to the MC68000. During a write access (R/W low), the data byte active on the selected DO-D7or D8-D15 inputs is stored at the memory location specified by the address inputs (-A7). During a read access (R/W high), a stored data byte from the address specified by the address lines is read out on the selected QO-Q7 or Q8-Q15 data outputs. Selection of the location to be accessed starts when a row address is active on the address lines and is latched into memory by the odd or even row address strobe (RAS EVEN or RAS ODD). Only the even RAS or the odd RAS, never both, is active at any given time. This has the effect of activating only half of memory for an access at any given time. Then, the column address is made active on the address lines and is latched into memory by the applicable column address strobe (CAS1, CAS2, CAS3, or CAS4). Note that CAS and CAS2 are assigned to the even word (even and odd byte) of memory, and CAS3 and CAS4 are assigned to the odd word (even and odd byte) of memory. This ensures that only half of memory is active during the entire access cycle. With the row and column addresses latched into memory, a data word is written into, or read out of, one of the 128K word locations in the selected memory bank. The refresh odd (REF ODD) signal can be applied to the odd banks while an even bank is being accessed and the opposite can occur with the refresh even (REF EVEN) signal. n this manner, one location can be refreshed while the opposite location is being accessed. The even and odd memory ban~s must be refreshed 128 times every 2 milliseconds, respectively, for a total of 256 refresh pulses every 2 milliseconds. SYSTEM CONSTRANTS n theory, the entire memory refresh should occur transparent to the system during the access of the opposite word, that is, a refresh of an even word during an odd word access and vice versa. n practice, the processor is not always accessing memory nor is the occurrence of an access predictable. Frequent accessing of memory can cause excess power dissipation by generating more refresh cycles than required for a given 2 millisecond period. These and other inherent memory refresh problems are resolved by the memory refresh control circuit. MEMORY CONTROL CRCUT Figure 2 is a schematic diagram of the control circuit portion of the memory board. This circuit decodes processor address and control signals and, in response, generates the required memory access control signals and the data transfer acknowledge (DT ACK) signal. Further, the circuit provides the memory refresh signals at the appropriate intervals to the appropriate half of memory. Reference timing is provided by the 10 MHz crystal-

14 00 01 02 03 04 05 06 Q7 Al 3 A2 R/W R/W A4 DO 01 02 03 04 05 06 07 4 A6 15 RAS EVEN RAS EVEN A7 CAS 2 CAS 2 REF EVEN 14 08 9 010 all 012 013 014 015 Al 3 A2 R/W 2 A4 08 09 010 011 012 013 014 015 A6 4 RAS EVEN 15 A7 CAS 1 1 5 14 08 015 7 Al 6 3 A2 R/W 12 11 2 A4 08 015 10 13 4 A6 15 RASOOO 9 A7 CAS 4

+5 V 10 k +5V 1k Ala 1 51a Ul. U2 A19 XNOR 4 519 A20 10 520 521 522 S23 A23 11 13 11 12 CAS Decode 4 10 MHz Local Clock Oscillator U19. U20 Rowl Column Addr Mux A1 A2 12 -A4 A6 12 A7 2 A 15 U15 _.ltyledut B~f.. ---ii.efen ~~ 11 REF 000 REF EVEN Access Counter LogiC U1. U2 U3. U17 U4, U5. U12, U13, U24 U6 ua, U9, U14 U10 U 14, U22, U25 U15 Ula U19. U20 U21 U23 U26 Type 74LS286 74LS04 74LS32 74LS161 74LS74 74L508 74LS74 74LSl58 74LS393 74LSl58 7404 74LS86 74LSl63

controlled local clock (LCK) oscillator Yl, U17. Two clock outputs, LCK and LCK, allow clocking of the control circuit logic as close as 50 nanoseconds apart. Address inputs include the address strobe (AS), address lines A-A23, and the upper and lower data strobes (UDS, LDS). The addressing scheme allows the memory board to be located anywhere in the MC68000 16 megabyte range as long as it is in a 256K boundary. Address strobe (AS) is sent by the processor to indicate that the address lines are valid. This signal is used by the control circuit to start an access cycle and to keep track of accesses. Address line Al is used to generate the odd (A high) or even (A low) row address strobes (RAS ODD or RAS EVEN). f refresh occurs during an access, Al also determines the polarity of the refresh signal. Signals UDS and LDS are used in conjunction with address line Al to select one of the four column address strobes (CAS 1, CAS2, CAS3, or CAS4). Address lines A2-A9, when active, contain the row address, and lines AlO-Al7, when active, contain the column adress. The row and column address lines are multiplexed at U19, U20 to provide the memory address (AQ-A7). The MUX signal input to U19, U20 from U24 is used to select the A2-A9 (MUX high) inputs or the AQ-Al7 (MUX low) inputs. Address lines A8-A23 are used to decode the memory board address. When active, this address alerts the control circuit that the processor wants to access this particular memory board. Switches S18-S22 are preset to the address assigned to the memory board and are compared with address lines A8-A23 at exclusive NOR gates U, U2. When a match occurs at these gates, the address select (ADSEL) signal goes high and is applied to gate U4 as a low via inverter U3. At this time, address lines A-Al7 are also active. The MUX input to U19, U20 is high, placing the A2-A9 row address on the AQ-A7 output lines. Line Al is active at the input of RAS gates U4. However, U4 is disabled by the high START input from AND gate U 10because flip-flop U9 is in the preset state. The only thing needed now to start an access cycle is the AS signal. ACCESS CYCLE OPERATON Signal AS is issued by the processor after the address bus has become valid, allowing some buffering and address decoding time to expire. When AS goes low, gate U4 is enabled and ADSEL is applied to the preset inputs of U9 as the high qualified address stt.obe (QAS). This signal releases U9 and the next rising edge of either LCK or LCK toggles half of U9 to a low output state. This action generates the UO low START output to enable the RAS gates and allows the row address to be latched into memory. n effect, the odd or even RAS is generated on the first clock edge following AS as shown on the timing diagram in Figure 3. Fifty nanoseconds later, the next clock edge toggles the other half of U9 and switches the U24 MUX signal from high to low to place the column address at the output of U19, U20. The low MUX signal is also applied to the D inputs of U8, so the next clock edge, after MUX goes low, toggles half of U8. This action enables the CAS gates, and with the UDS or LDS signal active, CAS is generated to latch the column address into memory. The next edge of the clock toggles the other half of AS 1 _ UDS 1... _ CDS 1 _ MUX } RAS CAS DTACK Address Bus Data (oo-d7 Row Add?( Column Addr X --------~~-------- Data (o8-d15) --------~~-------- ""'""--_---' _---' LJ R_ow_A_d_d_r ~olumn Addr < Valid > < Valid )

U8 and generates DTACK. Note on Figure 3 that RAS, MUX, CAS, and DTACK occur in a 50 nanosecond sequence. This timing ensures that each event has its allotted hold time and occurs in the proper sequence. For example, this timing meets the DTACK-to-DAT A specification number 47 requirements. This specification requires DTACK to precede data by no more than 90 nanoseconds. Signal CAS is used for access only and is negated by RAS. Refresh can occur during frequent or infrequent accessing as described in the following paragraphs. REFRESH DURNG AN ACCESS During frequent accessing (more than 6 accesses within 6.8 microseconds), a refresh cycle is initiated by counter U6 after detecting 6 successive AS signals. The input logic to U6 detects AS on the rising edge of LCK at U22B to synchronize the refresh cycle with the access cycle. After detecting the sixth AS, U6 generates the address strobe refresh (ASREF) signal. Signal ASREF is routed via U3 to the D input of U22A. The next rising edge of LCK toggles U22A to generate the low refresh enable (REFEN) signal. At this time, the refresh (REF) signal out of inversion multiplexer U15, is present at the odd or even refresh output gates. The REF signal, during an access cycle, is the inverted address line Al since the Al input to U5 is selected by the output of flip-flop U25A. n this manner, the REFEN signal strobes out the REF ODD or REF EVEN signals at the same time that the RAS signal is active on the opposite word of the memory. The REFEN signal performs other functions. t clears the AS counter logic and the timeout logic (described later) and clocks refresh status register U 14B. When the AS counter is cleared by REFEN, the next LCK sends REFEN high, more than meeting the low 60 nanosecond refresh signal requirement. The input to U4B is the REF output from U15. Therefore, when clocked by REFEN, U4B stores the polarity of the refresh signal. The U4B next refresh (NREF) output is selected as the U5 input during a timeout refresh. A last refresh (LREF) output from U4B is exclusive ORed with address line Al during an access cycle to ensure that the next refresh is of the correct polarity. f not of the correct polarity, the ASREF input to U22A is inhibited at gate U3 until a match is obtained between address line Al and LREF. A timing diagram depicting the AS, A, ASREF, LREF, and REFEN signal relationship is shown in Figure 4. REFRESH DURNG TMEOUT During infrequent accessing (less than 6 accesses within 6.8 microseconds), watchdog timer U8 counts 68 LCK pulses and generates the TMEOUT signal at U2. This signal clocks U25A and U4A. A low U4A output enables gate U24 and if QAS is low (no access started), U24 presets U25A to a high output. This high selects the NREF input to U5 as the REF signal. U24 also clears U22A to generate the REFEN signal. This action generates the required REF ODD or REF EVEN signal. Note that the output of U25A is tied to timer U26 and to AS gate US. When the U2SA output goes high at timeout refresh, a high is applied to AS gate U5 to inhibit AS from being recognized. The high U25A output also starts timer U26. After 600 nanoseconds, timer U26 clears U25A to enable AS gate U5. This action ensures the memory specification requirement that an access cannot occur for 460 nanoseconds after MCM6664 refresh pin number has been pulled low. f an access has already started when the timeout signal is,-at First LCK After 6th AS ASREFU '-U6 Clearedby REFENLeading Edge ~At REFENTrailing Edge LREF-~ _ REFEN-U ~At 2nd LCK After AS if A1 and LREF Match No Match, U When Match '-/ at 1st LCK After AS U 5

generated, the active high QAS signal disables U24 from clearing U22A. This action prevents U22A from generating a timeout REFEN during an access. The low START signal is also clocked into U25A at timeout if an access has started. This ensures that address line Al is selected at U5 in case a refresh is due for this access cycle. f a refresh does not occur during the access, a timeout refresh occurs as soon as the QAS signal goes low at gate U2. Note that timer U8 is cleared from the Qoutput of U 14A when U 14A is preset by the REFEN signal. A timing diagram for the timeout refresh sequence is shown in Figure 5. CONCLUSONS This memory board provides a semi-transparent type refresh where the degree of transparency depends on system constraints such as bus usage. Unlike other refresh schemes, this design impacts the speed of the system less and less as bus accessing increases. LCK Count at U18 2 3 4 5 64 65 66 67 68 Timeout 6.8 p.s ~ ~ ~ n REFEN \ LJ This information has been carefully checked and is believed to be entirely reliable. However, no responsibility is assumed for inaccuracies. Motorola reserves the right to make changes to any products herein to improve reliability, function or design. Motorola does not assume any liability arising out of the application or use of any product or circuit described herein. No license is conveyed under patent rights in any form. When this document contains information on a new product, specifications herein are subject to change without notice. MOTOROLA SemiconductorProductsnc. Colvilles Road, Kelvin Estate - East Kilbride/Glasgow - SCOTLAND