Skip to content

Commit 2526df3

Browse files
johnymil-chipflowrobtaylor
authored andcommitted
adding instance of spi peripheral
1 parent ec4d628 commit 2526df3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pyuvm_verif/verilog/spi_wrap.v

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@ module spi_wrap
4242
$dumpvars(1,spi_wrap);
4343
end
4444

45+
spi_peripheral spi_inst (
46+
.clk(clk_test),
47+
.rst(rst),
48+
.bus__addr(addr),
49+
.bus__r_stb(rstb),
50+
.bus__w_data(wdata),
51+
.bus__w_stb(wstb),
52+
.spi_pins__sck_o(sck),
53+
.spi_pins__mosi_o(mosi),
54+
.spi_pins__csn_o(csn),
55+
.bus__r_data(rdata),
56+
.spi_pins__miso_i(miso)
57+
);
58+
4559
endmodule : spi_wrap
4660
input bus__r_stb;
4761
wire bus__r_stb;

0 commit comments

Comments
 (0)