trafic.tfi

来自「CPLD lattice1032 VHDL实现交通灯控制!」· TFI 代码 · 共 81 行

TFI
81
字号


// TOOL:     vhdl2tf
// DATE:     12/06/07  15:41:14 
// TITLE:    Lattice Semiconductor Corporation
// MODULE:   trafic
// DESIGN:   trafic
// FILENAME: trafic.tfi
// PROJECT:  trafic
// VERSION:  1.0
// NOTE: DO NOT EDIT THIS FILE
// This file is auto generated by the ispDesignExpert System


// Inputs
    reg clk;
    reg clk1;


`ifdef has_xreset
`ifdef post_route
    reg XRESET;
`endif
`endif
// Outputs
    wire R1;
    wire R2;
    wire Y1;
    wire Y2;
    wire G1;
    wire G2;
    wire [7:0] segout;
    wire [3:0] selout;


// Bidirs


// Instantiate the UUT
    trafic UUT (
`ifdef has_xreset
`ifdef post_route
        .XRESET(XRESET),
`endif
`endif

        .clk(clk), 
        .clk1(clk1), 
        .R1(R1), 
        .R2(R2), 
        .Y1(Y1), 
        .Y2(Y2), 
        .G1(G1), 
        .G2(G2), 
        .segout(segout), 
        .selout(selout)
        );


// Initialize Inputs
    `ifdef auto_init

initial begin
            clk = 0;
            clk1 = 0;
end

    `endif


    `ifdef has_xreset
    `ifdef post_route
initial begin
    XRESET = 0;
    #100 XRESET = 1;
end

    `endif
    `endif

⌨️ 快捷键说明

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