U
uche
Hi,
I am trying to find out why my following code cannot synthesize.
Please give me suggestions on how to fix it.
input_counter: process(rst, clk)
begin
if(rst'event and rst = '1') then
CNT <= 0;
OFFSET <= "00000000000000000000000000000000";
buffer_int(31 downto 0) <= "00000000000000000000000000000000";
buffer_int2(31 downto 0) <= "00000000000000000000000000000000";
xn_re(31 downto 0)<= "00000000000000000000000000000000";
elsif (clk'event and clk = '1') then
--the following lines are exectued at the same time, when count is 1
offset it 0 !
CNT <= CNT + 1;
OFFSET <= CONV_STD_LOGIC_VECTOR(CNT, 32);
buffer_int(31 downto 0) <= buffer_int(31 downto 0);
buffer_int2(31 downto 0) <= buffer_int2(31 downto 0);
xn_re(31 downto 0)<= xn_re(31 downto 0);
elsif(rfd = '1' ) then
buffer_int(31 downto 0) <= dout(31 downto 0);
buffer_int2(31 downto 0) <= buffer_int(31 downto 0);
xn_re(31 downto 0)<= buffer_int2(31 downto 0);
end if;
end process;
Thanks,
I am trying to find out why my following code cannot synthesize.
Please give me suggestions on how to fix it.
input_counter: process(rst, clk)
begin
if(rst'event and rst = '1') then
CNT <= 0;
OFFSET <= "00000000000000000000000000000000";
buffer_int(31 downto 0) <= "00000000000000000000000000000000";
buffer_int2(31 downto 0) <= "00000000000000000000000000000000";
xn_re(31 downto 0)<= "00000000000000000000000000000000";
elsif (clk'event and clk = '1') then
--the following lines are exectued at the same time, when count is 1
offset it 0 !
CNT <= CNT + 1;
OFFSET <= CONV_STD_LOGIC_VECTOR(CNT, 32);
buffer_int(31 downto 0) <= buffer_int(31 downto 0);
buffer_int2(31 downto 0) <= buffer_int2(31 downto 0);
xn_re(31 downto 0)<= xn_re(31 downto 0);
elsif(rfd = '1' ) then
buffer_int(31 downto 0) <= dout(31 downto 0);
buffer_int2(31 downto 0) <= buffer_int(31 downto 0);
xn_re(31 downto 0)<= buffer_int2(31 downto 0);
end if;
end process;
Thanks,