3 Pages

LECT16-6

Course: ECE 480, Fall 2008
School: Alabama
Rating:
 
 
 
 
 

Word Count: 1006

Document Preview

to Introduction NIOS II Custom Instructions Custom instructions can accelerate time-critical software algorithms Digital Systems Design Custom Instructions in NIOS II Systems Reduce a complex sequence of standard instructions to a single instruction implemented in hardware Optimize software loops for computation intensive applications Custom logic configured in the NIOS II processor as a part of the ALU...

Register Now

Unformatted Document Excerpt

Coursehero >> Alabama >> Alabama >> ECE 480

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
to Introduction NIOS II Custom Instructions Custom instructions can accelerate time-critical software algorithms Digital Systems Design Custom Instructions in NIOS II Systems Reduce a complex sequence of standard instructions to a single instruction implemented in hardware Optimize software loops for computation intensive applications Custom logic configured in the NIOS II processor as a part of the ALU Electrical & Computer Engineering Dr. D. J. Jackson Lecture 16-1 Electrical & Computer Engineering Dr. D. J. Jackson Lecture 16-2 Custom Instruction Overview NIOS II custom instructions are custom logic blocks adjacent to the ALU in the processors data path Generally described via an HDL Custom Instruction Operation The basic operation of NIOS II custom instruction logic is to receive input on the dataa and/or datab port, and drive out the result on its result port The custom instruction logic provides a result based on the inputs provided by the NIOS II processor Support for multiple types of instructions Combinational Multi-cycle Extended Register file Dr. D. J. Jackson Lecture 16-4 Provides an ability to tailor the NIOS II processor core to meet the needs of a particular application Can accelerate time critical software algorithms by converting them to custom hardware logic blocks Provide a means to experiment with hardware/software tradeoffs at any point in the design process Electrical & Computer Engineering Dr. D. J. Jackson Lecture 16-3 Electrical & Computer Engineering Custom Instruction Block Diagram Implementing Custom Instruction Software For each custom instruction, the NIOS II integrated development environment (IDE) generates a macro in the system header file, system.h. You can use the macro directly in your C or C++ application code, and you do not need to program assembly to access custom instructions Software can also invoke custom instructions in NIOS II processor assembly language Electrical & Computer Engineering Dr. D. J. Jackson Lecture 16-5 Electrical & Computer Engineering Dr. D. J. Jackson Lecture 16-6 1 Custom Instruction Types Custom Instruction Types (continued) Electrical & Computer Engineering Dr. D. J. Jackson Lecture 16-7 Electrical & Computer Engineering Dr. D. J. Jackson Lecture 16-8 Combinational Custom Instruction Combinational custom instruction consists of a logic block that is able to complete in a single clock cycle The combinational custom instruction uses the dataa and datab ports as inputs and drives the results on the result port Because the logic is able to complete in a single clock cycle, control ports are not needed The only required port for combinational custom instructions is the result port The dataa and datab ports are optional Included only if the custom instruction functionality requires input operands If the custom instruction requires only a single input port, dataa is used Electrical & Computer Engineering Dr. D. J. Jackson Lecture 16-9 Combinational Custom Instruction Port Timing The NIOS II processor presents the input data on the dataa and datab ports on the rising edge of the processor clock The processor reads the result port on the rising edge of the following processor clock Electrical & Computer Engineering Dr. D. J. Jackson Lecture 16-10 Multi-Cycle Custom Instruction or Multi-cycle sequential, custom instructions consist of a logic block that requires two or more clock cycles to complete an operation Additional control ports are required for multi-cycle custom instructions Multi-cycle custom instructions can complete in either a fixed or variable number of clock cycles Fixed length: specify the required number of clock cycles during system generation Variable length: The start and done ports are used in a handshaking scheme Electrical & Computer Engineering Dr. D. J. Jackson Lecture 16-11 Multi-Cycle Custom Instruction Ports The clk, clk_en, and reset ports are required for multi-cycle custom instructions The start, done, dataa, datab, and result ports are optional Implement only if the custom instruction functionality specifically needs them Electrical & Computer Engineering Dr. D. J. Jackson Lecture 16-12 2 Multi-Cycle Port Operation The processor asserts the active high start port on the first clock cycle of the custom instruction execution At this time, the dataa and datab ports have valid values and remain valid throughout the duration of the custom instruction execution The start signal is asserted for a single clock cycle Fixed or variable length custom instruction port operation: Fixed length: Once the custom instruction is started, the processor waits a specified number of clock cycles, and then reads result For an n-cycle operation, the custom logic block must present valid data on the nth rising edge after the custom instruction is executed Multi-Cycle Custom Instruction Timing Variable length: The processor waits until the active high done port is asserted The processor reads the result port on the clock edge that done is asserted The custom logic block must present data on the result port on the same clock cycle that the done port is asserted Electrical & Computer Engineering Dr. D. J. Jackson Lecture 16-13 Electrical & Computer Engineering Dr. D. J. Jackson Lecture 16-14 Other Custom Instruction Types ...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Alabama - ECE - 380
Storage elements Previously, we have considered combinational circuits where the output values depend only on the values of signals applied to the inputs Another class of logic circuits have the property that the outputs depend not only on the curr
Alabama - ECE - 480
Introduction to VHDL Designer writes a logic circuit description in VHDL source code VHDL compiler translates this code into a logic circuit Representation of digital signals in VHDL Logic signals in VHDL are represented as a data object VHDL in
Alabama - ECE - 493
Programmable Logic ControllersData Handling and Program Control Flow InstructionsElectrical & Computer EngineeringDr. D. J. Jackson Lecture 8-1Move (MOV) This output instruction moves the source value to the destination location. As long as t
Alabama - ECE - 482
Image segmentation Segmentation divides an image into its constituent parts or objects Level of subdivision depends on the problem being solved Segmentation stops when objects of interest in an application have been isolated Example: For an air-
Alabama - ECE - 482
Computer Vision & Digital Image ProcessingImage SegmentationElectrical & Computer EngineeringDr. D. J. Jackson Lecture 16-1Image segmentation Segmentation divides an image into its constituent parts or objects Level of subdivision depends on
Stanford - EE - 359
EE359 Lecture 9 OutlineCapacity of Freq. Selective Fading Channels Linear Modulation Review Linear Modulation Performance in AWGN Modulation Performance in FadingOutage Probability Average Ps (Pb)Review of Last LectureCapacity of Flat-Fading Ch
Stanford - EE - 359
Midterm Performance Statistics 5EE359 Lecture 16 OutlineAnnouncementsNumber of Students4.5 Mean = 83.45 Median = 87.5 Standard Deviation = 12.0243.5Graded MTs available Regrades requests must be in writing; submit with exam Bonus lecture
Stanford - EE - 359
EE359 Lecture 13 OutlineAnnoucementsMidterm announcements HW due today at 5pm (no late HWs)Adaptive MQAM: optimal power and rate Finite Constellation Sets Update rate Estimation error Estimation delayMidterm AnnouncementsMidterm Friday, 6-8pm
Stanford - EE - 359
EE359 Lecture 15 OutlineAnnouncements:Midterm grading almost done Dont worry! Possibility of Bonus Lecture: you pick the topicsqReview of Last LectureFinite Constellation SetsUse heuristic to assign rates to regions Channel inversion power co
Stanford - CS - 348
CS348a: Computer Graphics Geometric Modeling Stanford University Lecture #1: Topics: Lecturer: Tuesday, 4 January 2005 Course Outline Leonidas GuibasHandout # 1 Tuesday, 4 January 2005Course OutlineJanuary Tue Thu Tue Thu Tue Thu Tue Thu 4 6 11
Stanford - CS - 348
CS348a: Computer Graphics Geometric Modeling Stanford University Lecture #1: Topics: Lecturer: Tuesday, 6 January 2004 Course Outline Leonidas GuibasHandout # 1 Tuesday, 6 January 2004Course OutlineJanuary Tue Thu Tue Thu Tue Thu Tue Thu 6 8 13
Alabama - ENG - 457
No class Thurs. Oct. 2 E-day Exam 1 Thurs. Oct. 9 E-mail HW3 Oct. 2 to vrbsky@cs.ua.edu Available Oct 2 only until 2 pm1CS 457 - Embedded SQL2To Embed SQL in C/C+Why do we want to embed SQL in C/C+? 1) Read in data from file, insert into
Alabama - ME - 465
Test ImageMachine / Robot Vision #2Wednesday, 10/10/01Use Laplacian & Thresholding to find edges Use edges to find Perimeter Length (used in identification) Use Thresholding and Segmentation to locate Centroids and OrientationMatlab - Image Op
Alabama - ME - 360
ME 360 Fall 2008 SemesterTest #19/24/08Closed book, closed notes portion of test. When you turn in this part of the test you will get the second part which allows a page of handwritten formulas. There are 30 points on the 1st part and 70 on th
Alabama - ME - 465
Matlab Image Vision2Machine / Robot Vision #3Friday, 10/12/0164x64 matrix of integers from 0 to 63 Download this file from ME 465 website: Vision2.mat Use Thresholding and Segmentation to locate Centroids and OrientationOriginal Image - Histo
Alabama - ECE - 380
Positional representation First consider integers Begin with positive only descriptions and expand to include negative numbers Numbers that are positive only are unsigned and numbers that can also assume negative values are signedECE380 Digital
Alabama - ECE - 380
Karnaugh map The key to finding a minimum cost SOP or POS form is applying the combining property (14a for SOP or 14b for POS) The Karnaugh map (K-map) provides a systematic (and graphical) way of performing this operation Minterms can be combined
Alabama - ECE - 380
ECE380 Digital LogicFlip-Flops, Registers and Counters: LatchesElectrical & Computer EngineeringDr. D. J. Jackson Lecture 24-1Storage elements Previously, we have considered combinational circuits where the output values depend only on the va
Alabama - ECE - 380
Master-slave D flip-flop Consists of 2 gated D latches The first, master, changes its state while clock=1 The second, slave, changes its state while clock=0Master Q Slave m D Q QsECE380 Digital LogicFlip-Flops, Registers and Counters: Flip-Flo
Alabama - ECE - 380
ECE 380 - DESIGN ACTIVITY #5Adder/Subtractor Designs1. INTRODUCTION In this lab, you will use the MAX+PLUSII software package to design and simulate various adder designs. The requirements for this lab consist of completing MAX+PLUSII designs and
Alabama - ECE - 482
Computer Vision & Digital Image ProcessingImage Restoration and Reconstruction IIIElectrical & Computer EngineeringDr. D. J. Jackson Lecture 13-1Order-Statistic filters Median filter Max and min filters Midpoint filter Alpha-trimmed mean f
Alabama - ECE - 480
Embedded Memory The CYCLONE II embedded memory consists of columns of M4K memory blocks Each M4K block can implement various types of memory with or without parity, including true dual-port, simple dualport, and single-port RAM, ROM, and FIFO buffe
Alabama - ECE - 480
ECE480/580 Digital Systems Design Lab 3: Memory-Based Designs with LCD Display Output1. INTRODUCTION In this lab, you will use the QUARTUS II software package to design and simulate finite state machine (FSM) and memory-based designs that output val
Alabama - ECE - 482
Image restoration Restoration is an objective process that attempts to recover an image that has been degradedComputer Vision & Digital Image ProcessingImage Restoration and Reconstruction I A priori knowledge of the degradation phenomenon Res
Alabama - ECE - 482
Global Processing via Graph-Theoretic Techniques The previous method for edge-linking discussed is based on obtaining a set of edge points through a gradient operation. As the gradient is a derivative, the operation is seldom suitable as a preproce
Stanford - DITC - 1034
1 2 3 4 5 6 7 8 9 10 11 12 13COOLEY GODWARD KRONISH LLP WILLIAM S. FREEMAN (82002) (wfreemanCcooley.com) JEFFREY M. KABAN (235743) (jkaban@a cooley.com) Five Palo Alto Square 3000 El Camino Real Palo Alto, CA 94306-2155 Telephone: (650) 843-5000 Fa
Stanford - MCK - 1004
13 4 5 6 7 8 9 10 11 12 13 14 15 16BERNSTEIN N LITOWITZ BERGER & GROSSMANN LLP ALAN SCHULMAN (Bar No . 128661.) ROBERT S. GANS (Bar No . 214420) DAVID R . STICKNEY (Bar No . 188574) TIMOTHY A. DeLANGE (Bar No . 190768) 12544 High Bluff Drive, Sui
Stanford - XXFFAPK - 1033
Case 3:05-cv-00969-MMCDocument 142Filed 11/15/2005Page 1 of 31 2 3 4 5 6 7 8 9 10 11DARRYL P. RAINS (CA SBN 104802) MORRISON & FOERSTER LLP 755 Page Mill Road Palo Alto, California 94304-1018 Telephone: (650) 813-5600 Facsimile: (650) 494-0
Stanford - LSC - 1030
Case 5:03-cv-05605-RMWDocument 92Filed 09/18/2007Page 1 of 31 2 3 4 5 6 7 8 9 10 11 12 13 14 15BERNSTEIN LITOWITZ BERGER & GROSSMANN LLP BLAIR A. NICHOLAS (Bar No. 178428) 12481 High Bluff Drive, Suite 300 San Diego , CA 92130 Tel: (858 ) 7
Stanford - ADAC - 1010
Stanford - HRBFA - 1033
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27vLAW OFFICESJOSEPH W. COTCHETT (#36324) NANCY L. FINEMAN (#124870) MARK C. MOLUMPHY (#168009) PETER E. BORKON (#212596) COTCHETT, PITRE, SIMON & McCARTHY 840 Malcolm Road, Sui