mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Fixed lint issues with SDC.
This commit is contained in:
parent
12eeda900b
commit
dd81076671
@ -208,15 +208,23 @@ module SDC
|
|||||||
end
|
end
|
||||||
|
|
||||||
assign SDCReadDataPreNibbleSwap = ReadData512ByteWords[WordCount];
|
assign SDCReadDataPreNibbleSwap = ReadData512ByteWords[WordCount];
|
||||||
assign SDCReadData = {SDCReadDataPreNibbleSwap[59:56], SDCReadDataPreNibbleSwap[63:60],
|
generate
|
||||||
SDCReadDataPreNibbleSwap[51:48], SDCReadDataPreNibbleSwap[55:52],
|
if(`XLEN == 64) begin
|
||||||
SDCReadDataPreNibbleSwap[43:40], SDCReadDataPreNibbleSwap[47:44],
|
assign SDCReadData = {SDCReadDataPreNibbleSwap[59:56], SDCReadDataPreNibbleSwap[63:60],
|
||||||
SDCReadDataPreNibbleSwap[35:32], SDCReadDataPreNibbleSwap[39:36],
|
SDCReadDataPreNibbleSwap[51:48], SDCReadDataPreNibbleSwap[55:52],
|
||||||
SDCReadDataPreNibbleSwap[27:24], SDCReadDataPreNibbleSwap[31:28],
|
SDCReadDataPreNibbleSwap[43:40], SDCReadDataPreNibbleSwap[47:44],
|
||||||
SDCReadDataPreNibbleSwap[19:16], SDCReadDataPreNibbleSwap[23:20],
|
SDCReadDataPreNibbleSwap[35:32], SDCReadDataPreNibbleSwap[39:36],
|
||||||
SDCReadDataPreNibbleSwap[11:8], SDCReadDataPreNibbleSwap[15:12],
|
SDCReadDataPreNibbleSwap[27:24], SDCReadDataPreNibbleSwap[31:28],
|
||||||
SDCReadDataPreNibbleSwap[3:0], SDCReadDataPreNibbleSwap[7:4]};
|
SDCReadDataPreNibbleSwap[19:16], SDCReadDataPreNibbleSwap[23:20],
|
||||||
|
SDCReadDataPreNibbleSwap[11:8], SDCReadDataPreNibbleSwap[15:12],
|
||||||
|
SDCReadDataPreNibbleSwap[3:0], SDCReadDataPreNibbleSwap[7:4]};
|
||||||
|
end else begin
|
||||||
|
assign SDCReadData = {SDCReadDataPreNibbleSwap[27:24], SDCReadDataPreNibbleSwap[31:28],
|
||||||
|
SDCReadDataPreNibbleSwap[19:16], SDCReadDataPreNibbleSwap[23:20],
|
||||||
|
SDCReadDataPreNibbleSwap[11:8], SDCReadDataPreNibbleSwap[15:12],
|
||||||
|
SDCReadDataPreNibbleSwap[3:0], SDCReadDataPreNibbleSwap[7:4]};
|
||||||
|
end
|
||||||
|
endgenerate
|
||||||
|
|
||||||
flopenr #($clog2(4096/`XLEN)) WordCountReg
|
flopenr #($clog2(4096/`XLEN)) WordCountReg
|
||||||
(.clk(HCLK),
|
(.clk(HCLK),
|
||||||
|
@ -271,7 +271,7 @@ module sd_cmd_fsm
|
|||||||
|
|
||||||
assign o_ERROR_CODE_Q = r_ERROR_CODE_Q;
|
assign o_ERROR_CODE_Q = r_ERROR_CODE_Q;
|
||||||
assign COUNTER_OUT_GT_ZERO = i_COUNTER_OUT > 0;
|
assign COUNTER_OUT_GT_ZERO = i_COUNTER_OUT > 0;
|
||||||
assign COUNTER_OUT_GE_ZERO = i_COUNTER_OUT >= 0;
|
assign COUNTER_OUT_GE_ZERO = $signed(i_COUNTER_OUT) >= $signed(8'b0);
|
||||||
assign COUNTER_OUT_GT_8 = i_COUNTER_OUT > 8;
|
assign COUNTER_OUT_GT_8 = i_COUNTER_OUT > 8;
|
||||||
assign COUNTER_OUT_EQ_8 = i_COUNTER_OUT == 8;
|
assign COUNTER_OUT_EQ_8 = i_COUNTER_OUT == 8;
|
||||||
assign COUNTER_OUT_EQ_ZERO = i_COUNTER_OUT == 0;
|
assign COUNTER_OUT_EQ_ZERO = i_COUNTER_OUT == 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user