mcode.fit.eqn

来自「一个典型的m序列发生器」· EQN 代码 · 共 48 行

EQN
48
字号
-- Copyright (C) 1991-2005 Altera Corporation
-- Your use of Altera Corporation's design tools, logic functions 
-- and other software and tools, and its AMPP partner logic 
-- functions, and any output files 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, Altera MegaCore Function 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 
-- applicable agreement for further details.
--m[0] is m[0] at LC_X1_Y45_N4
--operation mode is normal

m[0]_lut_out = GND;
m[0] = DFFEAS(m[0]_lut_out, GLOBAL(clk), VCC, , , m[1], , , VCC);


--m[1] is m[1] at LC_X1_Y45_N5
--operation mode is normal

m[1]_lut_out = m[2];
m[1] = DFFEAS(m[1]_lut_out, GLOBAL(clk), VCC, , , , , , );


--m[2] is m[2] at LC_X1_Y45_N2
--operation mode is normal

m[2]_lut_out = m[1] & (!m[0]) # !m[1] & (m[0] # !m[2]);
m[2] = DFFEAS(m[2]_lut_out, GLOBAL(clk), VCC, , , , , , );


--clk is clk at PIN_M24
--operation mode is input

clk = INPUT();


--code is code at PIN_F4
--operation mode is output

code = OUTPUT(m[0]);



⌨️ 快捷键说明

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