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 8508397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:09:01+00:00 2026-06-11T03:09:01+00:00

case task is when 1 => task <= 2; when 2 => task <=

  • 0
    case task is

       when 1 => task <= 2;

       when 2 => task <= 3; 

       when other =>...

    end case

I try to change the switch variable inside the case but it does not effect the value after case clause is passed. What is the proper way to do it?

  • 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-06-11T03:09:02+00:00Added an answer on June 11, 2026 at 3:09 am

    Since you use a signal assignment <= I assume that task is a signal, not a variable. The new value of task will be available in the next simulation cycle (delta cycle). This usually means that the new value will be visible when the process is executed again, or after a “wait” statement (but you probably don’t want wait statements if you are going to synthesize the code).

    As an alternative, you can use a variable for task, and use the variable assignment operator: task := 2;

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

Sidebar

Related Questions

In case of compilation errors, ant javac task will not compile all classes which
A basic task: evaluate field's value and show warning if results are not satisfying.
Use case: class MyTask(Task): queue = 'default_queue' def run(self): # do work Normally I
I'm working with the new Task Parallel Library and today went to this case:
In writing Test case as I know, first step/task is to identify the Test
I'm using VB.NET but any other known language should be fine as long as
I want to make a for loop wait until my other desired task is
I believe task I am trying to accomplish is fairly easy, but I have
(I'm not using Rails) I have a rake task that sets the environment that
Is it better to extend my users controller to include administrative task on other

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.