Fix some warnings
Adds some missing cases, length specifiers.
This commit is contained in:
@@ -84,12 +84,12 @@ always_ff @(posedge clk) begin
|
|||||||
if (addr < 4'h4) begin
|
if (addr < 4'h4) begin
|
||||||
arg[8 * addr +: 8] <= data;
|
arg[8 * addr +: 8] <= data;
|
||||||
end else if (addr == 4'h4) begin
|
end else if (addr == 4'h4) begin
|
||||||
cmd <= data;
|
cmd <= data[6:0];
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (cs & addr == 4'h5 && sd_clk) begin
|
if (cs & addr == 4'h5 && sd_clk) begin
|
||||||
data_count <= data_count + 1;
|
data_count <= data_count + 9'b1;
|
||||||
end
|
end
|
||||||
|
|
||||||
if (state.macro == RXCMD) begin
|
if (state.macro == RXCMD) begin
|
||||||
@@ -183,7 +183,7 @@ always_comb begin
|
|||||||
if (state.d_bit_count == 8'h0) begin
|
if (state.d_bit_count == 8'h0) begin
|
||||||
next_state.count = state.count + 9'b1;
|
next_state.count = state.count + 9'b1;
|
||||||
end
|
end
|
||||||
next_state.d_bit_count = state.d_bit_count - 8'h1;
|
next_state.d_bit_count = state.d_bit_count - 3'h1;
|
||||||
end else begin
|
end else begin
|
||||||
next_data_flag = '1;
|
next_data_flag = '1;
|
||||||
next_state.macro = RXDCRC;
|
next_state.macro = RXDCRC;
|
||||||
@@ -199,6 +199,11 @@ always_comb begin
|
|||||||
next_state.count = '0;
|
next_state.count = '0;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
default: begin
|
||||||
|
next_state.macro = IDLE;
|
||||||
|
next_state.count = '0;
|
||||||
|
end
|
||||||
endcase
|
endcase
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -220,6 +225,8 @@ always_comb begin
|
|||||||
end
|
end
|
||||||
|
|
||||||
RXCMD:;
|
RXCMD:;
|
||||||
|
|
||||||
|
default:;
|
||||||
endcase
|
endcase
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ module super6502(
|
|||||||
input [7:0] SW,
|
input [7:0] SW,
|
||||||
output logic [7:0] LED,
|
output logic [7:0] LED,
|
||||||
|
|
||||||
inout logic [15: 0] ARDUINO_IO,
|
inout logic [15: 2] ARDUINO_IO,
|
||||||
|
|
||||||
///////// SDRAM /////////
|
///////// SDRAM /////////
|
||||||
output DRAM_CLK,
|
output DRAM_CLK,
|
||||||
|
|||||||
Reference in New Issue
Block a user