pr_step5 - - Project Step 5 - Use of Procedures Declared in...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
------------------------------------------------------------------------------- -- Project Step 5 - Use of Procedures Declared in Process -- -- NAME: Amal Hassan -- ------------------------------------------------------------------------------- -- YOU WILL USE YOUR 8 BIT ALU ENTITY FROM STEP 3 ------------------------------------------------------------------------------- -- Enter your Behavioral Architecture for a 8 Bit ALU here -- Remember that it will have only one process and the procedures -- are to be declared within the process. ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -- The Test bench for testing of the 8 bit ALU ------------------------------------------------------------------------------- ENTITY p5 IS END p5; ------------------------------------------------------------------------------- -- The Test Bench Architecture ------------------------------------------------------------------------------- ARCHITECTURE test OF p5 IS TYPE operations IS (op_A,op_B,op_notA,op_notB,op_AxorB,op_AorB,op_AandB, op_AnandB,op_AxnorB,op_0,op_1,op_incA,op_incB,op_decA, op_decB,op_negA,op_negB,op_AplusB,op_AplusBwC, op_AminB,op_AminBwC,op_BminA); TYPE oper_type IS ARRAY (0 to 21) of operations; CONSTANT oper_tbl : oper_type := (op_A,op_B,op_notA,op_notB, op_AxorB,op_AorB,op_AandB,op_AnandB,op_AxnorB,op_0, op_1,op_incA,op_incB,op_decA,op_decB,op_negA,op_negB, op_AplusB,op_AplusBwC,op_AminB,op_AminBwC,op_BminA); SIGNAL oper : operations; TYPE val_tbl_type IS ARRAY (0 to 21) of bit_vector (3 downto 0); CONSTANT pval_tbl : val_tbl_type := ("1100","1010","0011","0101","0110","1110","1000","0111", "1001","0000","1111","1100","1010","0011","0101","0011", "0101","0110","0110","1001","1001","1001"); CONSTANT kval_tbl : val_tbl_type := ("1111","1111","1111","1111","1111","1111","1111","1111", "1111","1111","1111","0011","0101","1100","1010","1100", "1010","0001","0001","0100","0100","0010"); CONSTANT rval_tbl : val_tbl_type := ("1100","1100","1100","1100","1100","1100","1100","1100",
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/19/2011 for the course ECE 762 taught by Professor Degroat during the Winter '11 term at Ohio State.

Page1 / 4

pr_step5 - - Project Step 5 - Use of Procedures Declared in...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online