Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7019635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:12:34+00:00 2026-05-27T23:12:34+00:00

I am trying to simulate my small program and I keep getting error messages

  • 0

I am trying to simulate my small program and I keep getting error messages and I have not been able to figure out why.

The error messages are:

line 131 error near process

line 132 error near behavioral ; expected type void

The lines:

 130    end if;
 131    end process;
 132        end Behavioral;

I have tried to solve these for hours and I still do not have any clue.

Whole code:

use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;

entity kuutonen is
    Port ( A1 : in  STD_LOGIC;
           B1 : in  STD_LOGIC;
           clk : in  STD_LOGIC;
           A : out  STD_LOGIC;
           B : out  STD_LOGIC;
           C : out  STD_LOGIC;
           D : out  STD_LOGIC;
           E : out  STD_LOGIC;
           F : out  STD_LOGIC;
           G : out  STD_LOGIC);
end kuutonen;

architecture Behavioral of kuutonen is
    signal tmp : std_logic_vector (2 downto 0);
begin

    process (clk)
    begin
        if(tmp = "110")then
            tmp <= "000";
         end if;

        if (A1 = '0' and B1 = '0') then
            if (tmp ="000") then
                A <= '1';
                B <= '0';
                C <= '0';
                D <= '0';
                E <= '0';
                F <= '0';
                G <= '0';
                tmp <= tmp + 1;
            end if;

            if (tmp ="001")then
                B <= '1';
                A <= '0';
                C <= '0';
                D <= '0';
                E <= '0';
                F <= '0';
                G <= '0';
                tmp <= tmp + 1;
            end if;

            if (tmp ="010")then
                C <= '1';
                B <= '0';
                A <= '0';
                D <= '0';
                E <= '0';
                F <= '0';
                G <= '0';
                tmp <= tmp + 1;
            end if;

            if (tmp ="011")then
                D <= '1';
                B <= '0';
                C <= '0';
                A <= '0';
                E <= '0';
                F <= '0';
                G <= '0';
                E <= '1';

                if (tmp ="100")then
                    E <= '1';
                    B <= '0';
                    C <= '0';
                    D <= '0';
                    A <= '0';
                    F <= '0';
                    G <= '0';
                    tmp <= tmp+1;
                end if;

                if (tmp ="101")then
                    F <= '1';
                    B <= '0';
                    C <= '0';
                    D <= '0';
                    E <= '0';
                    A <= '0';
                    G <= '0';
                    tmp <= tmp+1;
                end if;

                if (tmp ="110")then
                    G <= '1';
                    B <= '0';
                    C <= '0';
                    D <= '0';
                    E <= '0';
                    F <= '0';
                    A <= '0';
                end if;

        end if;
    end process;
end Behavioral;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:12:35+00:00Added an answer on May 27, 2026 at 11:12 pm

    Just from inspection, I’d say it’s probably due to a missing “end if;” between the case for tmp=001 and tmp=100.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to simulate this error with a sample php code but haven't been
I am trying to write a program to simulate a card game. I have
I'm trying to simulate a substring in Python but I'm getting an error: length_message
I'm trying to simulate a click on an anchor tag using jQuery. I've been
I am trying to simulate a problem we have with a particular domain ID
I am trying to figure out how to edit all the areas with a
I'm trying to simulate the behavior of a DNS server, which I have a
I'm trying to simulate a socket client using simple perl program. socket client: #!/usr/bin/perl
I'm playing around with MVC3, trying to create small test projects which simulate problems
I'm trying to simulate some software and I need the user to be able

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.