Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - CRC8 post-routing problems

 
Thread Tools Search this Thread
Old 06-10-2009, 08:48 AM   #1
Default CRC8 post-routing problems


Hi,

I have a VHDL code for a CRC8 structure. It clocks in the data, computes the CRC, and then outputs a signal which indicated whether the CRC register is all 0 or not. The pre-synthesis simulations are fine, and so are the post-synthesis simulations. However, when I run the post-routing simulations, I get some errors that I am not sure where comes from. I sometimes, in the middle of the process, get a wrong value in the crc_r register (for some reason, I do not have access to the crc_i and crc_c registers when doing the post-routing simulation). Below is my code, and I was wondering if someone has an input to perhaps why this is failing after placing and routing. And maybe if there are more robust ways of doing the CRC8 algorithm when the purpose is to implement it on an FPGA.

Thanks!

LIBRARY ieee;
USE ieee.std_logic_1164.all;
USE ieee.std_logic_arith.all;

ENTITY crc8 IS
PORT(
L : IN std_logic;
E : IN std_logic;
w : IN std_logic;
CLK : IN std_logic;
Q : OUT std_logic
);

END entity crc8 ;

ARCHITECTURE struct OF crc8 IS
signal crc_c, crc_r, crc_i : std_logic_vector(7 downto 0);
BEGIN

crc_i <= crc_r;

crc_c(0) <= w xor crc_i(7);
crc_c(1) <= crc_i(0);
crc_c(2) <= crc_i(1);
crc_c(3) <= crc_i(2);
crc_c(4) <= crc_i(3) xor crc_i(7);
crc_c(5) <= crc_i(4) xor crc_i(7);
crc_c(6) <= crc_i(5);
crc_c(7) <= crc_i(6);

process(CLK,L,E)
begin
if E = '1' then
if L = '1' then
crc_r <= "00000000";
elsif falling_edge(CLK) then
crc_r <= crc_c;
end if;
end if;
end process;

process(CLK,crc_r)
begin
if falling_edge(CLK) then
if crc_r = "00000000" then
Q <= '0';
else
Q <= '1';
end if;
end if;
end process;

END ARCHITECTURE struct;


c64
c64 is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Pioneer DVR-105 and Nero Problems grams@oldtown.com DVD Video 1 08-12-2003 04:17 AM
Re: Pioneer DVR-105 and Nero Problems Ron DVD Video 1 08-08-2003 06:33 PM
Re: Pioneer DVR-105 and Nero Problems Flossie DVD Video 0 08-07-2003 02:25 PM
Re: Pioneer DVR-105 and Nero Problems Flossie DVD Video 0 08-07-2003 08:11 AM
Re: Pioneer DVR-105 and Nero Problems CAM DVD Video 0 08-07-2003 02:30 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46