Tuesday 1 August 2017

Ripple Carry Adder Behavioral



Test Bench Program :-

LIBRARY ieee;
USE ieee.std_logic_1164.ALL;


ENTITY tb_rca_Behavioral IS
END tb_rca_Behavioral;

ARCHITECTURE behavior OF tb_rca_Behavioral IS

    -- Component Declaration for the Unit Under Test (UUT)

    COMPONENT rca_Behavioral
    PORT(
         a : IN  std_logic_vector(3 downto 0);
         b : IN  std_logic_vector(3 downto 0);
         Cin : IN  std_logic;
         Cout : OUT  std_logic;
         s : OUT  std_logic_vector(3 downto 0)
        );
    END COMPONENT;
   

   --Inputs
   signal a : std_logic_vector(3 downto 0) := (others => '0');
   signal b : std_logic_vector(3 downto 0) := (others => '0');
   signal Cin : std_logic := '0';

  --Outputs
   signal Cout : std_logic;
   signal s : std_logic_vector(3 downto 0);


BEGIN

-- Instantiate the Unit Under Test (UUT)
   uut: rca_Behavioral PORT MAP (
          a => a,
          b => b,
          Cin => Cin,
          Cout => Cout,
          s => s
        );

   -- Stimulus process
   stim_proc: process
   begin
      -- hold reset state for 100 ns.
      wait for 100 ns; a<="0001"; b<="0001";cin<='0';
      wait for 100 ns; a<="0101"; b<="1001";cin<='0';
      wait for 100 ns; a<="1001"; b<="1101";cin<='0';
      wait for 100 ns; a<="0111"; b<="1011";cin<='1';
      wait for 100 ns; a<="0101"; b<="1111";cin<='0';
      wait for 100 ns; a<="0011"; b<="1101";cin<='1';
      wait for 100 ns; a<="1001"; b<="0101";cin<='0';
      wait for 100 ns; a<="1101"; b<="1001";cin<='1';
      wait;
   end process;

END;


--------------------------------------------------------------------------------------------------------------------------

Ripple Carry Adder Behavioral (  VHDL  )  :-

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_unsigned.ALL;


entity rca_Behavioral is
    Port ( a : in  STD_LOGIC_VECTOR (3 downto 0);
           b : in  STD_LOGIC_VECTOR (3 downto 0);
           Cin : in  STD_LOGIC;
           Cout : out  STD_LOGIC;
           s : out  STD_LOGIC_VECTOR (3 downto 0));
end rca_Behavioral;

architecture Behavioral of rca_Behavioral is
signal q: std_logic_vector(4 downto 0);
begin

process(a,b)
begin
q<=('0' & a)+('0' & b)+cin;
end process;

process(q)
begin
s<=q(3 downto 0);
Cout<=q(4);
end process;




5 comments:

  1. Irrespective of receiving daily oral or future injectable depot therapies, these require health care visits for medication and monitoring of safety and response. If patients are treated early enough, before a lot of immune system damage has occurred, life expectancy is close to normal, as long as they remain on successful treatment. However, when patients stop therapy, virus rebounds to high levels in most patients, sometimes associated with severe illness because i have gone through this and even an increased risk of death. The aim of “cure”is ongoing but i still do believe my government made millions of ARV drugs instead of finding a cure. for ongoing therapy and monitoring. ARV alone cannot cure HIV as among the cells that are infected are very long-living CD4 memory cells and possibly other cells that act as long-term reservoirs. HIV can hide in these cells without being detected by the body’s immune system. Therefore even when ART completely blocks subsequent rounds of infection of cells, reservoirs that have been infected before therapy initiation persist and from these reservoirs HIV rebounds if therapy is stopped. “Cure” could either mean an eradication cure, which means to completely rid the body of reservoir virus or a functional HIV cure, where HIV may remain in reservoir cells but rebound to high levels is prevented after therapy interruption.Dr Itua Herbal Medicine makes me believes there is a hope for people suffering from,Parkinson's disease,Schizophrenia,Cancer,Scoliosis,Fibromyalgia,Fluoroquinolone Toxicity
    Syndrome Fibrodysplasia Ossificans Progressiva.Fatal Familial Insomnia Factor V Leiden Mutation ,Epilepsy Dupuytren's disease,Desmoplastic small-round-cell tumor Diabetes ,Coeliac disease,Creutzfeldt–Jakob disease,Cerebral Amyloid Angiopathy, Ataxia,Arthritis,Amyotrophic Lateral Sclerosis,Alzheimer's disease,Adrenocortical carcinoma.Asthma,Allergic diseases.Hiv_ Aids,Herpe ,Copd,Diabetes,Hepatitis,I read about him online how he cure Tasha and Tara so i contacted him on drituaherbalcenter@gmail.com even talked on whatsapps +2348149277967 believe me it was easy i drank his herbal medicine for two weeks and i was cured just like that isn't Dr Itua a wonder man? Yes he is! I thank him so much so i will advise if you are suffering from one of those diseases Pls do contact him he's a nice man.

    ReplyDelete
  2. My life is beautiful thanks to you, Mein Helfer. Lord Jesus in my life as a candle light in the darkness. You showed me the meaning of faith with your words. I know that even when I cried all day thinking about how to recover, you were not sleeping, you were dear to me. I contacted the herbal center Dr Itua, who lived in West Africa. A friend of mine here in Hamburg is also from Africa. She told me about African herbs but I was nervous. I am very afraid when it comes to Africa because I heard many terrible things about them because of my Christianity. god for direction, take a bold step and get in touch with him in the email and then move to WhatsApp, he asked me if I can come for treatment or I want a delivery, I told him I wanted to know him I buy ticket in 2 ways to Africa To meet Dr. Itua, I went there and I was speechless from the people I saw there. Patent, sick people. Itua is a god sent to the world, I told my pastor about what I am doing, Pastor Bill Scheer. We have a real battle beautifully with Spirit and Flesh. Adoration that same night. He prayed for me and asked me to lead. I spent 2 weeks and 2 days in Africa at Dr Itua Herbal Home. After the treatment, he asked me to meet his nurse for the HIV test when I did it. It was negative, I asked my friend to take me to another nearby hospital when I arrived, it was negative. I was overwhite with the result, but happy inside of me. We went with Dr. Itua, I thank him but I explain that I do not have enough to show him my appreciation, that he understands my situation, but I promise that he will testify about his good work. Thank God for my dear friend, Emma, I know I could be reading this now, I want to thank you. And many thanks to Dr. Itua Herbal Center. He gave me his calendar that I put on my wall in my house. Dr. Itua can also cure the following diseases ... Cancer, HIV, Herpes, Hepatitis B, Inflammatory Liver, Diabetis, Bladder Cancer,Colorectal Cancer,HPV,Breast Cancer,Kidney Cancer,Leukemia,Lun,Fribroid,Infertility,Parkinson's disease,Inflammatory bowel disease ,Fibromyalgia, recover your ex. You can contact him by email or whatsapp, @ .. drituaherbalcenter@gmail.com, phone number .. + 2348149277967 .. He is a good doctor, talk to him kindly. I'm sure he will also listen to you.

    ReplyDelete
  3. I’m Mark Russ , I contracted HIV in 2009, I was told by my doctor that
    there’s no possible cure for HIV. I started taking my ARV’s, My CD4 was 77
    and viral load was 112,450. I saw a website of Dr. Imoloa also I saw a lot
    of testimonials about him on how he uses herbal medicine to cure HIV. I
    contacted him and told him my problems, He sent me the herbal medicine and
    I took it for 7 days after then I went for check-up and I was cured. The
    medicine has NO SIDE EFFECT, there’s no special diet when taking the
    medicine. He also cure DIABETES, EX BACK, ALS, HEPATITIS B, CANCER, HERPES
    1) If you want your ex back.
    (2) If you always have bad dreams.
    (3) You want to be promoted in your
    office.
    (4) You want women/men to run after
    you.
    (5) If you want your own children
    (6) You want to be rich.
    (7) You want to tie your husband/wife to
    be
    yours forever.
    (8) If you need financial assistance.
    (9) How you been scammed and you
    (10) and if you ant your herpes cure back
    want to recover you lost money
    (11) CANCER,
    (12) DIABETES,
    (13) HIV&AIdS,
    (14) URINARY TRACT INFECTION,
    (15) CANCER,
    (16) IMPOTENCE,
    (17) BARENESS/INFERTILIY
    (18) DIARRHEA
    (19) ASTHMA..
    Also contact him with the above.
    and lots more. You can reach him on drimoloaherbalmademedicine@gmail.com or
    Whatsapp +2347081986098 all thanks to dr imoloa he is really a great man .

    ReplyDelete
  4. All thanks to Dr. Imoloa if not for him I don't know what will have become of me today. I married my husband who was HIV positive like myself. We accepted it as fate since there is no cure. Two years after our marriage my life was torn apart when our family doctor diagnosed me of genital herpes virus I know it was from my ex whom I have dated years back. I became very worried because I don't know what will be my husband judgment when he finds out. I searched everywhere both on internet for cure but no success until my husband started suspecting but still he wasn't sure. I don't want to loose my marriage I prayed everyday with hope that there is a cure. I searched without rest blogs, websites, everything google says about herpes and cure and peoples comments one evening after work I was surfing the internet on herpes cure I saw a friend who was giving testimony on how DR. Imoloa have helped cured her of her herpes virus I immediately contacted her to confirm if her testimony was real. She told me it was. She also told me about African Herbs and Herbalist and Dr imoloa. She then gave me Dr. imoloa contact, which I contacted him immediately. He told me about his Herbal Medicines and how he has helped many people get healthy with fruits and vegetables and also cured many with his Roots and traditional Herbs, I was interested. He prepared and sent me Herbal medicine for both HERPES & HIV through DHL I used this medicines for both HERPES and HIV carefully as was prescribed by him for 1week and 4days without my husband notice. I waited for a month then went for medical test in a different hospital and I was both herpes and HIV negative I felt reborn. I showed my husband my result and told him everything including DR imoloa. He contacted DR imoloa who also sent him HIV Herbal Medicine. He used this Medicines for just 8days, then we both went to our family doctor who confirmed my husband HIV negative and me still negative. Our family doctor, Dr Paul is a good Christian and often advice his patients to use natural remedy. Based on confidential he do introduce some of his patients to DR imoloa for Herbal cure. If you are sick and want the right Herbal Medicine contact DR imoloa on drimolaherbalmademedicine@gmail.com. you can also reach him on whatssap- +2347081986098. GOD bless you dr imoloa, you are really a great man.

    ReplyDelete
  5. WHAT A GREAT MIRACLE THAT I HAVE EVER SEE IN MY LIFE. My names are Clara David I’m a citizen of USA, My younger sister was sicking of breast cancer and her name is Sandra David I and my family have taking her to all kind of hospital in USA still yet no good result. I decided to make search for cancer cure so that was how I find a lady called peter Lizzy she was testifying to the world about the goodness of a herbal man who has the roots and herbs to cure all kind of disease and the herbal man email was there. So I decided to contact the herbal man @herbalist_sakura for my younger sister help to cure her breast cancer. I contacted him and told him my problem he told me that I should not worry that my sister cancer will be cure, he told me that there is a medicine that he is going to give me that I will cook it and give it to my sister to drink for one week, so I ask how can I receive the cure that I am in USA, he told me That I will pay for the delivery service. The courier service can transport it to me so he told me the amount I will pay, so my dad paid for the delivery fee. two days later I receive the cure from the courier service so I used it as the herbal man instructed me to, before the week complete my sister cancer was healed and it was like a dream to me not knowing that it was physical I and my family were very happy about the miracle of Doctor so my dad wanted to pay him 5 million us dollars the herbal man did not accept the offer from my dad, but I don't know why he didn't accept the offer, he only say that I should tell the world about him and his miracle he perform so am now here to tell the world about him if you or your relative is having any kind of disease that you can't get from the hospital please contact dr.sakuraspellalter@gmail.com or whats app him +2348110114739 you can follow him up on Instagram @herbalist_sakura for the cure, he will help you out with the problem. And if you need more information about the doctor you can mail me davidclara223@gmail.com

    ReplyDelete