Knowledge Base Article

LPM_CLSHIFT MegaWizard Plug-In Manager does not correctly set the shift direction

Description

The LPM_CLSHIFT MegaWizard Plug-In Manager does not correctly set the shift direction.

Resolution

After you generate a left or right shifter with the MegaWizard Plug-In Manager, manually modify the MegaWizard-generated wrapper to add the direction.For example, add the direction line as bolded below:

lpm_clshift LPM_CLSHIFT_component ( .data (data), .distance (distance),.direction (1\'b1),.result (sub_wire0) // synopsys translate_off , .aclr (), .clken (), .clock (), .overflow (), .underflow () // synopsys translate_on? );Note: VCC (1’b1) creates a right shifter; GND (1’b0) creates a left shifter.

Updated 1 month ago
Version 2.0
No CommentsBe the first to comment