FPGA_8_22

技术,核心,保密

 

mainboard

 

adc+sensor

 

write

 

read

 

registers

 

How to design an FPGA from scratch (Part1/Part2)

 

tp1,tp2

 

 

always @( posedge sys_clk or negedge sys_rst_int_n) begin if ( sys_rst_int_n == 1'b0 ) begin si5341_rst_n <= 1'b0 ; fpga_ndone_cnt <= 'd0 ; soft_fpga_por <= 1'b0 ; pmbus_work_en <= 1'b0 ; pl_i2c_work_en <= 1'b0 ; soft_fpga_reload <= 1'b0 ; soft_fpga_reload_wait_cnt <= 6'd0 ; hitless_ext_rst <= 1'b0 ; end else begin if ((( fpga_por_wait_cnt == 16'd0 ) && ( fpga_por_code == 8'h5c ) && ( beat_1ms == 1'b1 )) ||(( fpga_por_wait_cnt2 == 16'd0 ) && ( fpga_por_code2 == 8'h5c ) && ( beat_1ms == 1'b1 ))) begin//甯﹀唴甯﹀鎺у埗fpga por soft_fpga_por <= 1'b1 ; end else begin soft_fpga_por <= 1'b0 ; end if (( fpga_por_b_int == 1'b0 ) || ( fpga_done_r[1] == 1'b1 )) begin//fpga 鐨刾or閲婃斁鍚庯紝fpga澶氫箙娌℃湁鍔犺浇鎴愬姛锛屾渶澶ц鏁0s fpga_ndone_cnt <= 'd0 ; end else if(fpga_ndone_cnt != 8'd22)begin fpga_ndone_cnt <= fpga_ndone_cnt + beat_1s ; end if( /*soft_fpga_por ||*/ cpld_reload_power_down || fpga_ndone_sign /*||(( pcie0_rst_n_r[3:1] == 3'b100) )&& ( pwr_up_no_reload_n == 1'b1 )*/) begin//甯﹀唴锛宐mc鎺у埗fpga閲嶈浇鍓嶅厛瀵规澘鍗¤繘琛屼笅鐢 soft_fpga_reload <= 1'b1 ; soft_fpga_reload_wait_cnt <= 10'd0 ; end else if ( soft_fpga_reload_wait_cnt != 12'd2000 ) begin soft_fpga_reload_wait_cnt <= soft_fpga_reload_wait_cnt + beat_1ms ; end else begin soft_fpga_reload <= 1'b0 ; end if ( pg_vcc1v8_r[2:1] == 2'b00 || pwr_loss_debug[12] == 1'b1) begin//闃块噷锛岀帇鍢夌惁----澧炲姞澶嶄綅鎿嶄綔锛屽綋鏉垮崱1v8鐢垫簮pg鍑虹幇寮傚父璺岃惤鏃跺浣峴i5341 pg_vcc1v8_cnt <= 4'h0 ; si5341_rst_n <= 1'b0 ; end else if ( pg_vcc1v8_cnt != 4'd10 ) begin pg_vcc1v8_cnt <= pg_vcc1v8_cnt + beat_100us ; si5341_rst_n <= 1'b0 ; end else begin si5341_rst_n <= 1'b1 ; end if ( pwr_ok_r[1] == 1'b0 ) begin pmbus_work_en <= 1'b0 ; end else if (( fpga_por_b_int == 1'b1 ) && ( hitless_n_r[2] == 1'b0 )) begin//hitless pmbus_work_en <= 1'b0 ; end else begin pmbus_work_en <= 1'b1 ; end if ( fpga_los_n == 1'b0 ) begin pl_i2c_work_en <= 1'b0 ; end else if ( hitless_n_r[2] == 1'b0 ) begin//hitless pl_i2c_work_en <= 1'b0 ; end else begin pl_i2c_work_en <= 1'b1 ; end end end
05-28
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

doublewei1

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值