forked from ingaramop/MIPS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.v
More file actions
63 lines (55 loc) · 1.09 KB
/
Test.v
File metadata and controls
63 lines (55 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 17:54:14 10/30/2013
// Design Name:
// Module Name: Test
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module Test(
input clock,
input reset,
input [7:0] r_data,
input rx_ready,
output reg sendSignal,
output reg rd_uart,
output reg [1759:0] sendData
);
always@(posedge clock)
//begin
if (reset)
begin
rd_uart<=0;
sendSignal<=0;
sendData<=0;
end
else begin
if(rx_ready)
begin
sendData[1759:0]<={220{r_data+1'b1}}; //Replicamos la info recibida 220 veces
rd_uart<=1;
sendSignal<=1;
end
else
begin
rd_uart<=0;
sendSignal<=0;
sendData<=0;
end
// sendData [1759:0] <= {220{8'd5}};
// rd_uart <= 1'b1;
// sendSignal <= 1'b1;
end
endmodule