make style
This commit is contained in:
1 parent
e3ec14f437
commit
648cbf159c
8 files changed
+37
-31
No files matched your search
@@ -28,23 +28,23 @@ module fpga_hf(
|
||||
//input pck0,
|
||||
input ncs,
|
||||
input [7:0] adc_d,
|
||||
//input cross_hi,
|
||||
//input cross_hi,
|
||||
//input cross_lo,
|
||||
input mosi,
|
||||
input ssp_dout,
|
||||
input ce, // 复位输入,常态高
|
||||
|
||||
|
||||
output ssp_din,
|
||||
output ssp_frame,
|
||||
output ssp_clk,
|
||||
output adc_clk,
|
||||
output adc_clk,
|
||||
//output adc_noe,
|
||||
output miso,
|
||||
output pwr_lo,
|
||||
output pwr_lo,
|
||||
output pwr_hi,
|
||||
output pwr_oe1,
|
||||
output pwr_oe2,
|
||||
//output pwr_oe3,
|
||||
output pwr_oe1,
|
||||
output pwr_oe2,
|
||||
//output pwr_oe3,
|
||||
output pwr_oe4,
|
||||
output dbg,
|
||||
output reg [11:0] pwm_duty = 12'h800
|
||||
|
||||
@@ -26,7 +26,7 @@ module fpga_top (
|
||||
input spi_mosi,
|
||||
input ssp_dout,
|
||||
input module_sel, // module select: 1 = HF, 0 = LF
|
||||
|
||||
|
||||
output ssp_din,
|
||||
output ssp_frame,
|
||||
output ssp_clk,
|
||||
@@ -46,7 +46,7 @@ module fpga_top (
|
||||
output pan_en, // analog supply enable
|
||||
output pdp_en // boost converter enable
|
||||
);
|
||||
|
||||
|
||||
wire ce_lf = ~module_sel; // enable, active high; a low level holds the module in reset
|
||||
wire ce_hf = module_sel; // enable, active high; a low level holds the module in reset
|
||||
//-----------------------------------------GATE-------------------------
|
||||
@@ -56,10 +56,10 @@ module fpga_top (
|
||||
gate_en_sync1 <= gate_en;
|
||||
gate_en_sync2 <= gate_en_sync1;
|
||||
end
|
||||
|
||||
|
||||
assign clk_gate = ~gate_en_sync2; // inverted, the external gate is active low
|
||||
//-----------------------------------------PWM--------------------------
|
||||
|
||||
|
||||
// CLKOUT is 200 MHz: 4096 steps at 5 ns keep the resolution, at a 20.48 us
|
||||
// period. 400 MHz does not close the 12 bit carry chain at 2.5 ns.
|
||||
Gowin_rPLL pwr_pwm_pll(
|
||||
@@ -107,7 +107,7 @@ module fpga_top (
|
||||
.mosi(spi_mosi),
|
||||
.ssp_dout(ssp_dout),
|
||||
.ce(ce_lf),
|
||||
|
||||
|
||||
.ssp_din(ssp_din_lf),
|
||||
.ssp_frame(ssp_frame_lf),
|
||||
.ssp_clk(ssp_clk_lf),
|
||||
@@ -132,7 +132,7 @@ module fpga_top (
|
||||
.mosi(spi_mosi),
|
||||
.ssp_dout(ssp_dout),
|
||||
.ce(ce_hf),
|
||||
|
||||
|
||||
.ssp_din(ssp_din_hf),
|
||||
.ssp_frame(ssp_frame_hf),
|
||||
.ssp_clk(ssp_clk_hf),
|
||||
@@ -161,4 +161,4 @@ module fpga_top (
|
||||
assign dbg1 = ~module_sel ? dbg_lf : dbg_hf;
|
||||
assign pwm_duty = ~module_sel ? pwm_duty_lf : pwm_duty_hf;
|
||||
|
||||
endmodule
|
||||
endmodule
|
||||
Reference in new issue
Block a user