first commit
This commit is contained in:
21
rtl/constants.sv
Normal file
21
rtl/constants.sv
Normal file
@@ -0,0 +1,21 @@
|
||||
`define EVENT_NONE 3'h0
|
||||
`define EVENT_STRIKE 3'h1
|
||||
`define EVENT_BALL 3'h2
|
||||
`define EVENT_FOUL 3'h3
|
||||
`define EVENT_HIT 3'h4
|
||||
`define EVENT_OUT 3'h5
|
||||
|
||||
`define STRIKE_NOCHANGE 2'b00
|
||||
`define STRIKE_ZERO 2'b01
|
||||
`define STRIKE_PLUSONE 2'b10
|
||||
|
||||
`define BALL_NOCHANGE 2'b00
|
||||
`define BALL_ZERO 2'b01
|
||||
`define BALL_PLUSONE 2'b10
|
||||
|
||||
`define OUT_NOCHANGE 2'b00
|
||||
`define OUT_ZERO 2'b01
|
||||
`define OUT_PLUSONE 2'b10
|
||||
|
||||
`define INNING_NOCHANGE 1'b0
|
||||
`define INNING_PLUSONE 1'b1
|
||||
Reference in New Issue
Block a user