Skip to content

Commit b0e8b40

Browse files
committed
testbenches/ip/spi_engine: cosmetic changes
Signed-off-by: Carlos Souza <[email protected]>
1 parent ffa5a57 commit b0e8b40

File tree

4 files changed

+21
-14
lines changed

4 files changed

+21
-14
lines changed

testbenches/ip/spi_engine/tests/test_lanes.sv

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ program test_lanes (
125125
// --------------------------
126126
initial begin
127127

128-
setLoggerVerbosity(ADI_VERBOSITY_LOW);
128+
setLoggerVerbosity(ADI_VERBOSITY_NONE);
129129

130130
//creating environment
131131
base_env = new("Base Environment",
@@ -202,7 +202,9 @@ program test_lanes (
202202
// SPI Engine generate transfer
203203
//---------------------------------------------------------------------------
204204
task generate_transfer_cmd(
205-
input [7:0] sync_id, input [7:0] sdi_lane_mask, input [7:0] sdo_lane_mask);
205+
input [7:0] sync_id,
206+
input [7:0] sdi_lane_mask,
207+
input [7:0] sdo_lane_mask);
206208

207209
// define spi lane mask
208210
spi_api.fifo_command(`SET_SDI_LANE_MASK(sdi_lane_mask));
@@ -331,14 +333,14 @@ program test_lanes (
331333
// Enqueue transfers to DUT
332334
for (int i = 0; i < ((`NUM_OF_TRANSFERS)*(`NUM_OF_WORDS)); i++) begin
333335
for (int j = 0; j < (`NUM_OF_SDI); j++) begin
334-
rx_data[j] = {$urandom};
336+
rx_data[j] = $urandom;
335337
sdi_read_data_store[i * (`NUM_OF_SDI) + j] = rx_data[j];
336338
end
337339

338340
spi_send(rx_data);
339341

340342
for (int j = 0; j < (`NUM_OF_SDO); j++) begin
341-
tx_data[j] = {$urandom};
343+
tx_data[j] = $urandom;
342344
tx_data_cast[j] = tx_data[j];
343345
end
344346

@@ -435,15 +437,15 @@ program test_lanes (
435437
// Generate a FIFO transaction, write SDO first
436438
for (int i = 0; i < (`NUM_OF_WORDS); i++) begin
437439
for (int j = 0, k = 0; j < (`NUM_OF_SDI); j++) begin
438-
rx_data[j] = sdi_lane_mask[j] ? {$urandom} : `SDO_IDLE_STATE; //easier to debug
440+
rx_data[j] = sdi_lane_mask[j] ? $urandom : `SDO_IDLE_STATE; //easier to debug
439441
if (sdi_lane_mask[j]) begin
440442
sdi_fifo_data_store[i * num_of_active_sdi_lanes + k] = rx_data[j];
441443
k++;
442444
end
443445
end
444446

445447
for (int j = 0; j < num_of_active_sdo_lanes; j++) begin
446-
tx_data[j] = {$urandom};
448+
tx_data[j] = $urandom;
447449
tx_data_cast[j] = tx_data[j]; //a cast is necessary for the SPI API
448450
end
449451

testbenches/ip/spi_engine/tests/test_program.sv

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ program test_program (
127127
// --------------------------
128128
initial begin
129129

130-
setLoggerVerbosity(ADI_VERBOSITY_LOW);
130+
setLoggerVerbosity(ADI_VERBOSITY_NONE);
131131

132132
//creating environment
133133
base_env = new("Base Environment",
@@ -204,7 +204,8 @@ program test_program (
204204
// SPI Engine generate transfer
205205
//---------------------------------------------------------------------------
206206
task generate_transfer_cmd(
207-
input [7:0] sync_id, input [7:0] sdo_lane_mask);
207+
input [7:0] sync_id,
208+
input [7:0] sdo_lane_mask);
208209

209210
// define spi lane mask
210211
spi_api.fifo_command(`SET_SDO_LANE_MASK(sdo_lane_mask));

testbenches/ip/spi_engine/tests/test_sleep_delay.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ program test_sleep_delay (
107107
bit [7:0] sdo_lane_mask;
108108
initial begin
109109

110-
setLoggerVerbosity(ADI_VERBOSITY_LOW);
110+
setLoggerVerbosity(ADI_VERBOSITY_NONE);
111111

112112
//creating environment
113113
base_env = new("Base Environment",

testbenches/ip/spi_engine/tests/test_slowdata.sv

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ program test_slowdata (
125125
// --------------------------
126126
initial begin
127127

128-
setLoggerVerbosity(ADI_VERBOSITY_LOW);
128+
setLoggerVerbosity(ADI_VERBOSITY_NONE);
129129

130130
//creating environment
131131
base_env = new("Base Environment",
@@ -220,7 +220,8 @@ program test_slowdata (
220220
// SPI Engine generate transfer
221221
//---------------------------------------------------------------------------
222222
task generate_init_transfer_cmd(
223-
input [7:0] sync_id, input [7:0] sdo_lane_mask);
223+
input [7:0] sync_id,
224+
input [7:0] sdo_lane_mask);
224225

225226
// configure cs
226227
if (`CS_ACTIVE_HIGH) begin
@@ -246,7 +247,8 @@ program test_slowdata (
246247
endtask
247248

248249
task generate_single_rtransfer_cmd(
249-
input [7:0] sync_id, input [7:0] sdo_lane_mask);
250+
input [7:0] sync_id,
251+
input [7:0] sdo_lane_mask);
250252
// configure cs
251253
if (`CS_ACTIVE_HIGH) begin
252254
spi_api.fifo_command(`SET_CS_INV_MASK(8'hFF));
@@ -272,7 +274,8 @@ program test_slowdata (
272274

273275

274276
task generate_double_rtransfer_cmd(
275-
input [7:0] sync_id, input [7:0] sdo_lane_mask);
277+
input [7:0] sync_id,
278+
input [7:0] sdo_lane_mask);
276279
// configure cs
277280
if (`CS_ACTIVE_HIGH) begin
278281
spi_api.fifo_command(`SET_CS_INV_MASK(8'hFF));
@@ -299,7 +302,8 @@ program test_slowdata (
299302
endtask
300303

301304
task generate_double_wtransfer_cmd(
302-
input [7:0] sync_id, input [7:0] sdo_lane_mask);
305+
input [7:0] sync_id,
306+
input [7:0] sdo_lane_mask);
303307
// configure cs
304308
if (`CS_ACTIVE_HIGH) begin
305309
spi_api.fifo_command(`SET_CS_INV_MASK(8'hFF));

0 commit comments

Comments
 (0)