`default_nettype none
module top (
input clk_25mhz,
// Buttons
input [6:0] btn,
// Leds
output [7:0] led,
output [27:0] gn,
output tx
);
// PIO registers and wires
reg [31:0] din; // Data sent to PIO
reg [4:0] index; // Instruction index
reg [3:0] action; // Action to be done by PIO
reg [1:0] mindex; // Machine index
reg [31:0] gpio_in; // Input pins to PIO
wire [31:0] gpio_out; // Output pins from PIO
wire [31:0] gpio_dir; // Pin directions
This file has been truncated. show original