pr_step1 - - EE762 - Project Assignment #1 - NAME: Amal...

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

View Full Document Right Arrow Icon
------------------------------------------------------------------------------- -- EE762 - Project Assignment #1 -- -- NAME: Amal Hassan -- --============================================================================= -- Generic Function Unit Entity ------------------------------------------------------------------------------- ENTITY generic_function IS PORT (A,B,G3,G2,G1,G0 : IN bit; R : OUT bit); END generic_function; ------------------------------------------------------------------------------- -- Enter your architecture for the generic function unit here ------------------------------------------------------------------------------- ARCHITECTURE generic_function of generic_function is begin process (A,B,G0,G1,G2,G3) begin if ( A='0' AND B='0') then R <= G0; elsif (A='0' AND B='1') then R <= G1; elsif (A='1' AND B='0') then R <= G2; else R <= G3; end if; end process; end generic_function; ------------------------------------------------------------------------------- -- The Test Bench Entity for testing of the generic function block
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 / 2

pr_step1 - - EE762 - Project Assignment #1 - NAME: Amal...

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