问答

汇集网友智慧,解决技术难题

21ic问答首页 - TAG - edge
  • Sullins是什么牌子 sos

    [font=微软雅黑][size=19px]江苏蓬生电子(pellson)解答一下:专注做[/size][/font][font=微软雅黑][size=19px]UL和CUL Edgecard连接器的。[/size][/font]

    UL Card edge ge ar LED

    778浏览量 0回复量 关注量
  • fpga程序问题 赏100家园币

    always @(posedge sys_clk0 ) begin s1 <= clk_init; //CLK_pwm s2 <= s1; //0 end assign pose_sclk=!s2&s1; // always @(posedge sys_clk0 or negedge rst_n) if(~rst_n) begin rst_n<=1'b1; clk_100m<=1'b0; state_d<=WAIT; end else begin if(pose_sclk) // 上升沿 state_d<=A; else case(state_d) //0 A:begin clk_100m<=1'b1; state_d<=B; end B:begin clk_100m<=1'b0; state_d<=WAIT; end WAIT:begin clk_100m<=1'b0; end default: state_d <= WAIT; endcase end always @(posedge sys_clk0 ) begin s1 <= clk_init; //CLK_pwm s2 <= s1; //0 end assign pose_sclk=!s2&s1; // always @(posedge sys_clk0 or negedge rst_n) if(~rst_n) begin rst_n<=1'b1; clk_100m<=1'b0; state_d<=WAIT; end else begin if(pose_sclk) // 上升沿 state_d<=A; else case(state_d) //0 A:begin clk_100m<=1'b1; state_d<=B; end B:begin clk_100m<=1'b0; state_d<=WAIT; end WAIT:begin clk_100m<=1'b0; end default: state_d <= WAIT; endcase end [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]always @(posedge sys_clk0 ) begin[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] s1 <= clk_init; //CLK_pwm[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] s2 <= s1; //0[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] end[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] assign pose_sclk=!s2&s1; //[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] always @(posedge sys_clk0 or negedge rst_n)[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] if(~rst_n) begin[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] rst_n<=1'b1;[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] clk_100m<=1'b0;[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] state_d<=WAIT;[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] end[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] else begin if(pose_sclk) // 上升沿[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] state_d<=A;[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] else case(state_d) //0[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] A:begin[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] clk_100m<=1'b1;[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] state_d<=B;[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] end[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] B:begin[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] clk_100m<=1'b0;[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] state_d<=WAIT;[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] end[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] WAIT:begin[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] clk_100m<=1'b0;[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] end[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] default: state_d <= F;[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] endcase[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] end[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]50Mhz晶振,sys_clk0 倍频100Mhz,clk_init作为输入脉冲信号1Khz-100Khz。在clk_init上升沿输出clk_100m高低变化一次。发现clk_100m有抖动。 [/size][/font][/backcolor][/color]

    FPGA edge ge os POS se

    2903浏览量 2回复量 关注量