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.

Error in Post-synthesis, ModelSim

Status
Not open for further replies.

win2010

Member level 1
Member level 1
Joined
Sep 30, 2010
Messages
35
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Visit site
Activity points
1,605
This is code for finding CRC for all combination of inputs. I cheked this before synthesis which is working fine but after synthesis giving error as bellow.

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
use ieee.numeric_std.all;

entity crc1 is
port( clk : in std_logic;
reset: in std_logic;
input1: in std_logic;
output1: out std_logic);

end crc1;

architecture arch of crc1 is
signal count2:integer;
signal b:std_logic_vector(7 downto 0);


begin


process(clk,reset)
begin

if reset = '1' then
count2 <= 0 ;

elsif rising_edge(clk) then

if count2 = 1504 then
count2 <= 1 ;

else
count2 <= count2 + 1 ;
end if;
end if ;
end process ;

process(count2 , reset , b, input1)
variable i: integer range 0 to 8;

begin
if reset ='1' then
b <= "00000000" ;
i := 0;
else

if (count2 > 8 and count2 <= 1504) then
if (b(7)='0') then
b <= b(6 downto 0) & input1;
else
b <= ((b(6 downto 0) & input1) xor "11010101" );
end if;


end if;
end if;

if (count2 >= 1 and count2 <= 8) then
output1 <= b(i);
b(i) <= '0' ;
i:= i + 1;
else
i:= 0;
output1<= input1;
end if;

end process;

end arch;



# ** Error: (vsim-3601) Iteration limit reached at time 10 ns.
# ** Note: (vsim-3602) Delays were truncated during elaboration of the design.
 

because as b signal forms latch
which is keep on changing after your count2 is 9

so it always enters in process(count2 , reset , b, input1)

it will not come out of this loop
 

I given like that both are also not working:

process(clk, reset)

Process(count2)

what to do for this, to come out of this loop...?
 

if you are putting it under clock it should work
just you have to small changes in your code
i guess you can easily fix them
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top