⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chien-search.v

📁 这是rs(255
💻 V
📖 第 1 页 / 共 2 页
字号:
// -------------------------------------------------------------------------//Chien-Forney search circuit for Reed-Solomon decoder//Copyright (C) Tue Apr  2 17:07:16 2002//by Ming-Han Lei(hendrik@humanistic.org)////This program 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 2//of the License, or (at your option) any later version.////This program 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 Lesser General Public License for more details.////You should have received a copy of the GNU Lesser General Public License//along with this program; if not, write to the Free Software//Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.// --------------------------------------------------------------------------module rsdec_chien_scale0 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0];		y[1] = x[1];		y[2] = x[2];		y[3] = x[3];		y[4] = x[4];		y[5] = x[5];		y[6] = x[6];		y[7] = x[7];	endendmodulemodule rsdec_chien_scale1 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[7];		y[1] = x[0] ^ x[7];		y[2] = x[1] ^ x[7];		y[3] = x[2];		y[4] = x[3];		y[5] = x[4];		y[6] = x[5];		y[7] = x[6] ^ x[7];	endendmodulemodule rsdec_chien_scale2 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[6] ^ x[7];		y[1] = x[6];		y[2] = x[0] ^ x[6];		y[3] = x[1] ^ x[7];		y[4] = x[2];		y[5] = x[3];		y[6] = x[4];		y[7] = x[5] ^ x[6] ^ x[7];	endendmodulemodule rsdec_chien_scale3 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[5] ^ x[6] ^ x[7];		y[1] = x[5];		y[2] = x[5] ^ x[7];		y[3] = x[0] ^ x[6];		y[4] = x[1] ^ x[7];		y[5] = x[2];		y[6] = x[3];		y[7] = x[4] ^ x[5] ^ x[6] ^ x[7];	endendmodulemodule rsdec_chien_scale4 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[4] ^ x[5] ^ x[6] ^ x[7];		y[1] = x[4];		y[2] = x[4] ^ x[6] ^ x[7];		y[3] = x[5] ^ x[7];		y[4] = x[0] ^ x[6];		y[5] = x[1] ^ x[7];		y[6] = x[2];		y[7] = x[3] ^ x[4] ^ x[5] ^ x[6] ^ x[7];	endendmodulemodule rsdec_chien_scale5 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[3] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[1] = x[3];		y[2] = x[3] ^ x[5] ^ x[6] ^ x[7];		y[3] = x[4] ^ x[6] ^ x[7];		y[4] = x[5] ^ x[7];		y[5] = x[0] ^ x[6];		y[6] = x[1] ^ x[7];		y[7] = x[2] ^ x[3] ^ x[4] ^ x[5] ^ x[6] ^ x[7];	endendmodulemodule rsdec_chien_scale6 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[2] ^ x[3] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[1] = x[2];		y[2] = x[2] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[3] = x[3] ^ x[5] ^ x[6] ^ x[7];		y[4] = x[4] ^ x[6] ^ x[7];		y[5] = x[5] ^ x[7];		y[6] = x[0] ^ x[6];		y[7] = x[1] ^ x[2] ^ x[3] ^ x[4] ^ x[5] ^ x[6];	endendmodulemodule rsdec_chien_scale7 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[1] ^ x[2] ^ x[3] ^ x[4] ^ x[5] ^ x[6];		y[1] = x[1] ^ x[7];		y[2] = x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[6];		y[3] = x[2] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[4] = x[3] ^ x[5] ^ x[6] ^ x[7];		y[5] = x[4] ^ x[6] ^ x[7];		y[6] = x[5] ^ x[7];		y[7] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[4] ^ x[5];	endendmodulemodule rsdec_chien_scale8 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[4] ^ x[5];		y[1] = x[0] ^ x[6];		y[2] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[3] = x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[6];		y[4] = x[2] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[5] = x[3] ^ x[5] ^ x[6] ^ x[7];		y[6] = x[4] ^ x[6] ^ x[7];		y[7] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[4] ^ x[7];	endendmodulemodule rsdec_chien_scale9 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[4] ^ x[7];		y[1] = x[5] ^ x[7];		y[2] = x[1] ^ x[2] ^ x[3] ^ x[4] ^ x[6] ^ x[7];		y[3] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[4] = x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[6];		y[5] = x[2] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[6] = x[3] ^ x[5] ^ x[6] ^ x[7];		y[7] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[6];	endendmodulemodule rsdec_chien_scale10 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[6];		y[1] = x[4] ^ x[6] ^ x[7];		y[2] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[5] ^ x[6] ^ x[7];		y[3] = x[1] ^ x[2] ^ x[3] ^ x[4] ^ x[6] ^ x[7];		y[4] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[5] = x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[6];		y[6] = x[2] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[7] = x[0] ^ x[1] ^ x[2] ^ x[5] ^ x[7];	endendmodulemodule rsdec_chien_scale11 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[1] ^ x[2] ^ x[5] ^ x[7];		y[1] = x[3] ^ x[5] ^ x[6] ^ x[7];		y[2] = x[0] ^ x[1] ^ x[2] ^ x[4] ^ x[5] ^ x[6];		y[3] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[5] ^ x[6] ^ x[7];		y[4] = x[1] ^ x[2] ^ x[3] ^ x[4] ^ x[6] ^ x[7];		y[5] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[6] = x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[6];		y[7] = x[0] ^ x[1] ^ x[4] ^ x[6];	endendmodulemodule rsdec_chien_scale12 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[1] ^ x[4] ^ x[6];		y[1] = x[2] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[2] = x[0] ^ x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[3] = x[0] ^ x[1] ^ x[2] ^ x[4] ^ x[5] ^ x[6];		y[4] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[5] ^ x[6] ^ x[7];		y[5] = x[1] ^ x[2] ^ x[3] ^ x[4] ^ x[6] ^ x[7];		y[6] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[7] = x[0] ^ x[3] ^ x[5];	endendmodulemodule rsdec_chien_scale13 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[3] ^ x[5];		y[1] = x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[6];		y[2] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[6] ^ x[7];		y[3] = x[0] ^ x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[4] = x[0] ^ x[1] ^ x[2] ^ x[4] ^ x[5] ^ x[6];		y[5] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[5] ^ x[6] ^ x[7];		y[6] = x[1] ^ x[2] ^ x[3] ^ x[4] ^ x[6] ^ x[7];		y[7] = x[2] ^ x[4] ^ x[7];	endendmodulemodule rsdec_chien_scale14 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[2] ^ x[4] ^ x[7];		y[1] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[2] = x[1] ^ x[2] ^ x[3] ^ x[5] ^ x[6] ^ x[7];		y[3] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[6] ^ x[7];		y[4] = x[0] ^ x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[5] = x[0] ^ x[1] ^ x[2] ^ x[4] ^ x[5] ^ x[6];		y[6] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[5] ^ x[6] ^ x[7];		y[7] = x[1] ^ x[3] ^ x[6];	endendmodulemodule rsdec_chien_scale15 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[1] ^ x[3] ^ x[6];		y[1] = x[1] ^ x[2] ^ x[3] ^ x[4] ^ x[6] ^ x[7];		y[2] = x[0] ^ x[1] ^ x[2] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[3] = x[1] ^ x[2] ^ x[3] ^ x[5] ^ x[6] ^ x[7];		y[4] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[6] ^ x[7];		y[5] = x[0] ^ x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[6] = x[0] ^ x[1] ^ x[2] ^ x[4] ^ x[5] ^ x[6];		y[7] = x[0] ^ x[2] ^ x[5] ^ x[7];	endendmodulemodule rsdec_chien_scale16 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[2] ^ x[5] ^ x[7];		y[1] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[5] ^ x[6] ^ x[7];		y[2] = x[0] ^ x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[6];		y[3] = x[0] ^ x[1] ^ x[2] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[4] = x[1] ^ x[2] ^ x[3] ^ x[5] ^ x[6] ^ x[7];		y[5] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[6] ^ x[7];		y[6] = x[0] ^ x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[7] = x[1] ^ x[4] ^ x[6] ^ x[7];	endendmodulemodule rsdec_chien_scale17 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[1] ^ x[4] ^ x[6] ^ x[7];		y[1] = x[0] ^ x[1] ^ x[2] ^ x[4] ^ x[5] ^ x[6];		y[2] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[5];		y[3] = x[0] ^ x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[6];		y[4] = x[0] ^ x[1] ^ x[2] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[5] = x[1] ^ x[2] ^ x[3] ^ x[5] ^ x[6] ^ x[7];		y[6] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[6] ^ x[7];		y[7] = x[0] ^ x[3] ^ x[5] ^ x[6];	endendmodulemodule rsdec_chien_scale18 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[3] ^ x[5] ^ x[6];		y[1] = x[0] ^ x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[2] = x[1] ^ x[2] ^ x[3] ^ x[4];		y[3] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[5];		y[4] = x[0] ^ x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[6];		y[5] = x[0] ^ x[1] ^ x[2] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[6] = x[1] ^ x[2] ^ x[3] ^ x[5] ^ x[6] ^ x[7];		y[7] = x[2] ^ x[4] ^ x[5] ^ x[7];	endendmodulemodule rsdec_chien_scale19 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[2] ^ x[4] ^ x[5] ^ x[7];		y[1] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[6] ^ x[7];		y[2] = x[0] ^ x[1] ^ x[2] ^ x[3];		y[3] = x[1] ^ x[2] ^ x[3] ^ x[4];		y[4] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[5];		y[5] = x[0] ^ x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[6];		y[6] = x[0] ^ x[1] ^ x[2] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[7] = x[1] ^ x[3] ^ x[4] ^ x[6];	endendmodulemodule rsdec_chien_scale20 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[1] ^ x[3] ^ x[4] ^ x[6];		y[1] = x[1] ^ x[2] ^ x[3] ^ x[5] ^ x[6] ^ x[7];		y[2] = x[0] ^ x[1] ^ x[2] ^ x[7];		y[3] = x[0] ^ x[1] ^ x[2] ^ x[3];		y[4] = x[1] ^ x[2] ^ x[3] ^ x[4];		y[5] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[5];		y[6] = x[0] ^ x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[6];		y[7] = x[0] ^ x[2] ^ x[3] ^ x[5] ^ x[7];	endendmodulemodule rsdec_chien_scale21 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[2] ^ x[3] ^ x[5] ^ x[7];		y[1] = x[0] ^ x[1] ^ x[2] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[2] = x[0] ^ x[1] ^ x[6];		y[3] = x[0] ^ x[1] ^ x[2] ^ x[7];		y[4] = x[0] ^ x[1] ^ x[2] ^ x[3];		y[5] = x[1] ^ x[2] ^ x[3] ^ x[4];		y[6] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[5];		y[7] = x[1] ^ x[2] ^ x[4] ^ x[6] ^ x[7];	endendmodulemodule rsdec_chien_scale22 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[1] ^ x[2] ^ x[4] ^ x[6] ^ x[7];		y[1] = x[0] ^ x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[6];		y[2] = x[0] ^ x[5];		y[3] = x[0] ^ x[1] ^ x[6];		y[4] = x[0] ^ x[1] ^ x[2] ^ x[7];		y[5] = x[0] ^ x[1] ^ x[2] ^ x[3];		y[6] = x[1] ^ x[2] ^ x[3] ^ x[4];		y[7] = x[0] ^ x[1] ^ x[3] ^ x[5] ^ x[6] ^ x[7];	endendmodulemodule rsdec_chien_scale23 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[1] ^ x[3] ^ x[5] ^ x[6] ^ x[7];		y[1] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[5];		y[2] = x[4] ^ x[7];		y[3] = x[0] ^ x[5];		y[4] = x[0] ^ x[1] ^ x[6];		y[5] = x[0] ^ x[1] ^ x[2] ^ x[7];		y[6] = x[0] ^ x[1] ^ x[2] ^ x[3];		y[7] = x[0] ^ x[2] ^ x[4] ^ x[5] ^ x[6] ^ x[7];	endendmodulemodule rsdec_chien_scale24 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[2] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[1] = x[1] ^ x[2] ^ x[3] ^ x[4];		y[2] = x[3] ^ x[6] ^ x[7];		y[3] = x[4] ^ x[7];		y[4] = x[0] ^ x[5];		y[5] = x[0] ^ x[1] ^ x[6];		y[6] = x[0] ^ x[1] ^ x[2] ^ x[7];		y[7] = x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[6] ^ x[7];	endendmodulemodule rsdec_chien_scale25 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[1] ^ x[3] ^ x[4] ^ x[5] ^ x[6] ^ x[7];		y[1] = x[0] ^ x[1] ^ x[2] ^ x[3];		y[2] = x[2] ^ x[5] ^ x[6] ^ x[7];		y[3] = x[3] ^ x[6] ^ x[7];		y[4] = x[4] ^ x[7];		y[5] = x[0] ^ x[5];		y[6] = x[0] ^ x[1] ^ x[6];		y[7] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[5] ^ x[6];	endendmodulemodule rsdec_chien_scale26 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[2] ^ x[3] ^ x[4] ^ x[5] ^ x[6];		y[1] = x[0] ^ x[1] ^ x[2] ^ x[7];		y[2] = x[1] ^ x[4] ^ x[5] ^ x[6];		y[3] = x[2] ^ x[5] ^ x[6] ^ x[7];		y[4] = x[3] ^ x[6] ^ x[7];		y[5] = x[4] ^ x[7];		y[6] = x[0] ^ x[5];		y[7] = x[1] ^ x[2] ^ x[3] ^ x[4] ^ x[5];	endendmodulemodule rsdec_chien_scale27 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[1] ^ x[2] ^ x[3] ^ x[4] ^ x[5];		y[1] = x[0] ^ x[1] ^ x[6];		y[2] = x[0] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[3] = x[1] ^ x[4] ^ x[5] ^ x[6];		y[4] = x[2] ^ x[5] ^ x[6] ^ x[7];		y[5] = x[3] ^ x[6] ^ x[7];		y[6] = x[4] ^ x[7];		y[7] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[4];	endendmodulemodule rsdec_chien_scale28 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[4];		y[1] = x[0] ^ x[5];		y[2] = x[2] ^ x[3] ^ x[4] ^ x[6];		y[3] = x[0] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[4] = x[1] ^ x[4] ^ x[5] ^ x[6];		y[5] = x[2] ^ x[5] ^ x[6] ^ x[7];		y[6] = x[3] ^ x[6] ^ x[7];		y[7] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[7];	endendmodulemodule rsdec_chien_scale29 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[1] ^ x[2] ^ x[3] ^ x[7];		y[1] = x[4] ^ x[7];		y[2] = x[1] ^ x[2] ^ x[3] ^ x[5] ^ x[7];		y[3] = x[2] ^ x[3] ^ x[4] ^ x[6];		y[4] = x[0] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[5] = x[1] ^ x[4] ^ x[5] ^ x[6];		y[6] = x[2] ^ x[5] ^ x[6] ^ x[7];		y[7] = x[0] ^ x[1] ^ x[2] ^ x[6];	endendmodulemodule rsdec_chien_scale30 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[1] ^ x[2] ^ x[6];		y[1] = x[3] ^ x[6] ^ x[7];		y[2] = x[0] ^ x[1] ^ x[2] ^ x[4] ^ x[6] ^ x[7];		y[3] = x[1] ^ x[2] ^ x[3] ^ x[5] ^ x[7];		y[4] = x[2] ^ x[3] ^ x[4] ^ x[6];		y[5] = x[0] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[6] = x[1] ^ x[4] ^ x[5] ^ x[6];		y[7] = x[0] ^ x[1] ^ x[5] ^ x[7];	endendmodulemodule rsdec_chien_scale31 (y, x);	input [7:0] x;	output [7:0] y;	reg [7:0] y;	always @ (x)	begin		y[0] = x[0] ^ x[1] ^ x[5] ^ x[7];		y[1] = x[2] ^ x[5] ^ x[6] ^ x[7];		y[2] = x[0] ^ x[1] ^ x[3] ^ x[5] ^ x[6];		y[3] = x[0] ^ x[1] ^ x[2] ^ x[4] ^ x[6] ^ x[7];		y[4] = x[1] ^ x[2] ^ x[3] ^ x[5] ^ x[7];		y[5] = x[2] ^ x[3] ^ x[4] ^ x[6];		y[6] = x[0] ^ x[3] ^ x[4] ^ x[5] ^ x[7];		y[7] = x[0] ^ x[4] ^ x[6] ^ x[7];	endendmodulemodule rsdec_chien (error, alpha, lambda, omega, even, D, search, load, shorten, clk, clrn);	input clk, clrn, load, search, shorten;	input [7:0] D;	input [7:0] lambda;	input [7:0] omega;	output [7:0] even, error;	output [7:0] alpha;	reg [7:0] even, error;	reg [7:0] alpha;	wire [7:0] scale0;	wire [7:0] scale1;	wire [7:0] scale2;	wire [7:0] scale3;	wire [7:0] scale4;	wire [7:0] scale5;	wire [7:0] scale6;	wire [7:0] scale7;	wire [7:0] scale8;	wire [7:0] scale9;	wire [7:0] scale10;	wire [7:0] scale11;	wire [7:0] scale12;	wire [7:0] scale13;	wire [7:0] scale14;	wire [7:0] scale15;	wire [7:0] scale16;	wire [7:0] scale17;	wire [7:0] scale18;	wire [7:0] scale19;	wire [7:0] scale20;	wire [7:0] scale21;	wire [7:0] scale22;	wire [7:0] scale23;	wire [7:0] scale24;	wire [7:0] scale25;	wire [7:0] scale26;	wire [7:0] scale27;	wire [7:0] scale28;	wire [7:0] scale29;	wire [7:0] scale30;	wire [7:0] scale31;	wire [7:0] scale32;	wire [7:0] scale33;	wire [7:0] scale34;	wire [7:0] scale35;	wire [7:0] scale36;	wire [7:0] scale37;	wire [7:0] scale38;	wire [7:0] scale39;	wire [7:0] scale40;	wire [7:0] scale41;	wire [7:0] scale42;	wire [7:0] scale43;	wire [7:0] scale44;	wire [7:0] scale45;	wire [7:0] scale46;	wire [7:0] scale47;	wire [7:0] scale48;	wire [7:0] scale49;	wire [7:0] scale50;	wire [7:0] scale51;	wire [7:0] scale52;	wire [7:0] scale53;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -