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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:06:41+00:00 2026-06-14T10:06:41+00:00

As part of a processor design, I am implementing a simple behavioral right shifter

  • 0

As part of a processor design, I am implementing a simple behavioral right shifter using Verilog.

The shifter inputs a 32 bit variable and outputs either a right logical shift or a right arithmetic shift based on a variable (input) choice.

Following is the code:

 module ShiftRight(
  input signed[31:0] inp,
  input [31:0] shamt,
  output [31:0] out,
  input choice
  );

  assign out = (choice)? (inp>>>shamt):(inp>>shamt);


 endmodule

This results in a correct behavioral implementation but gives the following warning during synthesis:

Unit ShiftRight : the following signal(s) form a combinatorial loop: out_shift0000<31>.

(the coeff in brackets is basically the most significant bit of inp, 31 in my case). So I was wondering whether this had anything to do with inp bein signed.

  • 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-14T10:06:42+00:00Added an answer on June 14, 2026 at 10:06 am

    I’ll guess your synthesizer is just exploding at the thought of having to arithmetic shift a vector by 2^32 bits (4,294,967,296), and in it’s internal RTL to gates synthesis it’s ending up in a circular loop.

    Since I’m guessing you don’t need to shift by 4 billion bits, maybe you could use a reasonable number for your shift amount?

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

Sidebar

Related Questions

As part of some OS development for a 32-bit x86 processor, I am considering
I'm working on a function that is too complicated (processor) so I embedded part
As part of an ecommerce system I need to design and implement a blackbox
At work I have been tasked with implementing a TCP server as part of
I have a C# program with an interrupt that processes part of a list
As part of deployment process, I am starting an .net remoting windows forms application
Is Linux Kernel scheduler a part of init process? My understanding is that it
As part of our build process and evolving database, I'm trying to create a
As part of the registration process on a website, I have added mail confirmation.
As part of a CI process I am trying to create a buildlabel which

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.