Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ test/logs/*
gds/**/*.gltf

.DS_Store
results.xml
results.xml

*.vcd
*.gtkw
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ compile:
compile_%:
sv2v -w build/$*.v src/$*.sv

# TODO: Get gtkwave visualizaiton
.SECONDEXPANSION:

show_%: %.vcd %.gtkw
# A .gtkw file is optional
show_%: %.vcd $$(wildcard $$*.gtkw)
gtkwave $^
5 changes: 5 additions & 0 deletions src/gpu.sv
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ module gpu #(
reg [NUM_FETCHERS-1:0] fetcher_read_ready;
reg [PROGRAM_MEM_DATA_BITS-1:0] fetcher_read_data [NUM_FETCHERS-1:0];

initial begin
$dumpfile("gpu.vcd");
$dumpvars(0, gpu);
end

// Device Control Register
dcr dcr_instance (
.clk(clk),
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async def setup(
threads: int
):
# Setup Clock
clock = Clock(dut.clk, 25, units="us")
clock = Clock(dut.clk, 10, units="ns")
cocotb.start_soon(clock.start())

# Reset
Expand Down
2 changes: 1 addition & 1 deletion test/test_matmul.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from .helpers.logger import logger

@cocotb.test()
async def test_matadd(dut):
async def test_matmul(dut):
# Program Memory
program_memory = Memory(dut=dut, addr_bits=8, data_bits=16, channels=1, name="program")
program = [
Expand Down