Skip to content

Commit

Permalink
Fixes required for Vivado 2017.4.
Browse files Browse the repository at this point in the history
Applied pull aolofsson#104
aolofsson#104

Signed-off-by: Ola Jeppsson <[email protected]>
  • Loading branch information
hewittc authored and olajep committed Mar 26, 2019
1 parent d1e8acc commit 6428b95
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion common/hdl/oh_abs.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module oh_abs (/*AUTOARG*/);
module oh_abs (/*AUTOARG*/
a,
out,
overflow
);

//###############################################################
//# Parameters
Expand Down
1 change: 1 addition & 0 deletions common/hdl/oh_counter.v
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module oh_counter (/*AUTOARG*/
//# Interface
//###############################################################
reg [DW-1:0] count;
wire [DW-1:0] count_in;

always @(posedge clk)
if(load)
Expand Down
5 changes: 4 additions & 1 deletion common/hdl/oh_hamming_encoder.v
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ module oh_hamming_enc (/*AUTOARG*/
in, reset
);


output out;

input in;
input reset;
endmodule // oh_hamming_enc


2 changes: 1 addition & 1 deletion common/hdl/oh_mux.v
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module oh_mux (/*AUTOARG*/
begin
out[DW-1:0] = 'b0;
for(i=0;i<N;i=i+1)
out[DW-1:0] |= {(DW){sel[i]}} & in[((i+1)*DW-1)-:DW];
out[DW-1:0] = out[DW-1:0] | {(DW){sel[i]}} & in[((i+1)*DW-1)-:DW];
end

endmodule // oh_mux
Expand Down

0 comments on commit 6428b95

Please sign in to comment.