- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i need a shift register with variable length, i can't find it in dsp builder.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have never used DSP Builder but what you described is often called a barrelshifter. Perhaps it is called that in DSP Builder.
In verilog you can create a barrelshift with code like this: assign c = b << a; // right shift by variable length assign f = e >> d; // left shift by variable length The code above will be very slow since it's combinational. You can either pipeline the operation or use a multiplier block to do the same thing.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page