Skip to content

Commit

Permalink
Add bus
Browse files Browse the repository at this point in the history
  • Loading branch information
iJustLeyxo committed Oct 28, 2023
1 parent d929986 commit 3a57bf7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/marvin.sv
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ module marvin(
output gsensor_sclk, // I2C / SPI serial clock 3.3V LVTTL
input [2:1] gsensor_int // GSensor interrupt pins 3.3V LVTTL
);
// ===== Variables ========
wire bus_t;

// ===== BASIC ============
assign ledr = '0;
assign hex = '0;
assign gpio = '0;
Expand Down
8 changes: 8 additions & 0 deletions src/pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,12 @@
package pkg;
typedef struct packed { logic [3:0] red, green, blue; } color_t;
typedef struct packed { logic a, b, c, d, e, f, g, p; } seg7p_t;
typedef enum {
DRAM
} sel_t;
typedef struct packed {
logic [15:0] data;
logic [15:0] address;
sel_t sel;
} bus_t;
endpackage

0 comments on commit 3a57bf7

Please sign in to comment.