1
0
mirror of https://github.com/olofk/serv.git synced 2026-05-05 23:56:09 +00:00

Add explicit wire defs to ports

This commit is contained in:
Olof Kindgren
2018-11-17 21:30:03 +01:00
parent 0036756157
commit f66f82a57a
16 changed files with 251 additions and 248 deletions

View File

@@ -1,19 +1,20 @@
`default_nettype none
module testhalt
(
input i_wb_clk,
input [31:0] i_wb_dat,
input i_wb_we,
input i_wb_cyc,
input i_wb_stb,
output reg o_wb_ack = 1'b0);
input wire i_wb_clk,
input wire [31:0] i_wb_dat,
input wire i_wb_we,
input wire i_wb_cyc,
input wire i_wb_stb,
output reg o_wb_ack = 1'b0);
always @(posedge i_wb_clk) begin
`ifndef SYNTHESIS
if (i_wb_cyc & i_wb_stb) begin
$display("Test complete");
$finish;
end
`endif
if (i_wb_cyc & i_wb_stb & !o_wb_ack)
o_wb_ack <= 1'b1;
end