URL
https://opencores.org/ocsvn/sdhc-sc-core/sdhc-sc-core/trunk
Subversion Repositories sdhc-sc-core
Compare Revisions
- This comparison shows the changes necessary to convert path
/sdhc-sc-core/trunk/src/grpCrc
- from Rev 105 to Rev 164
- ↔ Reverse comparison
Rev 105 → Rev 164
/unitCrc/src/Crc-Rtl-ea.vhdl
1,8 → 1,30
------------------------------------------------- |
-- author: Rainer Kastl |
-- |
-- CRC implementation with generic polynoms. |
-- |
-- SDHC-SC-Core |
-- Secure Digital High Capacity Self Configuring Core |
-- |
-- (C) Copyright 2010 Rainer Kastl |
-- |
-- This file is part of SDHC-SC-Core. |
-- |
-- SDHC-SC-Core is free software: you can redistribute it and/or modify it |
-- under the terms of the GNU Lesser General Public License as published by |
-- the Free Software Foundation, either version 3 of the License, or (at |
-- your option) any later version. |
-- |
-- SDHC-SC-Core is distributed in the hope that it will be useful, but |
-- WITHOUT ANY WARRANTY; without even the implied warranty of |
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
-- General Public License for more details. |
-- |
-- You should have received a copy of the GNU Lesser General Public License |
-- along with SDHC-SC-Core. If not, see http://www.gnu.org/licenses/. |
-- |
-- File : Crc-Rtl-ea.vhdl |
-- Owner : Rainer Kastl |
-- Description : CRC implementation with generic polynoms |
-- Links : |
-- |
|
-- User information: |
-- While the data is shifted in bit by bit iDataIn |
-- has to be '1'. The CRC can be shifted out by |
-- setting iDataIn to '0'. |
9,7 → 31,6
-- If the CRC should be checked it has to be shifted |
-- in directly after the data. If the remainder is 0, |
-- the CRC is correct. |
------------------------------------------------- |
|
library ieee; |
use ieee.std_logic_1164.all; |
/unitCrc/src/tbCrc-bhv-ea.vhdl
1,11 → 1,28
------------------------------------------------- |
-- tb-crc-ea.vhdl |
-- author: Rainer Kastl |
-- |
-- Testbench for the generic crc implementation. |
-- Uses both crc7 as well as crc16 from the package |
-- pcrc. |
------------------------------------------------- |
-- SDHC-SC-Core |
-- Secure Digital High Capacity Self Configuring Core |
-- |
-- (C) Copyright 2010 Rainer Kastl |
-- |
-- This file is part of SDHC-SC-Core. |
-- |
-- SDHC-SC-Core is free software: you can redistribute it and/or modify it |
-- under the terms of the GNU Lesser General Public License as published by |
-- the Free Software Foundation, either version 3 of the License, or (at |
-- your option) any later version. |
-- |
-- SDHC-SC-Core is distributed in the hope that it will be useful, but |
-- WITHOUT ANY WARRANTY; without even the implied warranty of |
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
-- General Public License for more details. |
-- |
-- You should have received a copy of the GNU Lesser General Public License |
-- along with SDHC-SC-Core. If not, see http://www.gnu.org/licenses/. |
-- |
-- File : tbCrc-bhv-ea.vhdl |
-- Owner : Rainer Kastl |
-- Description : Testbench |
-- Links : Crc-Rtl-ea.vhdl |
-- |
|
library ieee; |
use ieee.std_logic_1164.all; |
/unitCrc/sim/tbcrc-unattended.tcl
1,3 → 1,29
# SDHC-SC-Core |
# Secure Digital High Capacity Self Configuring Core |
# |
# (C) Copyright 2010 Rainer Kastl |
# |
# This file is part of SDHC-SC-Core. |
# |
# SDHC-SC-Core is free software: you can redistribute it and/or modify it |
# under the terms of the GNU Lesser General Public License as published by |
# the Free Software Foundation, either version 3 of the License, or (at |
# your option) any later version. |
# |
# SDHC-SC-Core is distributed in the hope that it will be useful, but |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
# General Public License for more details. |
# |
# You should have received a copy of the GNU Lesser General Public License |
# along with SDHC-SC-Core. If not, see http://www.gnu.org/licenses/. |
# |
# File : tbcrc-unattended.tcl |
# Owner : Rainer Kastl |
# Description : |
# Links : |
# |
|
set script tbcrc.tcl |
|
do "../../../sim/unattended.tcl" |
/unitCrc/sim/tbcrc.tcl
1,3 → 1,29
# SDHC-SC-Core |
# Secure Digital High Capacity Self Configuring Core |
# |
# (C) Copyright 2010 Rainer Kastl |
# |
# This file is part of SDHC-SC-Core. |
# |
# SDHC-SC-Core is free software: you can redistribute it and/or modify it |
# under the terms of the GNU Lesser General Public License as published by |
# the Free Software Foundation, either version 3 of the License, or (at |
# your option) any later version. |
# |
# SDHC-SC-Core is distributed in the hope that it will be useful, but |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
# General Public License for more details. |
# |
# You should have received a copy of the GNU Lesser General Public License |
# along with SDHC-SC-Core. If not, see http://www.gnu.org/licenses/. |
# |
# File : tbcrc.tcl |
# Owner : Rainer Kastl |
# Description : |
# Links : |
# |
|
set pkgs {Crc CRCs} |
set units {Crc Crc {Rtl}} |
set tb Crc |
/unitCrc/syn/CRCsyn.tcl
1,21 → 1,29
# Copyright (C) 1991-2010 Altera Corporation |
# Your use of Altera Corporation's design tools, logic functions |
# and other software and tools, and its AMPP partner logic |
# functions, and any output files from any of the foregoing |
# (including device programming or simulation files), and any |
# associated documentation or information are expressly subject |
# to the terms and conditions of the Altera Program License |
# Subscription Agreement, Altera MegaCore Function License |
# Agreement, or other applicable license agreement, including, |
# without limitation, that your use is for the sole purpose of |
# programming logic devices manufactured by Altera and sold by |
# Altera or its authorized distributors. Please refer to the |
# applicable agreement for further details. |
|
# Quartus II: Generate Tcl File for Project |
# File: CRCsyn.tcl |
# Generated on: Wed Jun 23 17:07:05 2010 |
|
# SDHC-SC-Core |
# Secure Digital High Capacity Self Configuring Core |
# |
# (C) Copyright 2010 Rainer Kastl |
# |
# This file is part of SDHC-SC-Core. |
# |
# SDHC-SC-Core is free software: you can redistribute it and/or modify it |
# under the terms of the GNU Lesser General Public License as published by |
# the Free Software Foundation, either version 3 of the License, or (at |
# your option) any later version. |
# |
# SDHC-SC-Core is distributed in the hope that it will be useful, but |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
# General Public License for more details. |
# |
# You should have received a copy of the GNU Lesser General Public License |
# along with SDHC-SC-Core. If not, see http://www.gnu.org/licenses/. |
# |
# File : CRCsyn.tcl |
# Owner : Rainer Kastl |
# Description : Synthesis script |
# Links : Crc-Rtl-ea.vhdl |
# |
|
# Load Quartus II Tcl Project package |
package require ::quartus::project |
package require ::quartus::flow |
/pkgCRCs/src/CRCs-p.vhdl
1,3 → 1,29
-- SDHC-SC-Core |
-- Secure Digital High Capacity Self Configuring Core |
-- |
-- (C) Copyright 2010 Rainer Kastl |
-- |
-- This file is part of SDHC-SC-Core. |
-- |
-- SDHC-SC-Core is free software: you can redistribute it and/or modify it |
-- under the terms of the GNU Lesser General Public License as published by |
-- the Free Software Foundation, either version 3 of the License, or (at |
-- your option) any later version. |
-- |
-- SDHC-SC-Core is distributed in the hope that it will be useful, but |
-- WITHOUT ANY WARRANTY; without even the implied warranty of |
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
-- General Public License for more details. |
-- |
-- You should have received a copy of the GNU Lesser General Public License |
-- along with SDHC-SC-Core. If not, see http://www.gnu.org/licenses/. |
-- |
-- File : CRCs-p.vhdl |
-- Owner : Rainer Kastl |
-- Description : Package containing CRC polynoms |
-- Links : |
-- |
|
library ieee; |
use ieee.std_logic_1164.all; |
|