OpenCores
URL https://opencores.org/ocsvn/simon_core/simon_core/trunk

Subversion Repositories simon_core

[/] [simon_core/] [codes/] [Simon_bit_serial_top_module_FPGA.v] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 aydinay
`timescale 1ns / 1ps
2
//////////////////////////////////////////////////////////////////////////////////
3
// Team: Virginia Tech Secure Embedded Systems (SES) Lab 
4
// Implementer: Ege Gulcan
5
// 
6
// Create Date:    19:14:37 11/13/2013 
7
// Design Name: 
8
// Module Name:    top_module 
9
// Project Name: 
10
// Target Devices: 
11
// Tool versions: 
12
// Description: 
13
//
14
// Dependencies: 
15
//
16
// Revision: 
17
// Revision 0.01 - File Created
18
// Additional Comments: 
19
//
20
//////////////////////////////////////////////////////////////////////////////////
21
module top_module(clk,data_in,data_rdy,cipher_out);
22
 
23
input clk,data_in;
24
input [1:0] data_rdy;
25
output cipher_out;
26
 
27
wire key;
28
wire [5:0] bit_counter;
29
wire round_counter_out;
30
 
31
/*
32
        data_rdy=0 -> Reset, Idle
33
        data_rdy=1 -> Load Plaintext
34
        data_rdy=2 -> Load Key
35
        data_rdy=3 -> Run (keep at 3 while the block cipher is running)
36
*/
37
 
38
simon_datapath_shiftreg datapath(.clk(clk), .data_in(data_in), .data_rdy(data_rdy), .key_in(key),
39
                                                                 . cipher_out(cipher_out), .round_counter(round_counter_out), .bit_counter(bit_counter));
40
 
41
simon_key_expansion_shiftreg key_exp(.clk(clk), .data_in(data_in), .data_rdy(data_rdy), .key_out(key), .bit_counter(bit_counter),
42
                                                                         .round_counter_out(round_counter_out));
43
 
44
 
45
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.