📄 phone_top.v
字号:
`timescale 1ns/10psmodule phone_top(wb_rst,wb_ring_c,wb_clk,wb_dtmf_h,wb_dtmf_data, wb_playl,wb_tele_on,wb_isd_addr,wb_led1,wb_led2, tstate,pass_counter,wrong_time,dtmf_con);input wb_rst;input wb_ring_c;input wb_clk;input wb_dtmf_h;input [3:0] wb_dtmf_data;output wb_playl;output [7:0] wb_isd_addr;output wb_tele_on;output wb_led1;output wb_led2;output [2:0] tstate;output [2:0] pass_counter; //PASSWORD COUNTER;output [1:0] wrong_time; //PASSWORD WRONG INPUT TIMES;output [3:0] dtmf_con; //control numberwire clr;wire enable;wire dtmf_clr;wire dtmf_high;wire dtmf_low; phone_control phone_con(.rst(wb_rst), .clk(wb_clk), .dtmf_high(dtmf_high), .dtmf_low(dtmf_low), .dtmf_data(wb_dtmf_data), .enable(enable), .playl(wb_playl), .tele_on(wb_tele_on), .isd_addr(wb_isd_addr), .led1(wb_led1), .led2(wb_led2), .tstate(tstate), .pass_counter(pass_counter), .wrong_time(wrong_time), .dtmf_con(dtmf_con), .clr(clr), .dtmf_clr(dtmf_clr) ); ring_counter ring_phone(.rst(wb_rst), .ring_c(wb_ring_c), .enable(enable), .clr(clr) );dtmf_h_check phone_dtmf( .dtmf_h(wb_dtmf_h), .dtmf_clr(dtmf_clr), .clk(wb_clk), .rst(wb_rst), .dtmf_high(dtmf_high), .dtmf_low(dtmf_low) ); endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -