Skip to content
Snippets Groups Projects
Commit 55201929 authored by Edgar E. Iglesias's avatar Edgar E. Iglesias Committed by Florian Zaruba
Browse files

ariane-soc: Enable the mock-uart on Verilator

parent 9e9f7cc4
Branches
Tags
No related merge requests found
...@@ -371,6 +371,7 @@ verilate_command := $(verilator) ...@@ -371,6 +371,7 @@ verilate_command := $(verilator)
$(filter-out src/fpu_wrap.sv, $(filter-out %.vhd, $(src))) \ $(filter-out src/fpu_wrap.sv, $(filter-out %.vhd, $(src))) \
+define+$(defines) \ +define+$(defines) \
src/util/sram.sv \ src/util/sram.sv \
tb/common/mock_uart.sv \
+incdir+src/axi_node \ +incdir+src/axi_node \
$(if $(verilator_threads), --threads $(verilator_threads)) \ $(if $(verilator_threads), --threads $(verilator_threads)) \
--unroll-count 256 \ --unroll-count 256 \
......
...@@ -282,7 +282,6 @@ module ariane_peripherals #( ...@@ -282,7 +282,6 @@ module ariane_peripherals #(
end else begin end else begin
assign irq_sources[0] = 1'b0; assign irq_sources[0] = 1'b0;
/* pragma translate_off */ /* pragma translate_off */
`ifndef VERILATOR
mock_uart i_mock_uart ( mock_uart i_mock_uart (
.clk_i ( clk_i ), .clk_i ( clk_i ),
.rst_ni ( rst_ni ), .rst_ni ( rst_ni ),
...@@ -295,7 +294,6 @@ module ariane_peripherals #( ...@@ -295,7 +294,6 @@ module ariane_peripherals #(
.pready_o ( uart_pready ), .pready_o ( uart_pready ),
.pslverr_o ( uart_pslverr ) .pslverr_o ( uart_pslverr )
); );
`endif
/* pragma translate_on */ /* pragma translate_on */
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment