26.06.2015 Views

Computer Architecture and Organization Chapter 5 ... - IIUSA

Computer Architecture and Organization Chapter 5 ... - IIUSA

Computer Architecture and Organization Chapter 5 ... - IIUSA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5-36 <strong>Chapter</strong> 5 - Datapath <strong>and</strong> Control<br />

<strong>Computer</strong> <strong>Architecture</strong> <strong>and</strong> <strong>Organization</strong> by M. Murdocca <strong>and</strong> V. Heuring<br />

VHDL Specification<br />

Interface specification for the majority component<br />

-- Interface<br />

entity MAJORITY is<br />

port<br />

(A_IN, B_IN, C_IN: in BIT<br />

F_OUT: out BIT);<br />

end MAJORITY;<br />

Behavioral model for the majority component<br />

-- Body<br />

architecture LOGIC_SPEC of MAJORITY is<br />

begin<br />

-- compute the output using a Boolean expression<br />

F_OUT

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!