Skip to content

Commit

Permalink
verified wishbone in UVM
Browse files Browse the repository at this point in the history
  • Loading branch information
NouranAbdelaziz committed Apr 17, 2024
1 parent 7ee5391 commit 5701332
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion verify/uvm-python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TOPLEVEL := top
MODULE ?= top_module
AHB_FILES ?= $(PWD)/../../hdl/rtl/bus_wrappers/EF_TMR32_AHBL.pp.v
APB_FILES ?= $(PWD)/../../hdl/rtl/bus_wrappers/EF_TMR32_APB.pp.v
WB_FILES ?= ""
WB_FILES ?= $(PWD)/../../hdl/rtl/bus_wrappers/EF_TMR32_WB.pp.v
HDL_FILES ?= $(PWD)/../../hdl/rtl/EF_TMR32.pp.v
VERILOG_SOURCES ?= $(PWD)/top.v $(AHB_FILES) $(APB_FILES) $(WB_FILES) $(HDL_FILES)
RTL_MACROS += ""
Expand Down
10 changes: 10 additions & 0 deletions verify/uvm-python/top.v
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ module top();
wire HREADY;
EF_TMR32_AHBL uut(.pwm0(pwm0), .pwm1(pwm1), .pwm_fault(pwm_fault), .HCLK(CLK), .HRESETn(RESETn), .HADDR(HADDR), .HWRITE(HWRITE), .HSEL(HSEL), .HTRANS(HTRANS), .HWDATA(HWDATA), .HRDATA(HRDATA), .HREADY(HREADY),.HREADYOUT(HREADYOUT), .IRQ(irq));
`endif // BUS_TYPE_AHB
`ifdef BUS_TYPE_WISHBONE
wire [31:0] adr_i;
wire [31:0] dat_i;
wire [31:0] dat_o;
wire [3:0] sel_i;
wire cyc_i;
wire stb_i;
reg ack_o;
EF_TMR32_WB uut(.pwm0(pwm0), .pwm1(pwm1), .pwm_fault(pwm_fault), .clk_i(CLK), .rst_i(~RESETn), .adr_i(adr_i), .dat_i(dat_i), .dat_o(dat_o), .sel_i(sel_i), .cyc_i(cyc_i), .stb_i(stb_i), .ack_o(ack_o),.we_i(we_i), .IRQ(irq));
`endif // BUS_TYPE_WISHBONE
`ifndef SKIP_WAVE_DUMP
initial begin
$dumpfile("waves.vcd");
Expand Down

0 comments on commit 5701332

Please sign in to comment.