DOC PREVIEW
MASON ECE 448 - Lab 1 Introduction to Aldec Active HDL

This preview shows page 1-2-3-24-25-26 out of 26 pages.

Save
View full document
Premium Document
Do you want full access? Go Premium and unlock all 26 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Lab 1 Introduction to Aldec Active HDL Implementing Combinational Logic in VHDL ECE 448 FPGA and ASIC Design with VHDL George Mason University Part 1 Introduction to Aldec Active HDL Example Seven Segment Encoder S6 S5 S4 S3 S2 S1 S0 DP Experiment 1 Problem 1 ALU of Motorola 68HC11 Register structure of MC6811 7 A 0 7 B 0 Accumulators A and B or Double Accumulator D 15 D 0 15 IX 0 X index register 15 IY 0 Y index register 15 SP 0 Stack Pointer 15 PC 0 Program Counter 0 Condition Code Register 7 CCR SXHINZVC Condition Code Register 7 CCR 0 SXHINZVC carry borrow overflow zero negative I interrupt mask half carry from bit 3 X interrupt mask stop disable Definition of the Condition Code Register flags 1 Zero flag Z Z 1 0 zero result if result 0 otherwise Negative flag N negative result N sign bit of the result R7 for an 8 bit result Definition of the Condition Code Register flags 2 Carry flag C C 1 0 out of range for unsigned numbers if result MAX UNSIGNED or result 0 otherwise where MAX UNSIGNED 28 1 for 8 bit results Overflow flag V V 1 0 out of range for signed numbers if result MAX SIGNED or result MIN SIGNED otherwise where MAX SIGNED 27 1 and MIN SIGNED 27 for 8 bit results Overflow for signed numbers 1 Indication of overflow Positive Positive Negative Negative Negative Positive Addressing modes of the ADDA instruction Immediate mode ADDA 5C Direct mode ADDA 1B A 5C A A 001B A Extended mode ADDA 6D00 A 6D00 A M Indexed mode ADDA 56 X ADDA 56 Y A IX 56 A A IY 56 A Assembly language vs machine code Assembly language mnemonic operands Machine code NEGB ADDA ADDA 4A 5B78 opcode operands 50 8B 4A BB 5B 78 Arithmetic instructions 1 NZVC 1 addition Acc M Acc ADD A B ADC A B IMM DIR EXT IND 2 subtraction Acc M Acc SUB A B SBC A B IMM DIR EXT IND 3 negation X NEG A B NEG INH EXT IND Arithmetic instructions 2 NZVC 1 addition A B A ABA INH 2 subtraction A B A SBA INH 3 unsigned multiplication Ax B D MUL INH Part 2 Mini ALU Mnemonic Operation Opcode ADDAB R A B 0000 ADDAM R A M 0001 SUBAB R A B 0010 SUBAM R A M 0011 NOTA R NOT A 0100 NOTB R NOT B 0101 NOTM R NOT M 0110 ANDAB R A AND B 0111 ANDAM R A AND M 1000 ORAB R A OR B 1001 ORAM R A OR M 1010 XORAB R A XOR B 1011 XORAM R A XOR M 1100 opcode 4 4 A 4 B 4 M Mini ALU 4 R Block diagram Arithmetic Functions in VHDL 1 To use arithmetic operations involving std logic vectors you need to include the following library packages library ieee use ieee std logic 1164 all use ieee STD LOGIC UNSIGNED ALL Arithmetic Functions in VHDL 2 You can use standard operators to perform addition and subtraction signal A signal B signal C C A B STD LOGIC VECTOR 3 downto 0 STD LOGIC VECTOR 3 downto 0 STD LOGIC VECTOR 3 downto 0 Experiment 1 Problem 2 Variable Rotator Part 3 Variable rotator Function C A B A 16 bit data input B 4 bit rotation amount Interface A 16 B 4 16 C Block diagram Fixed Rotations in VHDL A 1 A 3 A 2 A 1 A 0 A 2 A 1 A 0 A 3 A rotL A 2 downto 0 A 3


View Full Document

MASON ECE 448 - Lab 1 Introduction to Aldec Active HDL

Documents in this Course
Load more
Download Lab 1 Introduction to Aldec Active HDL
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lab 1 Introduction to Aldec Active HDL and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lab 1 Introduction to Aldec Active HDL and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?