|
|
@@ -41,6 +41,7 @@ reg [9:0] cntI2c;
|
|
|
// Wires
|
|
|
//==========================================
|
|
|
wire [15:0] tempData;
|
|
|
+wire [15:0] tempDataReadbackShifted;
|
|
|
wire tempDataValid;
|
|
|
|
|
|
//==========================================
|
|
|
@@ -51,6 +52,8 @@ wire tempDataValid;
|
|
|
// Assignments
|
|
|
//==========================================
|
|
|
|
|
|
+assign tempDataReadbackShifted = tempDataReadback << 5;
|
|
|
+
|
|
|
//==========================================================================//
|
|
|
// CODING //
|
|
|
//==========================================================================//
|
|
|
@@ -102,7 +105,7 @@ end
|
|
|
SpiReadback SpiReadbackTempRead (
|
|
|
.ClkSpi_i (ClkSpi_i),
|
|
|
.Rst_i (Rst_i),
|
|
|
- .RegData_i ( {8'h00, tempDataReadback} ),
|
|
|
+ .RegData_i ( {8'h00, tempDataReadbackShifted} ),
|
|
|
//.RegData_i ( {8'h00, 16'h9999} ), //for debug
|
|
|
.FlagDirect_i (FlagDirectTempRead_i),
|
|
|
.Miso_o (MisoTemp_o)
|