?? dist_calc.v
字號:
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 09:52:58 07/30/09
// Design Name:
// Module Name: dist_calc
// Project Name:
// Target Device:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module dist_calc(InputSymbol, BranchOutput, OutputDistance);
input [1:0] InputSymbol, BranchOutput;
output [1:0] OutputDistance;
reg [1:0] OutputDistance;
wire MS, LS;
assign MS = (InputSymbol[1] ^ BranchOutput[1]);
assign LS = (InputSymbol[0] ^ BranchOutput[0]);
always @(MS or LS)
begin
OutputDistance[1] <= MS & LS;
OutputDistance[0] <= MS ^ LS;
end
endmodule
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -