Skip to content

Commit 691962d

Browse files
committedDec 31, 2016
tests: Fixed incorrect truth table in Luts HiL test. Fixed incorrect LUT truth table in GP_2LUT example code
1 parent 784bf6b commit 691962d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎doc/gp4-hdl.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ \subsubsection{Verilog Usage Example}
986986
wire b;
987987
wire o;
988988
GP_2LUT #(
989-
.INIT(4'h4)
989+
.INIT(4'h8)
990990
) lut(
991991
.IN0(a),
992992
.IN1(b),

‎tests/greenpak4/slg46620v/Luts.v

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module Luts(din, dout_instantiated, dout_inferred);
4343

4444
GP_INV inv_inst (
4545
.IN(din[0]), .OUT(dout_instantiated[0]));
46-
GP_2LUT #(.INIT(4'hB)) lut2_inst (
46+
GP_2LUT #(.INIT(4'h7)) lut2_inst (
4747
.IN0(din[0]), .IN1(din[1]), .OUT(dout_instantiated[1]));
4848
GP_3LUT #(.INIT(8'h7F)) lut3_inst (
4949
.IN0(din[0]), .IN1(din[1]), .IN2(din[2]), .OUT(dout_instantiated[2]));

0 commit comments

Comments
 (0)