Explorar o código

Удалён код для дебага в top-модуле. Обновлён скрипт.

Anatoliy Chigirinskiy hai 1 ano
pai
achega
db80a24d3e
Modificáronse 2 ficheiros con 1 adicións e 15 borrados
  1. 1 1
      script/recreate.tcl
  2. 0 14
      src/src/Top/TopSbTmsg.v

+ 1 - 1
script/recreate.tcl

@@ -1,5 +1,5 @@
 set DSN_ROOT [file normalize [file join [file dirname [info script]] "."]]
-create_project -name SB_TMSG44V1_FPGA -dir $::DSN_ROOT/SB_TMSG44V1_FPGA_PROJ -pn GW1N-LV9PG256C6/I5 -device_version C -force 
+create_project -name SB_TMSG44V1_FPGA -dir $::DSN_ROOT/SB_TMSG44V1_FPGA_PROJ -pn GW1N-LV9PG256C6/I5 -device_version NA -force 
 
 add_file -type cst "$::DSN_ROOT/SB_TMSG44V1_FPGA/src/constr/SbTmsg.cst"
 add_file -type sdc "$::DSN_ROOT/SB_TMSG44V1_FPGA/src/constr/SbTmsg.sdc"

+ 0 - 14
src/src/Top/TopSbTmsg.v

@@ -180,8 +180,6 @@ module TopSbTmsg
 	wire maxMosiSpiM;
 
 	reg misoReg;
-	
-	reg [15:0] cntDebug;
 
 //================================================================================
 //  ASSIGNMENTS
@@ -217,18 +215,6 @@ assign AnyFlag_o = anyFlag;//Debug-only
 
 //================================================================================
 //  CODING
-
-//-----------------DEBUG_BEGIN-------------------
-always @(posedge gclk100) begin
-	if (Rst_i) begin
-		cntDebug <= 0;
-	end
-	else if (spiDataVal) begin
-		cntDebug <= cntDebug + 1;
-	end
-end
-//-----------------DEBUG_END---------------------
-
 always @(*) begin 
 	if (Rst_i) begin 
 		misoReg = 1'b0;