Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed errors reported by quartus for successful build #4

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Source-7400/7400-tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ begin
BInputs = {BLOCKS{1'b1}};
A = {BInputs, AInputs};
#4
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b0, "Test 1");
#0
// all zeroes -> 1, enough time for output to rise
AInputs = {BLOCKS{1'b0}};
BInputs = {BLOCKS{1'b0}};
A = {BInputs, AInputs};
#6
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b1, "Test 2");
#0
// only a single bit causes -> 1
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/7400.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ integer i;
always @(*)
begin
computed = {BLOCKS{1'b1}};
for (i = 0; i < WIDTH_IN; i++)
for (i = 0; i < WIDTH_IN; i=i+1)
computed = computed & A[i];
computed = ~computed;
end
Expand Down
4 changes: 2 additions & 2 deletions Source-7400/7402-tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ begin
BInputs = {BLOCKS{1'b1}};
A = {BInputs, AInputs};
#4
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b0, "Test 1");
#0
// all zeroes -> 1, enough time for output to rise
AInputs = {BLOCKS{1'b0}};
BInputs = {BLOCKS{1'b0}};
A = {BInputs, AInputs};
#6
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b1, "Test 2");
#0
// only a single bit causes -> 0
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/7402.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ integer i;
always @(*)
begin
computed = {BLOCKS{1'b0}};
for (i = 0; i < WIDTH_IN; i++)
for (i = 0; i < WIDTH_IN; i=i+1)
computed = computed | A[i];
computed = ~computed;
end
Expand Down
8 changes: 4 additions & 4 deletions Source-7400/7404-tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ begin
$dumpvars;

// all ones -> 0
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
A[i] = 1'b1;
#5
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b0, "Test 1");
#0
// single bit change to zero causes -> 1, others unchanged
Expand All @@ -50,10 +50,10 @@ begin
tbassert(Y[6] == 1'b1, "Test 3");
#0
// all zeroes -> 1
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
A[i] = 1'b0;
#5
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b1, "Test 4");
#0
// single bit change to one causes -> 0, others unchanged
Expand Down
8 changes: 4 additions & 4 deletions Source-7400/7407-tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ begin
$dumpvars;

// all zeroes -> 0
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
A[i] = 1'b0;
#5
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b0, "Test 1");
#0
// single bit change to one causes -> 1, others unchanged
Expand All @@ -50,10 +50,10 @@ begin
tbassert(Y[6] == 1'b1, "Test 3");
#0
// all ones -> 1
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
A[i] = 1'b1;
#5
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b1, "Test 4");
#0
// single bit change to zero causes -> 0, others unchanged
Expand Down
4 changes: 2 additions & 2 deletions Source-7400/7408-tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ begin
BInputs = {BLOCKS{1'b0}};
A = {BInputs, AInputs};
#4
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b0, "Test 1");
#0
// all ones -> 1, enough time for output to rise
AInputs = {BLOCKS{1'b1}};
BInputs = {BLOCKS{1'b1}};
A = {BInputs, AInputs};
#6
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b1, "Test 2");
#0
// only a single bit causes -> 0
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/7408.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ integer i;
always @(*)
begin
computed = {BLOCKS{1'b1}};
for (i = 0; i < WIDTH_IN; i++)
for (i = 0; i < WIDTH_IN; i=i+1)
computed = computed & A[i];
end
//------------------------------------------------//
Expand Down
4 changes: 2 additions & 2 deletions Source-7400/7410-tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ begin
CInputs = AInputs;
A = {CInputs, BInputs, AInputs};
#10
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b0, "Test 1");
#0
// all zeroes -> 1
Expand All @@ -44,7 +44,7 @@ begin
CInputs = AInputs;
A = {CInputs, BInputs, AInputs};
#10
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b1, "Test 2");
#0
// only a single bit causes -> 1
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/7410.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ integer i;
always @(*)
begin
computed = {BLOCKS{1'b1}};
for (i = 0; i < WIDTH_IN; i++)
for (i = 0; i < WIDTH_IN; i=i+1)
computed = computed & A[i];
computed = ~computed;
end
Expand Down
4 changes: 2 additions & 2 deletions Source-7400/7411-tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ begin
CInputs = AInputs;
A = {CInputs, BInputs, AInputs};
#10
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b0, "Test 1");
#0
// all ones -> 1
Expand All @@ -44,7 +44,7 @@ begin
CInputs = AInputs;
A = {CInputs, BInputs, AInputs};
#10
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b1, "Test 2");
#0
// only a single bit causes -> 0
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/7411.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ integer i;
always @(*)
begin
computed = {BLOCKS{1'b1}};
for (i = 0; i < WIDTH_IN; i++)
for (i = 0; i < WIDTH_IN; i=i+1)
computed = computed & A[i];
end
//------------------------------------------------//
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/74138.v
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ integer i;

always @(*)
begin
for (i = 0; i < WIDTH_OUT; i++)
for (i = 0; i < WIDTH_OUT; i=i+1)
begin
if (!Enable1_bar && !Enable2_bar && Enable3 && i == A)
computed[i] = 1'b0;
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/74139.v
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ integer j;

always @(*)
begin
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
begin
for (j = 0; j < WIDTH_OUT; j++)
begin
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/74153.v
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ integer i;

always @(*)
begin
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
begin
if (!Enable_bar[i])
computed[i] = A[i][Select];
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/74154.v
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ integer i;

always @(*)
begin
for (i = 0; i < WIDTH_OUT; i++)
for (i = 0; i < WIDTH_OUT; i=i+1)
begin
if (!Enable1_bar && !Enable2_bar && i == A)
computed[i] = 1'b0;
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/74155.v
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ integer i;

always @(*)
begin
for (i = 0; i < WIDTH_OUT; i++)
for (i = 0; i < WIDTH_OUT; i=i+1)
begin
if (Enable1C && !Enable1G_bar && i == A)
computed[BLOCK0][i] = 1'b0;
Expand Down
6 changes: 3 additions & 3 deletions Source-7400/74160-tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ begin

D_next = 4'b1001; // initial value to start the loop

for (i = 1; i <= 6; i++)
for (i = 1; i <= 6; i=i+1)
begin
Q_expected = D_next;
D_next = (Q_expected + 1) ^ 5; // use a random value for next input
Expand Down Expand Up @@ -521,7 +521,7 @@ begin
// repeat tests: load values above BCD 9 -> outputs go back on track to within the
// BCD decade count range at the next clock edge

for (i = 10; i <= 15; i++)
for (i = 10; i <= 15; i=i+1)
begin
parallel_load_and_tick(i);
#20
Expand All @@ -542,7 +542,7 @@ begin
ENT = 1'b1;
ENP = 1'b0;

for (i = 10; i <= 15; i++)
for (i = 10; i <= 15; i=i+1)
begin
parallel_load_and_tick(i);
#20
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/74161-tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ begin

D_next = 3'b111; // initial value to start the loop

for (i = 1; i <= 6; i++)
for (i = 1; i <= 6; i=i+1)
begin
Q_expected = D_next;
D_next = (Q_expected + 2) ^ 5; // use a random value for next input
Expand Down
6 changes: 3 additions & 3 deletions Source-7400/74162-tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ begin

D_next = 4'b1001; // initial value to start the loop

for (i = 1; i <= 6; i++)
for (i = 1; i <= 6; i=i+1)
begin
Q_expected = D_next;
D_next = (Q_expected + 1) ^ 5; // use a random value for next input
Expand Down Expand Up @@ -479,7 +479,7 @@ begin
// repeat tests: load values above BCD 9 -> outputs go back on track to within the
// BCD decade count range at the next clock edge

for (i = 10; i <= 15; i++)
for (i = 10; i <= 15; i=i+1)
begin
parallel_load_and_tick(i);
#20
Expand All @@ -500,7 +500,7 @@ begin
ENT = 1'b1;
ENP = 1'b0;

for (i = 10; i <= 15; i++)
for (i = 10; i <= 15; i=i+1)
begin
parallel_load_and_tick(i);
#20
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/74163-tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ begin

D_next = 3'b111; // initial value to start the loop

for (i = 1; i <= 6; i++)
for (i = 1; i <= 6; i=i+1)
begin
Q_expected = D_next;
D_next = (Q_expected + 2) ^ 5; // use a random value for next input
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/7420.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ integer i;
always @(*)
begin
computed = {BLOCKS{1'b1}};
for (i = 0; i < WIDTH_IN; i++)
for (i = 0; i < WIDTH_IN; i=i+1)
computed = computed & A[i];
computed = ~computed;
end
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/7421.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ integer i;
always @(*)
begin
computed = {BLOCKS{1'b1}};
for (i = 0; i < WIDTH_IN; i++)
for (i = 0; i < WIDTH_IN; i=i+1)
computed = computed & A[i];
end
//------------------------------------------------//
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/74238.v
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ integer i;

always @(*)
begin
for (i = 0; i < WIDTH_OUT; i++)
for (i = 0; i < WIDTH_OUT; i=i+1)
begin
if (!Enable1_bar && !Enable2_bar && Enable3 && i == A)
computed[i] = 1'b1;
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/74260.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ integer i;
always @(*)
begin
computed = {BLOCKS{1'b0}};
for (i = 0; i < WIDTH_IN; i++)
for (i = 0; i < WIDTH_IN; i=i+1)
computed = computed | A[i];
computed = ~computed;
end
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/74266.v
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ begin
// - follows the precedent of 3-input XOR gate 741G386
// - conforms to chaining of XNOR to create arbitrary wider input, e.g. "(A XNOR B) XNOR C"
computed = {BLOCKS{1'b0}};
for (i = 0; i < WIDTH_IN; i++)
for (i = 0; i < WIDTH_IN; i=i+1)
computed = computed ^ A[i];
computed = ~computed;
end
Expand Down
4 changes: 2 additions & 2 deletions Source-7400/7427-tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ begin
CInputs = AInputs;
A = {CInputs, BInputs, AInputs};
#10
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b0, "Test 1");
#0
// all zeroes -> 1
Expand All @@ -44,7 +44,7 @@ begin
CInputs = AInputs;
A = {CInputs, BInputs, AInputs};
#10
for (i = 0; i < BLOCKS; i++)
for (i = 0; i < BLOCKS; i=i+1)
tbassert(Y[i] == 1'b1, "Test 2");
#0
// only a single bit causes -> 0
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/7427.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ integer i;
always @(*)
begin
computed = {BLOCKS{1'b0}};
for (i = 0; i < WIDTH_IN; i++)
for (i = 0; i < WIDTH_IN; i=i+1)
computed = computed | A[i];
computed = ~computed;
end
Expand Down
2 changes: 1 addition & 1 deletion Source-7400/74273-tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ begin

D_next = 3'b000; // initial value to start the loop

for (i = 1; i <= 3; i++)
for (i = 1; i <= 3; i=i+1)
begin
Q_expected = D_next;

Expand Down
2 changes: 1 addition & 1 deletion Source-7400/74283-tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ begin

// repeat tests: "C_in" is clear then set

for (i = 1; i <= 2; i++)
for (i = 1; i <= 2; i=i+1)
begin
case (i)
1:
Expand Down
Loading