first commit
这个提交包含在:
@ -0,0 +1 @@
|
||||
set tool_name "Questa Altera FPGA (Verilog)"
|
||||
358
Exp2/simulation/questa/decode24.vo
普通文件
358
Exp2/simulation/questa/decode24.vo
普通文件
@ -0,0 +1,358 @@
|
||||
// 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 09:51:07"
|
||||
|
||||
//
|
||||
// Device: Altera 10M02SCM153I7G Package MBGA153
|
||||
//
|
||||
|
||||
//
|
||||
// This Verilog file should be used for Questa Altera FPGA (Verilog) only
|
||||
//
|
||||
|
||||
`timescale 1 ps/ 1 ps
|
||||
|
||||
module decode24 (
|
||||
a,
|
||||
led);
|
||||
input [1:0] a;
|
||||
output [3:0] led;
|
||||
|
||||
// Design Ports Information
|
||||
// led[0] => Location: PIN_M12, I/O Standard: 3.3-V LVTTL, Current Strength: 8mA
|
||||
// led[1] => Location: PIN_M14, I/O Standard: 3.3-V LVTTL, Current Strength: 8mA
|
||||
// led[2] => Location: PIN_N14, I/O Standard: 3.3-V LVTTL, Current Strength: 8mA
|
||||
// led[3] => Location: PIN_N15, I/O Standard: 3.3-V LVTTL, Current Strength: 8mA
|
||||
// a[0] => Location: PIN_H11, I/O Standard: 3.3-V LVTTL, Current Strength: Default
|
||||
// a[1] => 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 \led[0]~output_o ;
|
||||
wire \led[1]~output_o ;
|
||||
wire \led[2]~output_o ;
|
||||
wire \led[3]~output_o ;
|
||||
wire \a[1]~input_o ;
|
||||
wire \a[0]~input_o ;
|
||||
wire \Mux0~0_combout ;
|
||||
wire \Mux3~0_combout ;
|
||||
wire \Mux3~0clkctrl_outclk ;
|
||||
wire \led[0]$latch~combout ;
|
||||
wire \led[1]$latch~combout ;
|
||||
wire \led[2]$latch~combout ;
|
||||
|
||||
|
||||
hard_block auto_generated_inst(
|
||||
.devpor(devpor),
|
||||
.devclrn(devclrn),
|
||||
.devoe(devoe));
|
||||
|
||||
// Location: LCCOMB_X11_Y9_N16
|
||||
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 \led[0]~output (
|
||||
.i(\led[0]$latch~combout ),
|
||||
.oe(vcc),
|
||||
.seriesterminationcontrol(16'b0000000000000000),
|
||||
.devoe(devoe),
|
||||
.o(\led[0]~output_o ),
|
||||
.obar());
|
||||
// synopsys translate_off
|
||||
defparam \led[0]~output .bus_hold = "false";
|
||||
defparam \led[0]~output .open_drain_output = "false";
|
||||
// synopsys translate_on
|
||||
|
||||
// Location: IOOBUF_X18_Y2_N9
|
||||
fiftyfivenm_io_obuf \led[1]~output (
|
||||
.i(\led[1]$latch~combout ),
|
||||
.oe(vcc),
|
||||
.seriesterminationcontrol(16'b0000000000000000),
|
||||
.devoe(devoe),
|
||||
.o(\led[1]~output_o ),
|
||||
.obar());
|
||||
// synopsys translate_off
|
||||
defparam \led[1]~output .bus_hold = "false";
|
||||
defparam \led[1]~output .open_drain_output = "false";
|
||||
// synopsys translate_on
|
||||
|
||||
// Location: IOOBUF_X18_Y1_N2
|
||||
fiftyfivenm_io_obuf \led[2]~output (
|
||||
.i(\led[2]$latch~combout ),
|
||||
.oe(vcc),
|
||||
.seriesterminationcontrol(16'b0000000000000000),
|
||||
.devoe(devoe),
|
||||
.o(\led[2]~output_o ),
|
||||
.obar());
|
||||
// synopsys translate_off
|
||||
defparam \led[2]~output .bus_hold = "false";
|
||||
defparam \led[2]~output .open_drain_output = "false";
|
||||
// synopsys translate_on
|
||||
|
||||
// Location: IOOBUF_X18_Y1_N9
|
||||
fiftyfivenm_io_obuf \led[3]~output (
|
||||
.i(gnd),
|
||||
.oe(vcc),
|
||||
.seriesterminationcontrol(16'b0000000000000000),
|
||||
.devoe(devoe),
|
||||
.o(\led[3]~output_o ),
|
||||
.obar());
|
||||
// synopsys translate_off
|
||||
defparam \led[3]~output .bus_hold = "false";
|
||||
defparam \led[3]~output .open_drain_output = "false";
|
||||
// synopsys translate_on
|
||||
|
||||
// Location: IOIBUF_X18_Y6_N22
|
||||
fiftyfivenm_io_ibuf \a[1]~input (
|
||||
.i(a[1]),
|
||||
.ibar(gnd),
|
||||
.nsleep(vcc),
|
||||
.o(\a[1]~input_o ));
|
||||
// synopsys translate_off
|
||||
defparam \a[1]~input .bus_hold = "false";
|
||||
defparam \a[1]~input .listen_to_nsleep_signal = "false";
|
||||
defparam \a[1]~input .simulate_z_as = "z";
|
||||
// synopsys translate_on
|
||||
|
||||
// Location: IOIBUF_X18_Y6_N15
|
||||
fiftyfivenm_io_ibuf \a[0]~input (
|
||||
.i(a[0]),
|
||||
.ibar(gnd),
|
||||
.nsleep(vcc),
|
||||
.o(\a[0]~input_o ));
|
||||
// synopsys translate_off
|
||||
defparam \a[0]~input .bus_hold = "false";
|
||||
defparam \a[0]~input .listen_to_nsleep_signal = "false";
|
||||
defparam \a[0]~input .simulate_z_as = "z";
|
||||
// synopsys translate_on
|
||||
|
||||
// Location: LCCOMB_X17_Y6_N22
|
||||
fiftyfivenm_lcell_comb \Mux0~0 (
|
||||
// Equation(s):
|
||||
// \Mux0~0_combout = (\a[1]~input_o ) # (\a[0]~input_o )
|
||||
|
||||
.dataa(gnd),
|
||||
.datab(gnd),
|
||||
.datac(\a[1]~input_o ),
|
||||
.datad(\a[0]~input_o ),
|
||||
.cin(gnd),
|
||||
.combout(\Mux0~0_combout ),
|
||||
.cout());
|
||||
// synopsys translate_off
|
||||
defparam \Mux0~0 .lut_mask = 16'hFFF0;
|
||||
defparam \Mux0~0 .sum_lutc_input = "datac";
|
||||
// synopsys translate_on
|
||||
|
||||
// Location: LCCOMB_X17_Y6_N16
|
||||
fiftyfivenm_lcell_comb \Mux3~0 (
|
||||
// Equation(s):
|
||||
// \Mux3~0_combout = (!\a[0]~input_o ) # (!\a[1]~input_o )
|
||||
|
||||
.dataa(gnd),
|
||||
.datab(gnd),
|
||||
.datac(\a[1]~input_o ),
|
||||
.datad(\a[0]~input_o ),
|
||||
.cin(gnd),
|
||||
.combout(\Mux3~0_combout ),
|
||||
.cout());
|
||||
// synopsys translate_off
|
||||
defparam \Mux3~0 .lut_mask = 16'h0FFF;
|
||||
defparam \Mux3~0 .sum_lutc_input = "datac";
|
||||
// synopsys translate_on
|
||||
|
||||
// Location: CLKCTRL_G5
|
||||
fiftyfivenm_clkctrl \Mux3~0clkctrl (
|
||||
.ena(vcc),
|
||||
.inclk({vcc,vcc,vcc,\Mux3~0_combout }),
|
||||
.clkselect(2'b00),
|
||||
.devclrn(devclrn),
|
||||
.devpor(devpor),
|
||||
.outclk(\Mux3~0clkctrl_outclk ));
|
||||
// synopsys translate_off
|
||||
defparam \Mux3~0clkctrl .clock_type = "global clock";
|
||||
defparam \Mux3~0clkctrl .ena_register_mode = "none";
|
||||
// synopsys translate_on
|
||||
|
||||
// Location: LCCOMB_X17_Y6_N24
|
||||
fiftyfivenm_lcell_comb \led[0]$latch (
|
||||
// Equation(s):
|
||||
// \led[0]$latch~combout = (GLOBAL(\Mux3~0clkctrl_outclk ) & ((!\Mux0~0_combout ))) # (!GLOBAL(\Mux3~0clkctrl_outclk ) & (\led[0]$latch~combout ))
|
||||
|
||||
.dataa(gnd),
|
||||
.datab(\led[0]$latch~combout ),
|
||||
.datac(\Mux0~0_combout ),
|
||||
.datad(\Mux3~0clkctrl_outclk ),
|
||||
.cin(gnd),
|
||||
.combout(\led[0]$latch~combout ),
|
||||
.cout());
|
||||
// synopsys translate_off
|
||||
defparam \led[0]$latch .lut_mask = 16'h0FCC;
|
||||
defparam \led[0]$latch .sum_lutc_input = "datac";
|
||||
// synopsys translate_on
|
||||
|
||||
// Location: LCCOMB_X17_Y6_N26
|
||||
fiftyfivenm_lcell_comb \led[1]$latch (
|
||||
// Equation(s):
|
||||
// \led[1]$latch~combout = (GLOBAL(\Mux3~0clkctrl_outclk ) & (\a[0]~input_o )) # (!GLOBAL(\Mux3~0clkctrl_outclk ) & ((\led[1]$latch~combout )))
|
||||
|
||||
.dataa(\a[0]~input_o ),
|
||||
.datab(gnd),
|
||||
.datac(\led[1]$latch~combout ),
|
||||
.datad(\Mux3~0clkctrl_outclk ),
|
||||
.cin(gnd),
|
||||
.combout(\led[1]$latch~combout ),
|
||||
.cout());
|
||||
// synopsys translate_off
|
||||
defparam \led[1]$latch .lut_mask = 16'hAAF0;
|
||||
defparam \led[1]$latch .sum_lutc_input = "datac";
|
||||
// synopsys translate_on
|
||||
|
||||
// Location: LCCOMB_X17_Y6_N30
|
||||
fiftyfivenm_lcell_comb \led[2]$latch (
|
||||
// Equation(s):
|
||||
// \led[2]$latch~combout = (GLOBAL(\Mux3~0clkctrl_outclk ) & (\a[1]~input_o )) # (!GLOBAL(\Mux3~0clkctrl_outclk ) & ((\led[2]$latch~combout )))
|
||||
|
||||
.dataa(\a[1]~input_o ),
|
||||
.datab(gnd),
|
||||
.datac(\led[2]$latch~combout ),
|
||||
.datad(\Mux3~0clkctrl_outclk ),
|
||||
.cin(gnd),
|
||||
.combout(\led[2]$latch~combout ),
|
||||
.cout());
|
||||
// synopsys translate_off
|
||||
defparam \led[2]$latch .lut_mask = 16'hAAF0;
|
||||
defparam \led[2]$latch .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 led[0] = \led[0]~output_o ;
|
||||
|
||||
assign led[1] = \led[1]~output_o ;
|
||||
|
||||
assign led[2] = \led[2]~output_o ;
|
||||
|
||||
assign led[3] = \led[3]~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
|
||||
在新工单中引用
屏蔽一个用户