⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example_en_32bit_s.v

📁 VHDL examples for counter design, use QuickLogic eclips
💻 V
📖 第 1 页 / 共 2 页
字号:
/* Verilog Model Created from SCS Schematic example_en_32bit_s.sch 
   Aug 14, 2003 16:39 */

/* Automatically generated by hvveri version 9.5 Release Build2 */

`timescale 1ns/1ns  
`define LOGIC   1 
`define BIDIR   2 
`define INCELL  3 
`define CLOCK   4 
`define HSCK    5 
`define CLOCKB  6 
`define ESPXCLKIN  7 
`define HSCKMUX 8 
`define IOCONTROL 9 

module example_en_32bit_s( clear_in , clk_in, enable_in, count_out );
input clear_in, clk_in;
 output [31:0] count_out;
input enable_in;
parameter syn_macro = 1;
wire [31:0] count_reg;
wire [31:0] count;
wire enable_reg;
wire enable;
wire clear;
wire clk;

counter_en_32bit_s I9 ( .clear(clear), .clk(clk), .count({ count[31:0] }),
                     .enable(enable_reg) );
rg16_25um I1 ( .CLK(clk), .D({ count[15:0] }), .Q({ count_reg[15:0] }) );
rg16_25um I2 ( .CLK(clk), .D({ count[31:16] }), .Q({ count_reg[31:16] }) );
dff_2 I3 ( .CLK(clk), .D1(enable), .D2(enable), .Q1(enable_reg) );
outpad_25um \outpad_25um[31]  ( .A(count_reg[31]), .P(count_out[31]) );
outpad_25um \outpad_25um[30]  ( .A(count_reg[30]), .P(count_out[30]) );
outpad_25um \outpad_25um[29]  ( .A(count_reg[29]), .P(count_out[29]) );
outpad_25um \outpad_25um[28]  ( .A(count_reg[28]), .P(count_out[28]) );
outpad_25um \outpad_25um[27]  ( .A(count_reg[27]), .P(count_out[27]) );
outpad_25um \outpad_25um[26]  ( .A(count_reg[26]), .P(count_out[26]) );
outpad_25um \outpad_25um[25]  ( .A(count_reg[25]), .P(count_out[25]) );
outpad_25um \outpad_25um[24]  ( .A(count_reg[24]), .P(count_out[24]) );
outpad_25um \outpad_25um[23]  ( .A(count_reg[23]), .P(count_out[23]) );
outpad_25um \outpad_25um[22]  ( .A(count_reg[22]), .P(count_out[22]) );
outpad_25um \outpad_25um[21]  ( .A(count_reg[21]), .P(count_out[21]) );
outpad_25um \outpad_25um[20]  ( .A(count_reg[20]), .P(count_out[20]) );
outpad_25um \outpad_25um[19]  ( .A(count_reg[19]), .P(count_out[19]) );
outpad_25um \outpad_25um[18]  ( .A(count_reg[18]), .P(count_out[18]) );
outpad_25um \outpad_25um[17]  ( .A(count_reg[17]), .P(count_out[17]) );
outpad_25um \outpad_25um[16]  ( .A(count_reg[16]), .P(count_out[16]) );
outpad_25um \outpad_25um[15]  ( .A(count_reg[15]), .P(count_out[15]) );
outpad_25um \outpad_25um[14]  ( .A(count_reg[14]), .P(count_out[14]) );
outpad_25um \outpad_25um[13]  ( .A(count_reg[13]), .P(count_out[13]) );
outpad_25um \outpad_25um[12]  ( .A(count_reg[12]), .P(count_out[12]) );
outpad_25um \outpad_25um[11]  ( .A(count_reg[11]), .P(count_out[11]) );
outpad_25um \outpad_25um[10]  ( .A(count_reg[10]), .P(count_out[10]) );
outpad_25um \outpad_25um[9]  ( .A(count_reg[9]), .P(count_out[9]) );
outpad_25um \outpad_25um[8]  ( .A(count_reg[8]), .P(count_out[8]) );
outpad_25um \outpad_25um[7]  ( .A(count_reg[7]), .P(count_out[7]) );
outpad_25um \outpad_25um[6]  ( .A(count_reg[6]), .P(count_out[6]) );
outpad_25um \outpad_25um[5]  ( .A(count_reg[5]), .P(count_out[5]) );
outpad_25um \outpad_25um[4]  ( .A(count_reg[4]), .P(count_out[4]) );
outpad_25um \outpad_25um[3]  ( .A(count_reg[3]), .P(count_out[3]) );
outpad_25um \outpad_25um[2]  ( .A(count_reg[2]), .P(count_out[2]) );
outpad_25um \outpad_25um[1]  ( .A(count_reg[1]), .P(count_out[1]) );
outpad_25um \outpad_25um[0]  ( .A(count_reg[0]), .P(count_out[0]) );
inpad_25um I4 ( .P(enable_in), .Q(enable) );
ckpad_25um I5 ( .P(clear_in), .Q(clear) );
ckpad_25um I6 ( .P(clk_in), .Q(clk) );

endmodule // example_en_32bit_s


`ifdef counter_en_32bit_s
`else
`define counter_en_32bit_s
module counter_en_32bit_s( clear , clk, enable, count );
input clear, clk;
 output [31:0] count;
input enable;
parameter syn_macro = 1;
wire enable_6;
wire enable_5;
wire enable_4;
wire enable_3;
wire enable_2;
wire enable_1;

counter_en_8bit_iv_s I9 ( .clear(clear), .clk(clk), .count({ count[31:24] }),
                       .enable(enable), .enable_1(enable_1),
                       .enable_2(enable_2), .enable_3(enable_3),
                       .enable_4(enable_4), .enable_5(enable_5),
                       .enable_6(enable_6) );
counter_en_8bit_iii_s I10 ( .clear(clear), .clk(clk), .count({ count[23:16] }),
                         .enable(enable), .enable_1(enable_1),
                         .enable_2(enable_2), .enable_3(enable_3),
                         .enable_4(enable_4), .enable_5_r(enable_5),
                         .enable_6_r(enable_6) );
counter_en_8bit_ii_s I11 ( .clear(clear), .clk(clk), .count({ count[15:8] }),
                        .enable(enable), .enable_1(enable_1),
                        .enable_2(enable_2), .enable_3_r(enable_3),
                        .enable_4_r(enable_4) );
counter_en_8bit_i_s I12 ( .clear(clear), .clk(clk), .count({ count[7:0] }),
                       .enable(enable), .enable_2_r(enable_2),
                       .fo_enable_r(enable_1) );

endmodule // counter_en_32bit_s

`endif

`ifdef rg16_25um
`else
`define rg16_25um
module rg16_25um( CLK , D, Q );
input CLK;
 input [15:0] D;
 output [15:0] Q;
parameter syn_macro = 1;

dff_2 I6 ( .CLK(CLK), .D1(D[14]), .D2(D[15]), .Q1(Q[14]), .Q2(Q[15]) );
dff_2 I7 ( .CLK(CLK), .D1(D[12]), .D2(D[13]), .Q1(Q[12]), .Q2(Q[13]) );
dff_2 I8 ( .CLK(CLK), .D1(D[10]), .D2(D[11]), .Q1(Q[10]), .Q2(Q[11]) );
dff_2 I9 ( .CLK(CLK), .D1(D[8]), .D2(D[9]), .Q1(Q[8]), .Q2(Q[9]) );
dff_2 I2 ( .CLK(CLK), .D1(D[6]), .D2(D[7]), .Q1(Q[6]), .Q2(Q[7]) );
dff_2 I3 ( .CLK(CLK), .D1(D[4]), .D2(D[5]), .Q1(Q[4]), .Q2(Q[5]) );
dff_2 I4 ( .CLK(CLK), .D1(D[2]), .D2(D[3]), .Q1(Q[2]), .Q2(Q[3]) );
dff_2 I5 ( .CLK(CLK), .D1(D[0]), .D2(D[1]), .Q1(Q[0]), .Q2(Q[1]) );

endmodule // rg16_25um

`endif

`ifdef dff_2
`else
`define dff_2
module dff_2( CLK , D1, D2, Q1, Q2 );
input CLK, D1, D2;
output Q1, Q2;
parameter syn_macro = 1;
supply1 vcc;
supply0 gnd;

super_logic I2 ( .A1(vcc), .A2(gnd), .A3(vcc), .A4(gnd), .A5(vcc), .A6(gnd),
              .B1(vcc), .B2(gnd), .C1(vcc), .C2(gnd), .D1(vcc), .D2(gnd),
              .E1(D1), .E2(gnd), .F1(vcc), .F2(gnd), .F3(vcc), .F4(gnd),
              .F5(vcc), .F6(gnd), .MP(gnd), .MS(vcc), .NP(gnd), .NS(vcc),
              .OP(gnd), .OS(vcc), .PP(vcc), .PS(D2), .Q2Z(Q2), .QC(CLK),
              .QR(gnd), .QS(gnd), .QZ(Q1) );

endmodule // dff_2

`endif

`ifdef outpad_25um
`else
`define outpad_25um
module outpad_25um( A , P );
input A;
output P;
parameter syn_macro = 1;
parameter ql_gate = `BIDIR;
supply0 GND;
supply1 VCC;

eio_cell I1 ( .EQE(VCC), .ESEL(VCC), .IE(VCC), .IP(P), .IQC(GND), .IQE(GND),
           .IQR(GND), .OQI(A), .OSEL(VCC) );

endmodule // outpad_25um

`endif

`ifdef inpad_25um
`else
`define inpad_25um
module inpad_25um( P , Q );
input P;
output Q;
parameter syn_macro = 1;
parameter ql_gate = `BIDIR;
supply0 gnd;
supply1 vcc;

eio_cell I1 ( .EQE(vcc), .ESEL(vcc), .IE(gnd), .IP(P), .IQC(gnd), .IQE(gnd),
           .IQR(gnd), .IZ(Q), .OQI(vcc), .OSEL(vcc) );

endmodule // inpad_25um

`endif

`ifdef ckpad_25um
`else
`define ckpad_25um
module ckpad_25um( P , Q );
input P;
output Q;
parameter syn_macro = 1;
parameter ql_gate = `CLOCK;

ckcell_25um I1 ( .IC(Q), .IP(P) );

endmodule // ckpad_25um

`endif

`ifdef counter_en_8bit_iv_s
`else
`define counter_en_8bit_iv_s
module counter_en_8bit_iv_s( clear , clk, enable, enable_1, enable_2, enable_3,
                             enable_4, enable_5, enable_6, count );
input clear, clk;
 output [7:0] count;
input enable, enable_1, enable_2, enable_3, enable_4, enable_5, enable_6;
parameter syn_macro = 1;
wire enable_7_r;
wire enable_in2_a;
wire enable_in1_a;
supply1 vcc;
supply0 gnd;

counter_en_4bit_s I17 ( .clear(clear), .clk(clk), .enable(enable_in1_a),
                     .qa_r(count[3]), .qb_r(count[2]), .qc_r(count[1]),
                     .qd_r(count[0]) );
counter_en_4bit_s I18 ( .clear(clear), .clk(clk), .enable(enable_in2_a),
                     .qa_r(count[7]), .qb_r(count[6]), .qc_r(count[5]),
                     .qd_r(count[4]) );
super_logic I15 ( .A1(count[3]), .A2(gnd), .A3(count[2]), .A4(gnd), .A5(count[1]),
               .A6(gnd), .B1(gnd), .B2(gnd), .C1(vcc), .C2(gnd), .D1(count[0]),
               .D2(gnd), .E1(vcc), .E2(gnd), .F1(enable_7_r), .F2(gnd),
               .F3(enable_in1_a), .F4(gnd), .F5(vcc), .F6(gnd),
               .FZ(enable_in2_a), .MP(gnd), .MS(gnd), .NP(gnd), .NS(gnd),
               .OP(vcc), .OS(gnd), .PP(gnd), .PS(gnd), .QC(clk), .QR(clear),
               .QS(gnd), .QZ(enable_7_r) );
super_logic I16 ( .A1(enable), .A2(gnd), .A3(enable_1), .A4(gnd), .A5(enable_2),
               .A6(gnd), .B1(gnd), .B2(gnd), .C1(gnd), .C2(gnd), .D1(gnd),
               .D2(gnd), .E1(enable_6), .E2(gnd), .F1(enable_3), .F2(gnd),
               .F3(enable_4), .F4(gnd), .F5(enable_5), .F6(gnd), .MP(gnd),
               .MS(gnd), .NP(vcc), .NS(gnd), .OP(vcc), .OS(gnd),
               .OZ(enable_in1_a), .PP(gnd), .PS(gnd), .QC(clk), .QR(clear),
               .QS(gnd) );

endmodule // counter_en_8bit_iv_s

`endif

`ifdef counter_en_8bit_iii_s
`else
`define counter_en_8bit_iii_s
module counter_en_8bit_iii_s( clear , clk, enable, enable_1, enable_2, enable_3,
                              enable_4, count, enable_5_r, enable_6_r );
input clear, clk;
 output [7:0] count;
input enable, enable_1, enable_2, enable_3, enable_4;
output enable_5_r, enable_6_r;
parameter syn_macro = 1;
wire enable_in2_a;
wire enable_in1_a;
supply1 vcc;
supply0 gnd;

counter_en_4bit_s I17 ( .clear(clear), .clk(clk), .enable(enable_in1_a),
                     .qa_r(count[3]), .qb_r(count[2]), .qc_r(count[1]),
                     .qd_r(count[0]) );
counter_en_4bit_s I18 ( .clear(clear), .clk(clk), .enable(enable_in2_a),
                     .qa_r(count[7]), .qb_r(count[6]), .qc_r(count[5]),
                     .qd_r(count[4]) );
super_logic I16 ( .A1(enable), .A2(gnd), .A3(enable_1), .A4(gnd), .A5(enable_2),
               .A6(gnd), .B1(gnd), .B2(gnd), .C1(vcc), .C2(gnd), .D1(enable_4),
               .D2(gnd), .E1(vcc), .E2(gnd), .F1(enable_in1_a), .F2(gnd),
               .F3(enable_5_r), .F4(gnd), .F5(vcc), .F6(gnd),
               .FZ(enable_in2_a), .MP(gnd), .MS(gnd), .NP(gnd), .NS(gnd),
               .OP(enable_3), .OS(gnd), .OZ(enable_in1_a), .PP(gnd), .PS(gnd),
               .QC(clk), .QR(clear), .QS(gnd) );
super_logic I15 ( .A1(count[3]), .A2(gnd), .A3(count[2]), .A4(gnd), .A5(count[1]),
               .A6(gnd), .B1(gnd), .B2(gnd), .C1(vcc), .C2(gnd), .D1(count[0]),
               .D2(gnd), .E1(vcc), .E2(gnd), .F1(vcc), .F2(gnd), .F3(vcc),
               .F4(gnd), .F5(vcc), .F6(gnd), .MP(gnd), .MS(gnd), .NP(gnd),
               .NS(gnd), .OP(vcc), .OS(gnd), .PP(gnd), .PS(gnd), .QC(clk),
               .QR(clear), .QS(gnd), .QZ(enable_5_r) );
super_logic I12 ( .A1(count[7]), .A2(gnd), .A3(count[6]), .A4(gnd), .A5(count[5]),

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -