Wednesday 9 November 2022

Communication Systems - Convolutional Code

 clear ;

close ;
clc ;
g1 = input ('Enter the input Top Adder Sequence:= ' )
g2 = input ('Enter the input Bottom Adder Sequence:= ')
m = input ('Enter the message sequence:= ')
x1 = round ( convol (g1 ,m));
x2 = round ( convol (g2 ,m));
x1 = modulo (x1 ,2);
x2 = modulo (x2 ,2);
N = length (x1);
for i =1: length (x1)
x(i ,:) =[x1(N-i +1) ,x2(N-i +1)];
end
x = string (x)
disp (x, ' x')

No comments:

Post a Comment

Verilog Code for Universal Shift Register

  Universal Shift Register module universalshift (clr,clk,sel,in,out); input clr,clk; input [1:0]sel; input [3:0]parin; output reg[3:0]out; ...