manta/examples/counter/src/debug.sv

33 lines
595 B
Systemverilog
Raw Normal View History

`default_nettype none
`timescale 1ns / 1ps
2023-02-14 23:14:39 +01:00
module top_level (
2023-02-09 21:30:25 +01:00
input wire clk,
2023-02-14 23:14:39 +01:00
input wire btnc,
input wire btnu,
input wire [15:0] sw,
2023-02-09 21:30:25 +01:00
2023-02-14 23:14:39 +01:00
output logic [15:0] led,
input wire uart_txd_in,
output logic uart_rxd_out
2023-02-09 21:30:25 +01:00
);
2023-02-14 23:14:39 +01:00
// Signal Generator
logic [7:0] count;
always_ff @(posedge clk) count <= count + 1;
2023-02-14 23:14:39 +01:00
// debugger
manta manta(
.clk(clk),
.rst(btnc),
.larry(count[0]),
.curly(count[1]),
.moe(count[2]),
.shemp(count[3:0]),
.rxd(uart_txd_in),
.txd(uart_rxd_out));
endmodule
`default_nettype wire