0% found this document useful (0 votes)
3K views

1's Complement VHDL Code Using Dataflow Modeling

This document describes a VHDL code for a ones' complement circuit using structural modeling. The code defines an entity with input and output ports, and an architecture that takes the ones' complement of the input using a concurrent assignment of "y<= not a". The code generates the ones' complement of the input bits as the output bits.

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)
3K views

1's Complement VHDL Code Using Dataflow Modeling

This document describes a VHDL code for a ones' complement circuit using structural modeling. The code defines an entity with input and output ports, and an architecture that takes the ones' complement of the input using a concurrent assignment of "y<= not a". The code generates the ones' complement of the input bits as the output bits.

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)

ONES COMPLEMENT VHDL CODE USING STRUCTURAL MODELING


Library declaration

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;

Std_logic_1164. package for std_logic (predefined data types).

-----------------------------------------------------------------entity ones_comp is
Port (a : in STD_LOGIC_VECTOR (3 downto 0);
y : out STD_LOGIC_VECTOR (3 downto 0));
end ones_comp;
-----------------------------------------------------------------architecture Behavioral_1scomp of ones_comp is
---------------------------------------------begin
y<= not a;
---------------------------------------------end Behavioral_1scomp;

RTL VIEW:-

INFOOP2R.WIX.COM/OP2R

OUT PUT WAVEFORMS:-

Entity declaration.

a: - input port bits.


y: - output port bits.(1s complement
of input bits).

Concurrent statements.
Expression for 2s complement circuit that are
calculated using k-map and Boolean function.

You might also like