Coder Social home page Coder Social logo

aes-128's Introduction

Hi there ๐Ÿ‘‹

I'm Anil Sharma, a Verification Engineer from India. Graduated from NIT SIKKIM, former Hardware Intern @IIT Bombay

๐Ÿ“ˆ My GitHub Stats

Anil's

Anil Sharma | Twitter Anil's LinkdeIN Anil's HackerRank

aes-128's People

Contributors

aneels3 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

aes-128's Issues

Internal Round

Use only one register for the internal round. The modules inside the generate block need not be replicate itself, use of these modules once, the input and output for every round should be a feedback register and perform the round operation using different approaches if possible.

enhancement needs to be done in AES_Encryption.v module.

generate
   for(i=1;i<=9;i=i+1) begin: test
 	if(i<9)
	begin
		Key k_i (.rc(i),.k_in(key_out[i-1]),.k_out(key_out[i]));
		MUX2_1 MUX_i (.A2(round_out[i-1]),.S(1'b1),.B(mux_out1[i]));
		Sub_Bytes sb_i (.A(mux_out1[i]),.B1(sb[i]));
		DFF_128 dff_i (.clk(clk),.D(sb[i]),.Q(df1[i]));
		Shift_Rows sr_i (.clk(clk),.b_in(df1[i]),.b_out(sr[i]));
		Mix_Column mc_i (.clk(clk),.c_in1(sr[i]),.c_out(mc[i]));
		mux mux_i (.a1(sr[i]),.a2(mc[i]),.s(1'b1),.b(mc_sr[i]));
		Sub_Key sk_i (.key_in(key_out[i]),.mc_sr_out(mc_sr[i]),.data_out(round_out1[i]));
		Round_reg r_i(.clk(clk),.r_in(round_out1[i]),.r_out(round_out[i]));
	end
	else
	begin
		Key k_f (.rc(i),.k_in(key_out[i-1]),.k_out(key_out[i]));
		MUX2_1 MUX_f (.A2(round_out[i-1]),.S(1'b1),.B(mux_out1[i]));
		Sub_Bytes sb_f (.A(mux_out1[i]),.B1(sb[i]));
		DFF_128 dff_f (.clk(clk),.D(sb[i]),.Q(df1[i]));
		Shift_Rows sr_f (.clk(clk),.b_in(df1[i]),.b_out(sr[i]));
		mux mux_f (.a1(sr[i]),.s(1'b0),.b(mc_sr[i]));
		Sub_Key sk_f (.key_in(key_out[i]),.mc_sr_out(mc_sr[i]),.data_out(round_out1[i]));
		Round_reg r_f (.clk(clk),.r_in(round_out1[i]),.r_out(cipher_out));
	end
end
endgenerate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.