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

  • SEARCH
  • Home
  • 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 9198335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:15:36+00:00 2026-06-17T22:15:36+00:00

i use alias command in vhdl but had error Index constraint cannot be applied

  • 0

i use alias command in vhdl but had error “Index constraint cannot be applied to already-constrained type vec.”

my code is

    type vec is array (11 downto 0) of std_logic;
    signal s:vec;
    alias s1:vec (3 downto 0) is s(11 downto 8);
    alias s2:vec (4 downto 0) is s(7 downto  4);
  • 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-17T22:15:36+00:00Added an answer on June 17, 2026 at 10:15 pm

    This will do:

    signal vec: std_logic_vector(11 downto 0);-- std_logic_vector IS an array of std_logic's
    alias s1: std_logic_vector(3 downto 0) is vec(3 downto 0);
    alias s2: std_logic_vector(3 downto 0) is vec(7 downto 0);-- note: Left: #4 = Right: #4
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Source:http://jpsoft.com/help/index.htm?alias.htm Aliases can use command line parameters or parameters like those in batch files.
When I use the command: C:\>keytool -list -alias androiddebugkey -keystore .android\debug.keystore -storepass android -keypass
How can I use the nice command with an alias? As an example: alias
I'm trying to create an alias for a command to see the memory use,
Do you use the alias method in order to add more ways to call
i have an question how to use an alias column at the where/having clause.
i have a question how to use an alias from a select query: $timecheck
I want to use both bash alias and bash function with several arguments. I
In PowerShell you can use pushd (an alias for Push-Location ) and popd (an
I'd like to use AliasMatch to create an alias for everything within a folder,

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.