back.v

来自「viterbi algorithm_code_verilog」· Verilog 代码 · 共 43 行

V
43
字号
/******************************************************/   
/*   module back	                              */   
/******************************************************/   
// ---------------------------------------------------------------------------
// Purpose 	: This module is used to perform one traceback process.
// --
// File name	: back.v
// Author	: M. Zalfany Urfianto
//		  <zalfany@opencores.org>
// Last Rev.	: 18.4.2000
// 
// Modules used : -
// --
// Simulator	: ModelSim PE/Plus 4.7h
// Error	: None known yet.
// --
// Input  : state              -> the state we want to find what
//                                is its predecessor state
//          survival_data      -> ACS saved on path_memory
//                                 
// Output : out [1:0]	       -> the predecessor state
// --
// Process example :
//    state      	   =   10  (2)
//    survival_data [2]    =   1
//    out                  =   01  (1)
//  
//         <out> is coming from <state> left shifted by 1 and the LSB
//         is <survival_data [state]>
// ---------------------------------------------------------------------------

module back(state,survival_data,out);   

   input [1:0] state; 
   input [3:0] survival_data;

   output [1:0] out;

   assign out [0] = survival_data [state];
   assign out [1] = state [0];

endmodule

⌨️ 快捷键说明

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