Skip to content

Commit

Permalink
Add _t for types to comply with guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
iJustLeyxo committed Oct 28, 2023
1 parent 5803ccb commit d929986
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/marvin.sv
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module marvin(
// ===== BASIC OUT ===================================================
output [9:0] ledr, // 10 red leds 3.3V LVTTL

output pkg::seg7p [5:0] hex, // 6x8-element hex display 3.3V LVTTL
output pkg::seg7p_t [5:0] hex, // 6x8-element hex display 3.3V LVTTL

// ===== BASIC IO ====================================================
inout [35:0] gpio, // 36 pin expansion header 3.3V LVTTL
Expand All @@ -35,7 +35,7 @@ module marvin(
inout ardu_rst_, // Arduino reset 3.3V Schmitt

// ===== VGA =========================================================
output pkg::color vga_color, // 3x4 VGA color output 3.3V LVTTL
output pkg::color_t vga_color, // 3x4 VGA color output 3.3V LVTTL
output vga_hs, // VGA horizontal sync 3.3V LVTTL
output vga_vs, // VGA vertical sync 3.3V LVTTL

Expand Down
4 changes: 2 additions & 2 deletions src/pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
*/

package pkg;
typedef struct packed { logic [3:0] red, green, blue; } color;
typedef struct packed { logic a, b, c, d, e, f, g, p; } seg7p;
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;
endpackage

0 comments on commit d929986

Please sign in to comment.