Skip to content

Commit

Permalink
axi_dmac: renamed .h files to .vh
Browse files Browse the repository at this point in the history
Vivado recognises .h files as C header files,
the expected extension for Verilog Header is .vh
This causes issues in simulating block designs  since these files
won't be exported for the simulation even if they are
part of the simulation fileset.
  • Loading branch information
ronagyl committed Jul 11, 2018
1 parent 7713738 commit e794d04
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions library/axi_dmac/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ GENERIC_DEPS += data_mover.v
GENERIC_DEPS += dest_axi_mm.v
GENERIC_DEPS += dest_axi_stream.v
GENERIC_DEPS += dest_fifo_inf.v
GENERIC_DEPS += inc_id.h
GENERIC_DEPS += inc_id.vh
GENERIC_DEPS += request_arb.v
GENERIC_DEPS += request_generator.v
GENERIC_DEPS += resp.h
GENERIC_DEPS += resp.vh
GENERIC_DEPS += response_generator.v
GENERIC_DEPS += response_handler.v
GENERIC_DEPS += splitter.v
Expand Down
2 changes: 1 addition & 1 deletion library/axi_dmac/address_generator.v
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module dmac_address_generator #(
localparam MAX_BEATS_PER_BURST = {1'b1,{BEATS_PER_BURST_WIDTH{1'b0}}};
localparam MAX_LENGTH = {BEATS_PER_BURST_WIDTH{1'b1}};

`include "inc_id.h"
`include "inc_id.vh"

assign burst = 2'b01;
assign prot = 3'b000;
Expand Down
2 changes: 1 addition & 1 deletion library/axi_dmac/axi_dmac_burst_memory.v
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ wire dest_ready;
wire [DATA_WIDTH-1:0] dest_mem_data;
wire dest_mem_data_ready;

`include "inc_id.h"
`include "inc_id.vh"

generate if (ID_WIDTH >= 3) begin
assign src_id_reduced = {src_id_reduced_msb,src_id[ID_WIDTH-3:0]};
Expand Down
4 changes: 2 additions & 2 deletions library/axi_dmac/axi_dmac_hw.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ ad_ip_files axi_dmac [list \
$ad_hdl_dir/library/common/up_axi.v \
$ad_hdl_dir/library/util_axis_fifo/util_axis_fifo.v \
$ad_hdl_dir/library/common/ad_mem.v \
inc_id.h \
resp.h \
inc_id.vh \
resp.vh \
axi_dmac_burst_memory.v \
axi_dmac_regmap.v \
axi_dmac_regmap_request.v \
Expand Down
4 changes: 2 additions & 2 deletions library/axi_dmac/axi_dmac_ip.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ adi_ip_create axi_dmac
adi_ip_files axi_dmac [list \
"$ad_hdl_dir/library/common/ad_mem.v" \
"$ad_hdl_dir/library/common/up_axi.v" \
"inc_id.h" \
"resp.h" \
"inc_id.vh" \
"resp.vh" \
"axi_dmac_burst_memory.v" \
"axi_dmac_regmap.v" \
"axi_dmac_regmap_request.v" \
Expand Down
2 changes: 1 addition & 1 deletion library/axi_dmac/data_mover.v
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module dmac_data_mover #(

localparam BEAT_COUNTER_MAX = {BEATS_PER_BURST_WIDTH{1'b1}};

`include "inc_id.h"
`include "inc_id.vh"

reg [BEATS_PER_BURST_WIDTH-1:0] last_burst_length = 'h00;
reg [BEATS_PER_BURST_WIDTH-1:0] beat_counter = 'h00;
Expand Down
2 changes: 1 addition & 1 deletion library/axi_dmac/dest_axi_stream.v
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module dmac_dest_axi_stream #(
output [1:0] response_resp
);

`include "inc_id.h"
`include "inc_id.vh"

reg data_enabled = 1'b0;
reg req_xlast_d = 1'b0;
Expand Down
2 changes: 1 addition & 1 deletion library/axi_dmac/dest_fifo_inf.v
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module dmac_dest_fifo_inf #(
output [1:0] response_resp
);

`include "inc_id.h"
`include "inc_id.vh"

reg active = 1'b0;

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion library/axi_dmac/request_arb.v
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ sync_bits #(
.out(src_request_id)
);

`include "inc_id.h"
`include "inc_id.vh"

function compare_id;
input [ID_WIDTH-1:0] a;
Expand Down
2 changes: 1 addition & 1 deletion library/axi_dmac/request_generator.v
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module dmac_request_generator #(
output eot
);

`include "inc_id.h"
`include "inc_id.vh"

/*
* Here we only need to count the number of bursts, which means we can ignore
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions library/axi_dmac/response_generator.v
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ module dmac_response_generator #(
output [1:0] resp_resp
);

`include "inc_id.h"
`include "resp.h"
`include "inc_id.vh"
`include "resp.vh"

assign resp_resp = RESP_OKAY;
assign resp_eot = eot;
Expand Down
4 changes: 2 additions & 2 deletions library/axi_dmac/response_handler.v
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ module dmac_response_handler #(
output [1:0] resp_resp
);

`include "resp.h"
`include "inc_id.h"
`include "resp.vh"
`include "inc_id.vh"

assign resp_resp = bresp;
assign resp_eot = eot;
Expand Down
4 changes: 2 additions & 2 deletions library/axi_dmac/src_axi_mm.v
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module dmac_src_mm_axi #(
input [ 1:0] m_axi_rresp
);

`include "inc_id.h"
`include "inc_id.vh"

reg [ID_WIDTH-1:0] id = 'h00;

Expand Down Expand Up @@ -170,7 +170,7 @@ always @(posedge m_axi_aclk) begin
end

/* TODO
`include "resp.h"
`include "resp.vh"
assign response_valid = 1'b0;
assign response_resp = RESP_OKAY;
Expand Down
2 changes: 1 addition & 1 deletion library/scripts/adi_ip_alt.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ proc ad_ip_addfile {pname pfile} {
add_fileset_file $pmodule VERILOG PATH $pfile
return
}
if {$ptype eq ".h"} {
if {$ptype eq ".vh"} {
add_fileset_file $pmodule VERILOG_INCLUDE PATH $pfile
return
}
Expand Down

0 comments on commit e794d04

Please sign in to comment.