pr_step4 - - Project Step 4 - Behavioral Description of bit...

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

View Full Document Right Arrow Icon
------------------------------------------------------------------------------- -- Project Step 4 - Behavioral Description of bit slice ALU -- -- NAME: -- ------------------------------------------------------------------------------- --YOU WILL USE YOUR 8 BIT ALU ENTITIY FROM STEP 3 --This is an alternative architecture for that enity. --Make sure your configuration is correct!! ------------------------------------------------------------------------------- -- Enter your Behavioral Architecture for a 8 Bit ALU here ------------------------------------------------------------------------------- - ------------------------------------------------------------------------------- -- The Test bench for testing of the 8 bit ALU ------------------------------------------------------------------------------- ENTITY p4 IS END p4; E ------------------------------------------------------------------------------- -- The Test Bench Architecture ------------------------------------------------------------------------------- ARCHITECTURE test OF p4 IS A 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 / 5

pr_step4 - - Project Step 4 - Behavioral Description of bit...

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