Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/Toriya/cmp8.v

Parent Directory Parent Directory | Revision Log Revision Log


Revision 118 - (show annotations) (download)
Wed Apr 11 04:55:06 2007 UTC (17 years ago) by chapuni
File size: 648 byte(s)
「本物の鳥屋」ついに公開です。
たぶん 2005/09 頃のものです。
もしかするとあと一度ほど、改良するかもね。
1 /**********************************************************-*-verilog-*-
2 *
3 * 8˜AˆČă‚đ’T‚ľo‚ˇComparator
4 *
5 * $Id$
6 *
7 */
8
9 module cmp8(blk,
10 matched);
11 input [0:65] blk;
12 output matched;
13
14 wire [5:0] c0, c1, c2, c3, c4, c5, c6, c7, c8, c9;
15 wire m6;
16
17 assign {c0, c1, c2, c3, c4,
18 c5, c6, c7, c8, c9} = blk[6:65];
19
20 assign m6 = (c2 == c3
21 && c3 == c4
22 && c4 == c5
23 && c5 == c6
24 && c6 == c7);
25
26 assign matched = ((c0 == c1 && c1 == c2 && m6)
27 || (c1 == c2 && m6 && c7 == c8)
28 || (m6 && c7 == c8 && c8 == c9));
29 endmodule
30
31 /*
32 * Local variables:
33 * tab-width: 4
34 * End:
35 */

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Rev URL

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26