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