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,381 @@
// 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 15:19:50"
//
// Device: Altera 10M02SCM153I7G Package MBGA153
//
//
// This Verilog file should be used for Questa Altera FPGA (Verilog) only
//
`timescale 1 ps/ 1 ps
module Adder2b (
a1,
a2,
b1,
b2,
cin,
ao,
bo,
cout);
input a1;
input a2;
input b1;
input b2;
input cin;
output ao;
output bo;
output cout;
// Design Ports Information
// ao => Location: PIN_P2, I/O Standard: 3.3-V LVTTL, Current Strength: 8mA
// bo => Location: PIN_R2, I/O Standard: 3.3-V LVTTL, Current Strength: 8mA
// cout => Location: PIN_R3, I/O Standard: 3.3-V LVTTL, Current Strength: 8mA
// a1 => Location: PIN_M5, I/O Standard: 3.3-V LVTTL, Current Strength: Default
// a2 => Location: PIN_M4, I/O Standard: 3.3-V LVTTL, Current Strength: Default
// cin => Location: PIN_P7, I/O Standard: 3.3-V LVTTL, Current Strength: Default
// b2 => Location: PIN_N1, I/O Standard: 3.3-V LVTTL, Current Strength: Default
// b1 => Location: PIN_A3, 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 \ao~output_o ;
wire \bo~output_o ;
wire \cout~output_o ;
wire \a2~input_o ;
wire \a1~input_o ;
wire \cin~input_o ;
wire \ao~0_combout ;
wire \bi~1_combout ;
wire \b1~input_o ;
wire \b2~input_o ;
wire \bi~0_combout ;
wire \bo~0_combout ;
wire \cout~0_combout ;
hard_block auto_generated_inst(
.devpor(devpor),
.devclrn(devclrn),
.devoe(devoe));
// Location: LCCOMB_X11_Y6_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_X0_Y2_N23
fiftyfivenm_io_obuf \ao~output (
.i(\ao~0_combout ),
.oe(vcc),
.seriesterminationcontrol(16'b0000000000000000),
.devoe(devoe),
.o(\ao~output_o ),
.obar());
// synopsys translate_off
defparam \ao~output .bus_hold = "false";
defparam \ao~output .open_drain_output = "false";
// synopsys translate_on
// Location: IOOBUF_X0_Y3_N9
fiftyfivenm_io_obuf \bo~output (
.i(\bo~0_combout ),
.oe(vcc),
.seriesterminationcontrol(16'b0000000000000000),
.devoe(devoe),
.o(\bo~output_o ),
.obar());
// synopsys translate_off
defparam \bo~output .bus_hold = "false";
defparam \bo~output .open_drain_output = "false";
// synopsys translate_on
// Location: IOOBUF_X1_Y0_N23
fiftyfivenm_io_obuf \cout~output (
.i(\cout~0_combout ),
.oe(vcc),
.seriesterminationcontrol(16'b0000000000000000),
.devoe(devoe),
.o(\cout~output_o ),
.obar());
// synopsys translate_off
defparam \cout~output .bus_hold = "false";
defparam \cout~output .open_drain_output = "false";
// synopsys translate_on
// Location: IOIBUF_X1_Y0_N15
fiftyfivenm_io_ibuf \a2~input (
.i(a2),
.ibar(gnd),
.nsleep(vcc),
.o(\a2~input_o ));
// synopsys translate_off
defparam \a2~input .bus_hold = "false";
defparam \a2~input .listen_to_nsleep_signal = "false";
defparam \a2~input .simulate_z_as = "z";
// synopsys translate_on
// Location: IOIBUF_X1_Y0_N8
fiftyfivenm_io_ibuf \a1~input (
.i(a1),
.ibar(gnd),
.nsleep(vcc),
.o(\a1~input_o ));
// synopsys translate_off
defparam \a1~input .bus_hold = "false";
defparam \a1~input .listen_to_nsleep_signal = "false";
defparam \a1~input .simulate_z_as = "z";
// synopsys translate_on
// Location: IOIBUF_X6_Y0_N22
fiftyfivenm_io_ibuf \cin~input (
.i(cin),
.ibar(gnd),
.nsleep(vcc),
.o(\cin~input_o ));
// synopsys translate_off
defparam \cin~input .bus_hold = "false";
defparam \cin~input .listen_to_nsleep_signal = "false";
defparam \cin~input .simulate_z_as = "z";
// synopsys translate_on
// Location: LCCOMB_X1_Y1_N0
fiftyfivenm_lcell_comb \ao~0 (
// Equation(s):
// \ao~0_combout = \a2~input_o $ (\a1~input_o $ (\cin~input_o ))
.dataa(\a2~input_o ),
.datab(\a1~input_o ),
.datac(gnd),
.datad(\cin~input_o ),
.cin(gnd),
.combout(\ao~0_combout ),
.cout());
// synopsys translate_off
defparam \ao~0 .lut_mask = 16'h9966;
defparam \ao~0 .sum_lutc_input = "datac";
// synopsys translate_on
// Location: LCCOMB_X1_Y1_N12
fiftyfivenm_lcell_comb \bi~1 (
// Equation(s):
// \bi~1_combout = (\cin~input_o & ((\a2~input_o ) # (\a1~input_o )))
.dataa(\a2~input_o ),
.datab(\a1~input_o ),
.datac(gnd),
.datad(\cin~input_o ),
.cin(gnd),
.combout(\bi~1_combout ),
.cout());
// synopsys translate_off
defparam \bi~1 .lut_mask = 16'hEE00;
defparam \bi~1 .sum_lutc_input = "datac";
// synopsys translate_on
// Location: IOIBUF_X1_Y7_N15
fiftyfivenm_io_ibuf \b1~input (
.i(b1),
.ibar(gnd),
.nsleep(vcc),
.o(\b1~input_o ));
// synopsys translate_off
defparam \b1~input .bus_hold = "false";
defparam \b1~input .listen_to_nsleep_signal = "false";
defparam \b1~input .simulate_z_as = "z";
// synopsys translate_on
// Location: IOIBUF_X0_Y2_N15
fiftyfivenm_io_ibuf \b2~input (
.i(b2),
.ibar(gnd),
.nsleep(vcc),
.o(\b2~input_o ));
// synopsys translate_off
defparam \b2~input .bus_hold = "false";
defparam \b2~input .listen_to_nsleep_signal = "false";
defparam \b2~input .simulate_z_as = "z";
// synopsys translate_on
// Location: LCCOMB_X1_Y1_N10
fiftyfivenm_lcell_comb \bi~0 (
// Equation(s):
// \bi~0_combout = (\a1~input_o & \a2~input_o )
.dataa(gnd),
.datab(\a1~input_o ),
.datac(gnd),
.datad(\a2~input_o ),
.cin(gnd),
.combout(\bi~0_combout ),
.cout());
// synopsys translate_off
defparam \bi~0 .lut_mask = 16'hCC00;
defparam \bi~0 .sum_lutc_input = "datac";
// synopsys translate_on
// Location: LCCOMB_X1_Y1_N30
fiftyfivenm_lcell_comb \bo~0 (
// Equation(s):
// \bo~0_combout = \b1~input_o $ (\b2~input_o $ (((\bi~1_combout ) # (\bi~0_combout ))))
.dataa(\bi~1_combout ),
.datab(\b1~input_o ),
.datac(\b2~input_o ),
.datad(\bi~0_combout ),
.cin(gnd),
.combout(\bo~0_combout ),
.cout());
// synopsys translate_off
defparam \bo~0 .lut_mask = 16'hC396;
defparam \bo~0 .sum_lutc_input = "datac";
// synopsys translate_on
// Location: LCCOMB_X1_Y1_N8
fiftyfivenm_lcell_comb \cout~0 (
// Equation(s):
// \cout~0_combout = (\b1~input_o & ((\bi~1_combout ) # ((\b2~input_o ) # (\bi~0_combout )))) # (!\b1~input_o & (\b2~input_o & ((\bi~1_combout ) # (\bi~0_combout ))))
.dataa(\bi~1_combout ),
.datab(\b1~input_o ),
.datac(\b2~input_o ),
.datad(\bi~0_combout ),
.cin(gnd),
.combout(\cout~0_combout ),
.cout());
// synopsys translate_off
defparam \cout~0 .lut_mask = 16'hFCE8;
defparam \cout~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 ao = \ao~output_o ;
assign bo = \bo~output_o ;
assign cout = \cout~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

查看文件

@ -0,0 +1,9 @@
transcript on
if {[file exists gate_work]} {
vdel -lib gate_work -all
}
vlib gate_work
vmap work gate_work
vlog -work work +incdir+. {Adder2b.vo}

查看文件

@ -0,0 +1,9 @@
transcript on
if {[file exists rtl_work]} {
vdel -lib rtl_work -all
}
vlib rtl_work
vmap work rtl_work
vlog -work work +incdir+/home/lanshuye/Projects/DCExp/Exp2Adder2b {/home/lanshuye/Projects/DCExp/Exp2Adder2b/Adder2b.v}