@@ -117,15 +117,15 @@ parameter NumIOAddrReg = 6;
117117 wire hps_cold_reset;
118118 wire hps_warm_reset;
119119 wire hps_debug_reset;
120- wire [27 : 0 ] stm_hw_events;
120+ // wire [27:0] stm_hw_events;
121121 wire fpga_clk_50;
122122 wire clk_75;
123123
124124// connection of internal logics
125125// assign LED[5:1] = fpga_led_internal | {7'b0000000, led_level};
126126 assign LED [5 : 1 ] = fpga_led_internal;
127127 assign fpga_clk_50= FPGA_CLK1_50 ;
128- assign stm_hw_events = {{ 15 { 1'b0 }} , SW , fpga_led_internal, fpga_debounced_buttons} ;
128+ // assign stm_hw_events = {{15{1'b0}}, SW, fpga_led_internal, fpga_debounced_buttons};
129129// hm2
130130 wire [AddrWidth- 1 : 2 ] hm_address;
131131 wire [31 : 0 ] hm_datao;
@@ -261,10 +261,6 @@ soc_system u0 (
261261 .dipsw_pio_external_connection_export ( SW ), // dipsw_pio_external_connection.export
262262 .button_pio_external_connection_export ( fpga_debounced_buttons ), // button_pio_external_connection.export
263263 .hps_0_h2f_reset_reset_n ( hps_fpga_reset_n ), // hps_0_h2f_reset.reset_n
264- .hps_0_f2h_cold_reset_req_reset_n (~ hps_cold_reset ), // hps_0_f2h_cold_reset_req.reset_n
265- .hps_0_f2h_debug_reset_req_reset_n (~ hps_debug_reset ), // hps_0_f2h_debug_reset_req.reset_n
266- .hps_0_f2h_stm_hw_events_stm_hwevents (stm_hw_events ), // hps_0_f2h_stm_hw_events.stm_hwevents
267- .hps_0_f2h_warm_reset_req_reset_n (~ hps_warm_reset ), // hps_0_f2h_warm_reset_req.reset_n
268264 // hm2reg_io_0_conduit
269265 .mk_io_hm2_datain (busdata_out), // .hm2_datain
270266 .mk_io_hm2_dataout (hm_datai), // hm2reg.hm2_dataout
@@ -284,31 +280,24 @@ top_io_modules top_io_modules_inst
284280 .reset_n (hps_fpga_reset_n) , // input reset_n_sig
285281 .button_in (KEY ) , // input [KEY_WIDTH-1:0] button_in_sig
286282 .button_out (fpga_debounced_buttons) , // output [KEY_WIDTH-1:0] button_out_sig
287- .hps_cold_reset (hps_cold_reset) , // output hps_cold_reset_sig
288- .hps_warm_reset (hps_warm_reset) , // output hps_warm_reset_sig
289- .hps_debug_reset (hps_debug_reset) , // output hps_debug_reset_sig
290283 .LED (LED [0 ]) // output LED_sig
291284);
292285
293286defparam top_io_modules_inst.KEY_WIDTH = 2 ;
294287
295288// Mesa code ------------------------------------------------------//
296289
297- // assign clklow_sig = fpga_clk_50;
298290assign clkhigh_sig = hm_clk_high;
299291assign clkmed_sig = hm_clk_med;
300292
301293
302294genvar ig;
303295generate for (ig= 0 ;ig< NumGPIO;ig= ig+ 1 ) begin : iosigloop
304- // assign io_leds_sig[ig] = hm2_leds_sig[(ig*MuxLedWidth)+:MuxLedWidth];
305296 assign io_bitsout_sig[ig] = hm2_bitsout_sig[(ig* MuxGPIOIOWidth)+ : MuxGPIOIOWidth];
306297 assign io_bitsin_sig[ig] = hm2_bitsin_sig[(ig* MuxGPIOIOWidth)+ : MuxGPIOIOWidth];
307298end
308299endgenerate
309300
310- // assign LED[7:6] = ~hm2_leds_sig[1:0];
311-
312301gpio_adr_decoder_reg gpio_adr_decoder_reg_inst
313302(
314303 .CLOCK (fpga_clk_50) , // input CLOCK_sig
@@ -331,9 +320,6 @@ gpio_adr_decoder_reg gpio_adr_decoder_reg_inst
331320 .ADC_SCK_o (ADC_SCK ), // output ADC_SCK_o_sig
332321 .ADC_SDI_o (ADC_SDI ), // output ADC_SDI_o_sig
333322 .ADC_SDO_i (ADC_SDO ), // input ADC_SDO_i_sig
334- // CAP_Sensors
335- // .sense({ARDUINO_IO[9],ARDUINO_IO[10],ARDUINO_IO[11],ARDUINO_IO[12]}),
336- // .charge(ARDUINO_IO[13]),
337323 .buttons (fpga_debounced_buttons)
338324);
339325
@@ -342,7 +328,6 @@ defparam gpio_adr_decoder_reg_inst.BusWidth = BusWidth;
342328defparam gpio_adr_decoder_reg_inst.GPIOWidth = GPIOWidth;
343329defparam gpio_adr_decoder_reg_inst.MuxGPIOIOWidth = MuxGPIOIOWidth;
344330defparam gpio_adr_decoder_reg_inst.NumIOAddrReg = NumIOAddrReg;
345- // defparam gpio_adr_decoder_reg_inst.MuxLedWidth = MuxLedWidth;
346331defparam gpio_adr_decoder_reg_inst.NumGPIO = NumGPIO;
347332defparam gpio_adr_decoder_reg_inst.Capsense = Capsense;
348333defparam gpio_adr_decoder_reg_inst.NumSense = 4 ;
@@ -359,12 +344,9 @@ HostMot3_cfg HostMot3_inst
359344 .clkmed (clkmed_sig) , // input clkmed_sig -- Processor clock --> sserialwa, twiddle
360345 .clkhigh (clkhigh_sig) , // input clkhigh_sig -- High speed clock --> most
361346 .intirq (int_sig) , // output int_sig --int => LINT, ---> PCI ?
362- // .dreq(dreq_sig) , // output dreq_sig
363- // .demandmode(demandmode_sig) , // output demandmode_sig
364347 .iobitsouttop (hm2_bitsout_sig) , // inout [IOWidth-1:0] --iobits => IOBITS,-- external I/O bits
365348 .iobitsintop (hm2_bitsin_sig) // inout [IOWidth-1:0] --iobits => IOBITS,-- external I/O bits
366349// .liobits(liobits_sig) , // inout [lIOWidth-1:0] --liobits_sig
367- // .rates(rates_sig) , // output [4:0] rates_sig
368350// .leds(hm2_leds_sig) // output [ledcount-1:0] leds_sig --leds => LEDS
369351);
370352
0 commit comments