OpenCores
URL https://opencores.org/ocsvn/galois_lfsr/galois_lfsr/trunk

Subversion Repositories galois_lfsr

[/] [galois_lfsr/] [trunk/] [rtl/] [user.vhdl] - Diff between revs 2 and 3

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 2 Rev 3
Line 81... Line 81...
        /* synthesis translate_on */
        /* synthesis translate_on */
 
 
        loadEn<=clk when reset='0' and not i_computed else '0';
        loadEn<=clk when reset='0' and not i_computed else '0';
        computeClk<=clk when reset='0' and i_loaded and not i_computed else '0';
        computeClk<=clk when reset='0' and i_loaded and not i_computed else '0';
 
 
        /* CRC computer using LFSR.
        /* Galois LFSR instance. */
                E.g. Design a CRC-32 generator with the following polynomial (CRC-32 algorithm):
 
                        G(x) = x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10
 
                                        + x^8 + x^7 + x^5 + x^4 + x^2 + x^1 + 1
 
 
 
                Equivalent to the following hex code: 0x04C11DB7, with the MSbit discarded (assumed
 
                        present, but discarded in real implementation to save bits as it does not serve
 
                        any other purpose).
 
        */
 
        i_lfsr: entity work.lfsr(rtl)
        i_lfsr: entity work.lfsr(rtl)
                generic map(taps=>tapVector)
                generic map(taps=>tapVector)
                /*generic map(taps => (
                /*generic map(taps => (
                        0|1|2|8=>true,
                        0|1|2|8=>true,
                        7 downto 3=>false
                        7 downto 3=>false

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.