Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I am wondering how can I use \"Y1\" in the second architecture. I am trying to c

ID: 1932465 • Letter: I

Question

I am wondering how can I use "Y1" in the second architecture. I am trying to create a sign full adder -------------------------------------------------------------------------------------------------------------------------------- LIBRARY ieee; USE ieee.std_logic_1164.ALL; ENTITY S_FA IS port(ADD,X,Y,C_IN :IN STD_LOGIC; Sum,C_OUT :OUT STD_LOGIC); End S_FA; architecture Comp OF S_FA Is SIGNAL Y1 : STD_LOGIC; begin Y1 <= (ADD XOR Y); End Comp; architecture logic_func OF S_FA Is begin Sum <= (X XOR Y1 XOR C_IN); C_OUT <= (X AND Y1) OR (C_IN AND X) OR (C_IN AND Y1); end logic_func;

Explanation / Answer

library ieee; use ieee.std_logic_1164.all; entity fullAdder_tb is end fullAdder_tb; architecture tb of fullAdder_tb is component fullAdder is port( A, B, Cin : in std_logic; sum, Cout : out std_logic); end component; signal A, B, Cin, sum, Cout : std_logic; begin mapping: fullAdder port map(A, B, Cin, sum, Cout); --concurrent processes process begin Cin
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote