first commit

This commit is contained in:
2025-04-06 00:11:28 -04:00
commit 6206025f5a
16 changed files with 930 additions and 0 deletions

21
rtl/constants.sv Normal file
View 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