Forum Discussion
Vicky1
Regular Contributor
7 years agoHi Johi,
"hi Johi,
Can you please check the each & every port & ports type of the component instance 'squarer' & corresponding entity?
Especially sclr port."
It was my previous post.
The issue is squaring operation cannot be used together with synchronous clear signal for LPM_MULT.
It should not be on port list.
Refer below code from FloatLn.vhd file & try to simulate, here port "sclr" is commented in COMPONENT & remove it from Entity as well if you can.
COMPONENT altsquare
GENERIC
(
DATA_WIDTH : NATURAL;
PIPELINE : NATURAL;
REPRESENTATION : STRING := "UNSIGNED";
RESULT_ALIGNMENT : STRING := "LSB";
RESULT_WIDTH : NATURAL;
lpm_type : STRING := "altsquare"
);
PORT
(
aclr : IN STD_LOGIC := '0';
clock : IN STD_LOGIC := '1';
data : IN STD_LOGIC_VECTOR(DATA_WIDTH-1 DOWNTO 0);
ena : IN STD_LOGIC := '1';
result : OUT STD_LOGIC_VECTOR(RESULT_WIDTH-1 DOWNTO 0)
--sclr : IN STD_LOGIC := '0'
);
END COMPONENT;
squarer : altsquare
GENERIC MAP (
DATA_WIDTH => 13,
PIPELINE => 1,
REPRESENTATION => "UNSIGNED",
RESULT_ALIGNMENT => "MSB",
RESULT_WIDTH => 14
)
PORT MAP (
aclr => aclr,
clock => clock,
data => squarerIn,
ena => clk_en,
result => wire_squarer_result
);Let me know if this has helped resolve the issue you are facing or if you need any further assistance.
Best Regards
Vikas Jathar
(This message was posted on behalf of Intel Corporation)