Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

verilog code needed for my sequence

Status
Not open for further replies.

Bosechandran

Junior Member level 1
Joined
Dec 9, 2016
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
126
hi i need verilog code for my sequence

01 2 3.....................63

1000000000............0
0100000000............0
0010000000............0
0001000000............0
0000100000............0
0000010000............0
0000001000............0
0000000100............0

i need shift register code. This 8 bit should move one by one till 63 and repeat.
 

Hi,

Don't ask for someone else to write code for you in this forum ...
(..unless you want to pay for this. Then place your post in the "jobs" section of the forum)

A forum is meant to help you to rectify your code. This means:
* You look for informations on how to solve the problem
* you try to find the solution on your own
* you write the code on your own
* you test the code

in case of problems:
* you show us your code
* you give detailed error description
* and test conditions.

--> then there are many people here in the forum to help you

Klaus
 

"Shift register code" is trivial...

Even google gives reasonable results with the quoted text, which I won't bother repeating here.
 

ok thanks, I will do it. thanks for suggestion
 

use either the shift operator "x <= x >> 1;" or concat "x <= {1'b0, x[0:62]};" or be lazy "x <= x[0:62]". division should also work "x <= x/2" but will annoy more people.
 

This 8 bit should move one by one till 63 and repeat.

use either the shift operator "x <= x >> 1;" or concat "x <= {1'b0, x[0:62]};" or be lazy "x <= x[0:62]". division should also work "x <= x/2" but will annoy more people.

The requirement is for a ROTATE operation as stated by the OP all of your suggestions won't work as shown. Only the concatenation will work if the it is written with bit-63 assigned to the MSB position instead of 1'b0.

Though I have a suspicion that the OP could do whatever they are trying to do differently, but the 64-bit rotate register was the only thing they could think of.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top