first commit

这个提交包含在:
2026-01-15 23:21:38 +08:00
当前提交 1e613835fe
共有 955 个文件被更改,包括 31895 次插入 和 0 次删除

查看文件

@ -0,0 +1 @@
set tool_name "Questa Altera FPGA (Verilog)"

查看文件

@ -0,0 +1,326 @@
// Copyright (C) 2025 Altera Corporation. All rights reserved.
// Your use of Altera Corporation's design tools, logic functions
// and other software and tools, and any partner logic
// functions, and any output files from any of the foregoing
// (including device programming or simulation files), and any
// associated documentation or information are expressly subject
// to the terms and conditions of the Altera Program License
// Subscription Agreement, the Altera Quartus Prime License Agreement,
// the Altera IP License Agreement, or other applicable license
// agreement, including, without limitation, that your use is for
// the sole purpose of programming logic devices manufactured by
// Altera and sold by Altera or its authorized distributors. Please
// refer to the Altera Software License Subscription Agreements
// on the Quartus Prime software download page.
// VENDOR "Altera"
// PROGRAM "Quartus Prime"
// VERSION "Version 25.1std.0 Build 1129 10/21/2025 SC Lite Edition"
// DATE "01/15/2026 16:11:56"
//
// Device: Altera 10M02SCM153I7G Package MBGA153
//
//
// This Verilog file should be used for Questa Altera FPGA (Verilog) only
//
`timescale 1 ps/ 1 ps
module Decoder24 (
data_in,
data_out);
input [0:1] data_in;
output [0:3] data_out;
// Design Ports Information
// data_out[3] => Location: PIN_M12, I/O Standard: 3.3-V LVTTL, Current Strength: 8mA
// data_out[2] => Location: PIN_M14, I/O Standard: 3.3-V LVTTL, Current Strength: 8mA
// data_out[1] => Location: PIN_N14, I/O Standard: 3.3-V LVTTL, Current Strength: 8mA
// data_out[0] => Location: PIN_N15, I/O Standard: 3.3-V LVTTL, Current Strength: 8mA
// data_in[1] => Location: PIN_H11, I/O Standard: 3.3-V LVTTL, Current Strength: Default
// data_in[0] => Location: PIN_J12, I/O Standard: 3.3-V LVTTL, Current Strength: Default
wire gnd;
wire vcc;
wire unknown;
assign gnd = 1'b0;
assign vcc = 1'b1;
assign unknown = 1'bx;
tri1 devclrn;
tri1 devpor;
tri1 devoe;
wire \~QUARTUS_CREATED_GND~I_combout ;
wire \~QUARTUS_CREATED_UNVM~~busy ;
wire \data_out[3]~output_o ;
wire \data_out[2]~output_o ;
wire \data_out[1]~output_o ;
wire \data_out[0]~output_o ;
wire \data_in[0]~input_o ;
wire \data_in[1]~input_o ;
wire \Equal2~0_combout ;
wire \Equal2~1_combout ;
wire \Equal2~2_combout ;
wire \Equal0~0_combout ;
hard_block auto_generated_inst(
.devpor(devpor),
.devclrn(devclrn),
.devoe(devoe));
// Location: LCCOMB_X6_Y5_N0
fiftyfivenm_lcell_comb \~QUARTUS_CREATED_GND~I (
// Equation(s):
// \~QUARTUS_CREATED_GND~I_combout = GND
.dataa(gnd),
.datab(gnd),
.datac(gnd),
.datad(gnd),
.cin(gnd),
.combout(\~QUARTUS_CREATED_GND~I_combout ),
.cout());
// synopsys translate_off
defparam \~QUARTUS_CREATED_GND~I .lut_mask = 16'h0000;
defparam \~QUARTUS_CREATED_GND~I .sum_lutc_input = "datac";
// synopsys translate_on
// Location: IOOBUF_X18_Y1_N23
fiftyfivenm_io_obuf \data_out[3]~output (
.i(\Equal2~0_combout ),
.oe(vcc),
.seriesterminationcontrol(16'b0000000000000000),
.devoe(devoe),
.o(\data_out[3]~output_o ),
.obar());
// synopsys translate_off
defparam \data_out[3]~output .bus_hold = "false";
defparam \data_out[3]~output .open_drain_output = "false";
// synopsys translate_on
// Location: IOOBUF_X18_Y2_N9
fiftyfivenm_io_obuf \data_out[2]~output (
.i(\Equal2~1_combout ),
.oe(vcc),
.seriesterminationcontrol(16'b0000000000000000),
.devoe(devoe),
.o(\data_out[2]~output_o ),
.obar());
// synopsys translate_off
defparam \data_out[2]~output .bus_hold = "false";
defparam \data_out[2]~output .open_drain_output = "false";
// synopsys translate_on
// Location: IOOBUF_X18_Y1_N2
fiftyfivenm_io_obuf \data_out[1]~output (
.i(\Equal2~2_combout ),
.oe(vcc),
.seriesterminationcontrol(16'b0000000000000000),
.devoe(devoe),
.o(\data_out[1]~output_o ),
.obar());
// synopsys translate_off
defparam \data_out[1]~output .bus_hold = "false";
defparam \data_out[1]~output .open_drain_output = "false";
// synopsys translate_on
// Location: IOOBUF_X18_Y1_N9
fiftyfivenm_io_obuf \data_out[0]~output (
.i(!\Equal0~0_combout ),
.oe(vcc),
.seriesterminationcontrol(16'b0000000000000000),
.devoe(devoe),
.o(\data_out[0]~output_o ),
.obar());
// synopsys translate_off
defparam \data_out[0]~output .bus_hold = "false";
defparam \data_out[0]~output .open_drain_output = "false";
// synopsys translate_on
// Location: IOIBUF_X18_Y6_N22
fiftyfivenm_io_ibuf \data_in[0]~input (
.i(data_in[0]),
.ibar(gnd),
.nsleep(vcc),
.o(\data_in[0]~input_o ));
// synopsys translate_off
defparam \data_in[0]~input .bus_hold = "false";
defparam \data_in[0]~input .listen_to_nsleep_signal = "false";
defparam \data_in[0]~input .simulate_z_as = "z";
// synopsys translate_on
// Location: IOIBUF_X18_Y6_N15
fiftyfivenm_io_ibuf \data_in[1]~input (
.i(data_in[1]),
.ibar(gnd),
.nsleep(vcc),
.o(\data_in[1]~input_o ));
// synopsys translate_off
defparam \data_in[1]~input .bus_hold = "false";
defparam \data_in[1]~input .listen_to_nsleep_signal = "false";
defparam \data_in[1]~input .simulate_z_as = "z";
// synopsys translate_on
// Location: LCCOMB_X17_Y1_N8
fiftyfivenm_lcell_comb \Equal2~0 (
// Equation(s):
// \Equal2~0_combout = (\data_in[0]~input_o & \data_in[1]~input_o )
.dataa(\data_in[0]~input_o ),
.datab(gnd),
.datac(\data_in[1]~input_o ),
.datad(gnd),
.cin(gnd),
.combout(\Equal2~0_combout ),
.cout());
// synopsys translate_off
defparam \Equal2~0 .lut_mask = 16'hA0A0;
defparam \Equal2~0 .sum_lutc_input = "datac";
// synopsys translate_on
// Location: LCCOMB_X17_Y1_N2
fiftyfivenm_lcell_comb \Equal2~1 (
// Equation(s):
// \Equal2~1_combout = (\data_in[0]~input_o & !\data_in[1]~input_o )
.dataa(\data_in[0]~input_o ),
.datab(gnd),
.datac(\data_in[1]~input_o ),
.datad(gnd),
.cin(gnd),
.combout(\Equal2~1_combout ),
.cout());
// synopsys translate_off
defparam \Equal2~1 .lut_mask = 16'h0A0A;
defparam \Equal2~1 .sum_lutc_input = "datac";
// synopsys translate_on
// Location: LCCOMB_X17_Y1_N4
fiftyfivenm_lcell_comb \Equal2~2 (
// Equation(s):
// \Equal2~2_combout = (!\data_in[0]~input_o & \data_in[1]~input_o )
.dataa(\data_in[0]~input_o ),
.datab(gnd),
.datac(\data_in[1]~input_o ),
.datad(gnd),
.cin(gnd),
.combout(\Equal2~2_combout ),
.cout());
// synopsys translate_off
defparam \Equal2~2 .lut_mask = 16'h5050;
defparam \Equal2~2 .sum_lutc_input = "datac";
// synopsys translate_on
// Location: LCCOMB_X17_Y1_N14
fiftyfivenm_lcell_comb \Equal0~0 (
// Equation(s):
// \Equal0~0_combout = (\data_in[0]~input_o ) # (\data_in[1]~input_o )
.dataa(\data_in[0]~input_o ),
.datab(gnd),
.datac(\data_in[1]~input_o ),
.datad(gnd),
.cin(gnd),
.combout(\Equal0~0_combout ),
.cout());
// synopsys translate_off
defparam \Equal0~0 .lut_mask = 16'hFAFA;
defparam \Equal0~0 .sum_lutc_input = "datac";
// synopsys translate_on
// Location: UNVM_X0_Y8_N40
fiftyfivenm_unvm \~QUARTUS_CREATED_UNVM~ (
.arclk(vcc),
.arshft(vcc),
.drclk(vcc),
.drshft(vcc),
.drdin(vcc),
.nprogram(vcc),
.nerase(vcc),
.nosc_ena(\~QUARTUS_CREATED_GND~I_combout ),
.par_en(vcc),
.xe_ye(vcc),
.se(vcc),
.ardin(23'b11111111111111111111111),
.busy(\~QUARTUS_CREATED_UNVM~~busy ),
.osc(),
.bgpbusy(),
.sp_pass(),
.se_pass(),
.drdout());
// synopsys translate_off
defparam \~QUARTUS_CREATED_UNVM~ .addr_range1_end_addr = -1;
defparam \~QUARTUS_CREATED_UNVM~ .addr_range1_offset = -1;
defparam \~QUARTUS_CREATED_UNVM~ .addr_range2_end_addr = -1;
defparam \~QUARTUS_CREATED_UNVM~ .addr_range2_offset = -1;
defparam \~QUARTUS_CREATED_UNVM~ .addr_range3_offset = -1;
defparam \~QUARTUS_CREATED_UNVM~ .is_compressed_image = "false";
defparam \~QUARTUS_CREATED_UNVM~ .is_dual_boot = "false";
defparam \~QUARTUS_CREATED_UNVM~ .is_eram_skip = "false";
defparam \~QUARTUS_CREATED_UNVM~ .max_ufm_valid_addr = -1;
defparam \~QUARTUS_CREATED_UNVM~ .max_valid_addr = -1;
defparam \~QUARTUS_CREATED_UNVM~ .min_ufm_valid_addr = -1;
defparam \~QUARTUS_CREATED_UNVM~ .min_valid_addr = -1;
defparam \~QUARTUS_CREATED_UNVM~ .part_name = "quartus_created_unvm";
defparam \~QUARTUS_CREATED_UNVM~ .reserve_block = "true";
// synopsys translate_on
assign data_out[3] = \data_out[3]~output_o ;
assign data_out[2] = \data_out[2]~output_o ;
assign data_out[1] = \data_out[1]~output_o ;
assign data_out[0] = \data_out[0]~output_o ;
endmodule
module hard_block (
devpor,
devclrn,
devoe);
// Design Ports Information
// ~ALTERA_TMS~ => Location: PIN_G1, I/O Standard: 3.3 V Schmitt Trigger, Current Strength: Default
// ~ALTERA_TCK~ => Location: PIN_J1, I/O Standard: 3.3 V Schmitt Trigger, Current Strength: Default
// ~ALTERA_TDI~ => Location: PIN_H5, I/O Standard: 3.3 V Schmitt Trigger, Current Strength: Default
// ~ALTERA_TDO~ => Location: PIN_H4, I/O Standard: 3.3-V LVTTL, Current Strength: Default
// ~ALTERA_nCONFIG~ => Location: PIN_E8, I/O Standard: 3.3 V Schmitt Trigger, Current Strength: Default
// ~ALTERA_nSTATUS~ => Location: PIN_D6, I/O Standard: 3.3 V Schmitt Trigger, Current Strength: Default
// ~ALTERA_CONF_DONE~ => Location: PIN_E6, I/O Standard: 3.3 V Schmitt Trigger, Current Strength: Default
input devpor;
input devclrn;
input devoe;
wire gnd;
wire vcc;
wire unknown;
assign gnd = 1'b0;
assign vcc = 1'b1;
assign unknown = 1'bx;
wire \~ALTERA_TMS~~padout ;
wire \~ALTERA_TCK~~padout ;
wire \~ALTERA_TDI~~padout ;
wire \~ALTERA_nCONFIG~~padout ;
wire \~ALTERA_nSTATUS~~padout ;
wire \~ALTERA_CONF_DONE~~padout ;
wire \~ALTERA_TMS~~ibuf_o ;
wire \~ALTERA_TCK~~ibuf_o ;
wire \~ALTERA_TDI~~ibuf_o ;
wire \~ALTERA_nCONFIG~~ibuf_o ;
wire \~ALTERA_nSTATUS~~ibuf_o ;
wire \~ALTERA_CONF_DONE~~ibuf_o ;
endmodule