0% found this document useful (0 votes)
105 views1 page

OR Gate Beha - Modeling

The document describes a VHDL code for modeling an OR gate using behavioral modeling. It defines an entity or_1 with input ports d and e and output port f. The architecture contains a process that sets the output f to 1 if either input d or e is 1, otherwise it sets f to 0, implementing basic OR gate logic. It provides the truth table and describes that the process sets the output based on the inputs.

Uploaded by

OP2R
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
105 views1 page

OR Gate Beha - Modeling

The document describes a VHDL code for modeling an OR gate using behavioral modeling. It defines an entity or_1 with input ports d and e and output port f. The architecture contains a process that sets the output f to 1 if either input d or e is 1, otherwise it sets f to 0, implementing basic OR gate logic. It provides the truth table and describes that the process sets the output based on the inputs.

Uploaded by

OP2R
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

ONLINE PLATFORM FOR PROGRAMMING AND RESEARCH (OP2R) OR GATE VHDL CODE USING BEHAVIOURAL MODELING

library IEEE; use IEEE.STD_LOGIC_1164.ALL; ----------------------------------------------entity or_1 is Port ( d, e : in STD_LOGIC; f : out STD_LOGIC); end or_1; ----------------------------------------------architecture Behavioral_or of or_1 is begin ----------------process(d, e) begin if(d='1') then f<= l; else f<= '1'; end if; end process; ----------------end Behavioral_nor; TRUTH TABLE: -

*\\ d and e are the input port to the and gate. *\\ f is output port to the and gate.

*\\ architecture of or_1 entity begins. *\\ process (sensitivity list). After this statement all statement will be *\\ if (condition is true )then output (f) equal to l.

*\\ otherwise output (f) equal to 0.

*\\ end the architecture.

OUTPUT WAVEFORM: -

INFOOP2R.WIX.COM/OP2R

You might also like