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

📄 step_motor.vho

📁 本程序设计一个基于FPGA的4相步进电机定位控制系统。由步进电机方向设定电路模块、步进电机步进移动与定位控制模块和编码输出模块构成。前两个模块完成电机旋转方向设定
💻 VHO
📖 第 1 页 / 共 3 页
字号:
	devpor => ww_devpor,
	regout => \count[0]\,
	cout0 => \count[0]~61\,
	cout1 => \count[0]~61COUT1\);

\count[1]~I\ : stratix_lcell
-- Equation(s):
-- \count[1]\ = DFFEAS(\cntInc[1]~5\ $ \count[1]\ $ \count[0]~61\, GLOBAL(\clk~combout\), !GLOBAL(\reset~combout\), , , \Mux~77\, , , !\ini~combout\)
-- \count[1]~65\ = CARRY(\cntInc[1]~5\ & !\count[1]\ & !\count[0]~61\ # !\cntInc[1]~5\ & (!\count[0]~61\ # !\count[1]\))
-- \count[1]~65COUT1_73\ = CARRY(\cntInc[1]~5\ & !\count[1]\ & !\count[0]~61COUT1\ # !\cntInc[1]~5\ & (!\count[0]~61COUT1\ # !\count[1]\))

-- pragma translate_off
GENERIC MAP (
	operation_mode => "arithmetic",
	synch_mode => "on",
	register_cascade_mode => "off",
	sum_lutc_input => "cin",
	lut_mask => "9617",
	cin0_used => "true",
	cin1_used => "true",
	output_mode => "reg_only")
-- pragma translate_on
PORT MAP (
	clk => \clk~combout\,
	dataa => \cntInc[1]~5\,
	datab => \count[1]\,
	datac => \Mux~77\,
	aclr => \reset~combout\,
	sload => \ALT_INV_ini~combout\,
	cin0 => \count[0]~61\,
	cin1 => \count[0]~61COUT1\,
	devclrn => ww_devclrn,
	devpor => ww_devpor,
	regout => \count[1]\,
	cout0 => \count[1]~65\,
	cout1 => \count[1]~65COUT1_73\);

\count[2]~I\ : stratix_lcell
-- Equation(s):
-- \count[2]\ = DFFEAS(\dir~combout\ $ (\count[1]~65\ $ !\count[2]\), GLOBAL(\clk~combout\), !GLOBAL(\reset~combout\), , , \Mux~77\, , , !\ini~combout\)

-- pragma translate_off
GENERIC MAP (
	operation_mode => "normal",
	synch_mode => "on",
	register_cascade_mode => "off",
	sum_lutc_input => "cin",
	lut_mask => "5AA5",
	cin0_used => "true",
	cin1_used => "true",
	output_mode => "reg_only")
-- pragma translate_on
PORT MAP (
	clk => \clk~combout\,
	dataa => \dir~combout\,
	datac => \Mux~77\,
	datad => \count[2]\,
	aclr => \reset~combout\,
	sload => \ALT_INV_ini~combout\,
	cin0 => \count[1]~65\,
	cin1 => \count[1]~65COUT1_73\,
	devclrn => ww_devclrn,
	devpor => ww_devpor,
	regout => \count[2]\);

\angle[1]~I\ : stratix_io
-- pragma translate_off
GENERIC MAP (
	operation_mode => "input",
	ddio_mode => "none",
	input_register_mode => "none",
	output_register_mode => "none",
	oe_register_mode => "none",
	input_async_reset => "none",
	output_async_reset => "none",
	oe_async_reset => "none",
	input_sync_reset => "none",
	output_sync_reset => "none",
	oe_sync_reset => "none",
	input_power_up => "low",
	output_power_up => "low",
	oe_power_up => "low")
-- pragma translate_on
PORT MAP (
	devclrn => ww_devclrn,
	devpor => ww_devpor,
	devoe => ww_devoe,
	oe => GND,
	padio => ww_angle(1),
	combout => \angle[1]~combout\);

\angle[6]~I\ : stratix_io
-- pragma translate_off
GENERIC MAP (
	operation_mode => "input",
	ddio_mode => "none",
	input_register_mode => "none",
	output_register_mode => "none",
	oe_register_mode => "none",
	input_async_reset => "none",
	output_async_reset => "none",
	oe_async_reset => "none",
	input_sync_reset => "none",
	output_sync_reset => "none",
	oe_sync_reset => "none",
	input_power_up => "low",
	output_power_up => "low",
	oe_power_up => "low")
-- pragma translate_on
PORT MAP (
	devclrn => ww_devclrn,
	devpor => ww_devpor,
	devoe => ww_devoe,
	oe => GND,
	padio => ww_angle(6),
	combout => \angle[6]~combout\);

\angle[4]~I\ : stratix_io
-- pragma translate_off
GENERIC MAP (
	operation_mode => "input",
	ddio_mode => "none",
	input_register_mode => "none",
	output_register_mode => "none",
	oe_register_mode => "none",
	input_async_reset => "none",
	output_async_reset => "none",
	oe_async_reset => "none",
	input_sync_reset => "none",
	output_sync_reset => "none",
	oe_sync_reset => "none",
	input_power_up => "low",
	output_power_up => "low",
	oe_power_up => "low")
-- pragma translate_on
PORT MAP (
	devclrn => ww_devclrn,
	devpor => ww_devpor,
	devoe => ww_devoe,
	oe => GND,
	padio => ww_angle(4),
	combout => \angle[4]~combout\);

\angle[3]~I\ : stratix_io
-- pragma translate_off
GENERIC MAP (
	operation_mode => "input",
	ddio_mode => "none",
	input_register_mode => "none",
	output_register_mode => "none",
	oe_register_mode => "none",
	input_async_reset => "none",
	output_async_reset => "none",
	oe_async_reset => "none",
	input_sync_reset => "none",
	output_sync_reset => "none",
	oe_sync_reset => "none",
	input_power_up => "low",
	output_power_up => "low",
	oe_power_up => "low")
-- pragma translate_on
PORT MAP (
	devclrn => ww_devclrn,
	devpor => ww_devpor,
	devoe => ww_devoe,
	oe => GND,
	padio => ww_angle(3),
	combout => \angle[3]~combout\);

\angle[2]~I\ : stratix_io
-- pragma translate_off
GENERIC MAP (
	operation_mode => "input",
	ddio_mode => "none",
	input_register_mode => "none",
	output_register_mode => "none",
	oe_register_mode => "none",
	input_async_reset => "none",
	output_async_reset => "none",
	oe_async_reset => "none",
	input_sync_reset => "none",
	output_sync_reset => "none",
	oe_sync_reset => "none",
	input_power_up => "low",
	output_power_up => "low",
	oe_power_up => "low")
-- pragma translate_on
PORT MAP (
	devclrn => ww_devclrn,
	devpor => ww_devpor,
	devoe => ww_devoe,
	oe => GND,
	padio => ww_angle(2),
	combout => \angle[2]~combout\);

\angleDnCount[0]~I\ : stratix_lcell
-- Equation(s):
-- \angleDnCount[0]\ = DFFEAS(\Mux~76\ $ \angleDnCount[0]\, GLOBAL(\clk~combout\), !GLOBAL(\reset~combout\), , , \angle[0]~combout\, , \angleDnCount[0]~292\, !\ini~combout\)
-- \angleDnCount[0]~284\ = CARRY(\angleDnCount[0]\ # !\Mux~76\)
-- \angleDnCount[0]~284COUT1_294\ = CARRY(\angleDnCount[0]\ # !\Mux~76\)

-- pragma translate_off
GENERIC MAP (
	operation_mode => "arithmetic",
	synch_mode => "on",
	register_cascade_mode => "off",
	sum_lutc_input => "datac",
	lut_mask => "66DD",
	output_mode => "reg_only")
-- pragma translate_on
PORT MAP (
	clk => \clk~combout\,
	dataa => \Mux~76\,
	datab => \angleDnCount[0]\,
	datac => \angle[0]~combout\,
	aclr => \reset~combout\,
	sclr => \angleDnCount[0]~292\,
	sload => \ALT_INV_ini~combout\,
	devclrn => ww_devclrn,
	devpor => ww_devpor,
	regout => \angleDnCount[0]\,
	cout0 => \angleDnCount[0]~284\,
	cout1 => \angleDnCount[0]~284COUT1_294\);

\angleDnCount[1]~I\ : stratix_lcell
-- Equation(s):
-- \angleDnCount[1]\ = DFFEAS(\Mux~76\ $ \angleDnCount[1]\ $ \angleDnCount[0]~284\, GLOBAL(\clk~combout\), !GLOBAL(\reset~combout\), , , \angle[1]~combout\, , \angleDnCount[0]~292\, !\ini~combout\)
-- \angleDnCount[1]~288\ = CARRY(\Mux~76\ & !\angleDnCount[1]\ & !\angleDnCount[0]~284\ # !\Mux~76\ & (!\angleDnCount[0]~284\ # !\angleDnCount[1]\))
-- \angleDnCount[1]~288COUT1_295\ = CARRY(\Mux~76\ & !\angleDnCount[1]\ & !\angleDnCount[0]~284COUT1_294\ # !\Mux~76\ & (!\angleDnCount[0]~284COUT1_294\ # !\angleDnCount[1]\))

-- pragma translate_off
GENERIC MAP (
	operation_mode => "arithmetic",
	synch_mode => "on",
	register_cascade_mode => "off",
	sum_lutc_input => "cin",
	lut_mask => "9617",
	cin0_used => "true",
	cin1_used => "true",
	output_mode => "reg_only")
-- pragma translate_on
PORT MAP (
	clk => \clk~combout\,
	dataa => \Mux~76\,
	datab => \angleDnCount[1]\,
	datac => \angle[1]~combout\,
	aclr => \reset~combout\,
	sclr => \angleDnCount[0]~292\,
	sload => \ALT_INV_ini~combout\,
	cin0 => \angleDnCount[0]~284\,
	cin1 => \angleDnCount[0]~284COUT1_294\,
	devclrn => ww_devclrn,
	devpor => ww_devpor,
	regout => \angleDnCount[1]\,
	cout0 => \angleDnCount[1]~288\,
	cout1 => \angleDnCount[1]~288COUT1_295\);

\angleDnCount[2]~I\ : stratix_lcell
-- Equation(s):
-- \angleDnCount[2]\ = DFFEAS(\angleDnCount[2]\ $ (\angleDnCount[1]~288\), GLOBAL(\clk~combout\), !GLOBAL(\reset~combout\), , , \angle[2]~combout\, , \angleDnCount[0]~292\, !\ini~combout\)
-- \angleDnCount[2]~260\ = CARRY(\angleDnCount[2]\ # !\angleDnCount[1]~288\)
-- \angleDnCount[2]~260COUT1_296\ = CARRY(\angleDnCount[2]\ # !\angleDnCount[1]~288COUT1_295\)

-- pragma translate_off
GENERIC MAP (
	operation_mode => "arithmetic",
	synch_mode => "on",
	register_cascade_mode => "off",
	sum_lutc_input => "cin",
	lut_mask => "5AAF",
	cin0_used => "true",
	cin1_used => "true",
	output_mode => "reg_only")
-- pragma translate_on
PORT MAP (
	clk => \clk~combout\,
	dataa => \angleDnCount[2]\,
	datac => \angle[2]~combout\,
	aclr => \reset~combout\,
	sclr => \angleDnCount[0]~292\,
	sload => \ALT_INV_ini~combout\,
	cin0 => \angleDnCount[1]~288\,
	cin1 => \angleDnCount[1]~288COUT1_295\,
	devclrn => ww_devclrn,
	devpor => ww_devpor,
	regout => \angleDnCount[2]\,
	cout0 => \angleDnCount[2]~260\,
	cout1 => \angleDnCount[2]~260COUT1_296\);

\angleDnCount[3]~I\ : stratix_lcell
-- Equation(s):
-- \angleDnCount[3]\ = DFFEAS(\angleDnCount[3]\ $ (!\angleDnCount[2]~260\), GLOBAL(\clk~combout\), !GLOBAL(\reset~combout\), , , \angle[3]~combout\, , \angleDnCount[0]~292\, !\ini~combout\)
-- \angleDnCount[3]~264\ = CARRY(!\angleDnCount[3]\ & (!\angleDnCount[2]~260\))
-- \angleDnCount[3]~264COUT1\ = CARRY(!\angleDnCount[3]\ & (!\angleDnCount[2]~260COUT1_296\))

-- pragma translate_off
GENERIC MAP (
	operation_mode => "arithmetic",
	synch_mode => "on",
	register_cascade_mode => "off",
	sum_lutc_input => "cin",
	lut_mask => "A505",
	cin0_used => "true",
	cin1_used => "true",
	output_mode => "reg_only")
-- pragma translate_on
PORT MAP (
	clk => \clk~combout\,
	dataa => \angleDnCount[3]\,
	datac => \angle[3]~combout\,
	aclr => \reset~combout\,
	sclr => \angleDnCount[0]~292\,
	sload => \ALT_INV_ini~combout\,
	cin0 => \angleDnCount[2]~260\,
	cin1 => \angleDnCount[2]~260COUT1_296\,
	devclrn => ww_devclrn,
	devpor => ww_devpor,
	regout => \angleDnCount[3]\,
	cout0 => \angleDnCount[3]~264\,
	cout1 => \angleDnCount[3]~264COUT1\);

\angleDnCount[4]~I\ : stratix_lcell
-- Equation(s):
-- \angleDnCount[4]\ = DFFEAS(\angleDnCount[4]\ $ (\angleDnCount[3]~264\), GLOBAL(\clk~combout\), !GLOBAL(\reset~combout\), , , \angle[4]~combout\, , \angleDnCount[0]~292\, !\ini~combout\)
-- \angleDnCount[4]~268\ = 

-- pragma translate_off
GENERIC MAP (
	operation_mode => "arithmetic",
	synch_mode => "on",
	register_cascade_mode => "off",
	sum_lutc_input => "cin",
	lut_mask => "5AAF",
	cin0_used => "true",
	cin1_used => "true",
	output_mode => "reg_only")
-- pragma translate_on
PORT MAP (
	clk => \clk~combout\,
	dataa => \angleDnCount[4]\,
	datac => \angle[4]~combout\,
	aclr => \reset~combout\,
	sclr => \angleDnCount[0]~292\,
	sload => \ALT_INV_ini~combout\,
	cin0 => \angleDnCount[3]~264\,
	cin1 => \angleDnCount[3]~264COUT1\,
	devclrn => ww_devclrn,
	devpor => ww_devpor,
	regout => \angleDnCount[4]\,
	cout => \angleDnCount[4]~268\);

\angle[5]~I\ : stratix_io
-- pragma translate_off
GENERIC MAP (
	operation_mode => "input",
	ddio_mode => "none",
	input_register_mode => "none",
	output_register_mode => "none",
	oe_register_mode => "none",
	input_async_reset => "none",
	output_async_reset => "none",
	oe_async_reset => "none",
	input_sync_reset => "none",
	output_sync_reset => "none",
	oe_sync_reset => "none",
	input_power_up => "low",
	output_power_up => "low",
	oe_power_up => "low")
-- pragma translate_on
PORT MAP (
	devclrn => ww_devclrn,
	devpor => ww_devpor,
	devoe => ww_devoe,
	oe => GND,
	padio => ww_angle(5),
	combout => \angle[5]~combout\);

\angleDnCount[5]~I\ : stratix_lcell
-- Equation(s):
-- \angleDnCount[5]\ = DFFEAS(\angleDnCount[5]\ $ !(!\angleDnCount[4]~268\ & GND) # (\angleDnCount[4]~268\ & VCC), GLOBAL(\clk~combout\), !GLOBAL(\reset~combout\), , , \angle[5]~combout\, , \angleDnCount[0]~292\, !\ini~combout\)
-- \angleDnCount[5]~272\ = CARRY(!\angleDnCount[5]\ & !\angleDnCount[4]~268\)
-- \angleDnCount[5]~272COUT1_297\ = CARRY(!\angleDnCount[5]\ & !\angleDnCount[4]~268\)

-- pragma translate_off
GENERIC MAP (
	operation_mode => "arithmetic",
	synch_mode => "on",
	register_cascade_mode => "off",
	sum_lutc_input => "cin",
	lut_mask => "C303",
	cin_used => "true",
	output_mode => "reg_only")
-- pragma translate_on
PORT MAP (
	clk => \clk~combout\,
	datab => \angleDnCount[5]\,
	datac => \angle[5]~combout\,
	aclr => \reset~combout\,
	sclr => \angleDnCount[0]~292\,
	sload => \ALT_INV_ini~combout\,
	cin => \angleDnCount[4]~268\,

⌨️ 快捷键说明

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