File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Labs/13. Peripheral units/peripheral modules Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ module PS2Receiver(
26
26
input logic rst_i,
27
27
input logic kclk_i,
28
28
input logic kdata_i,
29
- output logic [7 : 0 ] keycodeout_o ,
29
+ output logic [7 : 0 ] keycode_o ,
30
30
output keycode_valid_o
31
31
);
32
32
67
67
68
68
always_ff @ (negedge kclkf or posedge rst_i) begin
69
69
if (rst_i) begin
70
- keycodeout_o <= '0 ;
70
+ keycode_o <= '0 ;
71
71
end
72
72
else begin
73
73
case (cnt)
74
- 1 : keycodeout_o [0 ]<= kdataf;
75
- 2 : keycodeout_o [1 ]<= kdataf;
76
- 3 : keycodeout_o [2 ]<= kdataf;
77
- 4 : keycodeout_o [3 ]<= kdataf;
78
- 5 : keycodeout_o [4 ]<= kdataf;
79
- 6 : keycodeout_o [5 ]<= kdataf;
80
- 7 : keycodeout_o [6 ]<= kdataf;
81
- 8 : keycodeout_o [7 ]<= kdataf;
82
- default : keycodeout_o <= keycodeout_o ;
74
+ 1 : keycode_o [0 ]<= kdataf;
75
+ 2 : keycode_o [1 ]<= kdataf;
76
+ 3 : keycode_o [2 ]<= kdataf;
77
+ 4 : keycode_o [3 ]<= kdataf;
78
+ 5 : keycode_o [4 ]<= kdataf;
79
+ 6 : keycode_o [5 ]<= kdataf;
80
+ 7 : keycode_o [6 ]<= kdataf;
81
+ 8 : keycode_o [7 ]<= kdataf;
82
+ default : keycode_o <= keycode_o ;
83
83
endcase
84
84
end
85
85
end
You can’t perform that action at this time.
0 commit comments