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

Subversion Repositories md5_pipelined

[/] [md5_pipelined/] [trunk/] [Md5CoreTestMacros.v] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 JohnLeitch
/*
2
Copyright (C) 2014 John Leitch (johnleitch@outlook.com)
3
 
4
This program is free software: you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation, either version 3 of the License, or
7
(at your option) any later version.
8
 
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
GNU General Public License for more details.
13
 
14
You should have received a copy of the GNU General Public License
15
along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
*/
17
`define Stages 65
18
 
19
`define TestCase(__number, __passed, __a, __b, __c, __d, __chunk)                           \
20
reg __passed;                                                                               \
21
always @(posedge clk)                                                                       \
22
  begin                                                                                     \
23
    if (count == __number)                                                                  \
24
      begin                                                                                 \
25
        chunk <= __chunk;                                                                   \
26
      end                                                                                   \
27
                                                                                            \
28
    if (count == __number + `Stages)                                                        \
29
      __passed <=                                                                           \
30
        a + 'h67452301 == __a &&                                                            \
31
        b + 'hefcdab89 == __b &&                                                            \
32
        c + 'h98badcfe == __c &&                                                            \
33
        d + 'h10325476 == __d;                                                              \
34
  end                                                                                       \
35
 
36
 

powered by: WebSVN 2.1.0

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