forked from schuyler1007/EC311_Final_Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdead.v
More file actions
31 lines (29 loc) · 742 Bytes
/
dead.v
File metadata and controls
31 lines (29 loc) · 742 Bytes
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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 11/28/2021 10:42:23 AM
// Design Name:
// Module Name: dead
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
// 1 means player is dead, 0 means player is not dead;
// dead if bottom height<10 or >420
module dead(height, is_dead);
input [8:0] height;
output reg is_dead;
always @ (*) begin
is_dead = (height<10 | height>420)? 1'b1 : 1'b0;
end
endmodule