uart_emitter.fit.eqn

来自「Uart port 是一段不错的」· EQN 代码 · 共 287 行

EQN
287
字号
-- 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.
--A1L32Q is serial~reg0 at LC8_1_C2
--operation mode is normal

A1L32Q_lut_out = !A1L3 & !A1L2 & !A1L1 & A1L5;
A1L32Q = DFFE(A1L32Q_lut_out, GLOBAL(clock), !GLOBAL(rest), , );


--A1L28Q is finish_F~reg0 at LC3_4_C2
--operation mode is normal

A1L28Q_lut_out = state.over # A1L28Q & state.idle;
A1L28Q = DFFE(A1L28Q_lut_out, GLOBAL(clock), !GLOBAL(rest), , );


--bus_reg[0] is bus_reg[0] at LC6_1_C2
--operation mode is normal

bus_reg[0]_lut_out = bus[0];
bus_reg[0] = DFFE(bus_reg[0]_lut_out, GLOBAL(clock), , , A1L25);


--bus_reg[2] is bus_reg[2] at LC5_1_C2
--operation mode is normal

bus_reg[2]_lut_out = bus[2];
bus_reg[2] = DFFE(bus_reg[2]_lut_out, GLOBAL(clock), , , A1L25);


--state.bit3 is state.bit3 at LC4_1_C2
--operation mode is normal

state.bit3_lut_out = state.bit2;
state.bit3 = DFFE(state.bit3_lut_out, GLOBAL(clock), !GLOBAL(rest), , );


--state.bit1 is state.bit1 at LC7_1_C2
--operation mode is normal

state.bit1_lut_out = state.bit0;
state.bit1 = DFFE(state.bit1_lut_out, GLOBAL(clock), !GLOBAL(rest), , );


--A1L1 is Select~134 at LC3_1_C2
--operation mode is normal

A1L1 = state.bit1 & (bus_reg[0] # state.bit3 & bus_reg[2]) # !state.bit1 & state.bit3 & (bus_reg[2]);


--bus_reg[4] is bus_reg[4] at LC9_2_C2
--operation mode is normal

bus_reg[4]_lut_out = bus[4];
bus_reg[4] = DFFE(bus_reg[4]_lut_out, GLOBAL(clock), , , A1L25);


--bus_reg[7] is bus_reg[7] at LC1_2_C2
--operation mode is normal

bus_reg[7]_lut_out = bus[7];
bus_reg[7] = DFFE(bus_reg[7]_lut_out, GLOBAL(clock), , , A1L25);


--state.bit8 is state.bit8 at LC2_3_C2
--operation mode is normal

state.bit8_lut_out = state.bit7;
state.bit8 = DFFE(state.bit8_lut_out, GLOBAL(clock), !GLOBAL(rest), , );


--state.bit5 is state.bit5 at LC3_3_C2
--operation mode is normal

state.bit5_lut_out = state.bit4;
state.bit5 = DFFE(state.bit5_lut_out, GLOBAL(clock), !GLOBAL(rest), , );


--A1L2 is Select~135 at LC2_2_C2
--operation mode is normal

A1L2 = bus_reg[7] & (state.bit8 # bus_reg[4] & state.bit5) # !bus_reg[7] & (bus_reg[4] & state.bit5);


--state.bit9 is state.bit9 at LC2_1_C2
--operation mode is normal

state.bit9_lut_out = state.bit8;
state.bit9 = DFFE(state.bit9_lut_out, GLOBAL(clock), !GLOBAL(rest), , );


--state.over is state.over at LC10_1_C2
--operation mode is normal

state.over_lut_out = state.bit9;
state.over = DFFE(state.over_lut_out, GLOBAL(clock), !GLOBAL(rest), , );


--state.idle is state.idle at LC10_2_C2
--operation mode is normal

state.idle_lut_out = !state.over & (load_bus_reg # state.idle);
state.idle = DFFE(state.idle_lut_out, GLOBAL(clock), !GLOBAL(rest), , );


--A1L3 is Select~136 at LC9_1_C2
--operation mode is normal

A1L3 = state.bit9 # !A1L32Q & (state.over # !state.idle);


--A1L25 is bus_reg[7]~0 at LC4_2_C2
--operation mode is normal

A1L25 = load_bus_reg & (!rest & !state.idle);


--state.bit2 is state.bit2 at LC9_3_C2
--operation mode is normal

state.bit2_lut_out = state.bit1;
state.bit2 = DFFE(state.bit2_lut_out, GLOBAL(clock), !GLOBAL(rest), , );


--state.bit0 is state.bit0 at LC10_3_C2
--operation mode is normal

state.bit0_lut_out = !state.idle & load_bus_reg;
state.bit0 = DFFE(state.bit0_lut_out, GLOBAL(clock), !GLOBAL(rest), , );


--state.bit7 is state.bit7 at LC6_3_C2
--operation mode is normal

state.bit7_lut_out = state.bit6;
state.bit7 = DFFE(state.bit7_lut_out, GLOBAL(clock), !GLOBAL(rest), , );


--state.bit4 is state.bit4 at LC1_3_C2
--operation mode is normal

state.bit4_lut_out = state.bit3;
state.bit4 = DFFE(state.bit4_lut_out, GLOBAL(clock), !GLOBAL(rest), , );


--state.bit6 is state.bit6 at LC7_3_C2
--operation mode is normal

state.bit6_lut_out = state.bit5;
state.bit6 = DFFE(state.bit6_lut_out, GLOBAL(clock), !GLOBAL(rest), , );


--bus_reg[6] is bus_reg[6] at LC8_2_C2
--operation mode is normal

bus_reg[6]_lut_out = bus[6];
bus_reg[6] = DFFE(bus_reg[6]_lut_out, GLOBAL(clock), , , A1L25);


--bus_reg[3] is bus_reg[3] at LC3_2_C2
--operation mode is normal

bus_reg[3]_lut_out = bus[3];
bus_reg[3] = DFFE(bus_reg[3]_lut_out, GLOBAL(clock), , , A1L25);


--A1L4 is Select~144 at LC5_2_C2
--operation mode is normal

A1L4 = state.bit4 & !bus_reg[3] & (!bus_reg[6] # !state.bit7) # !state.bit4 & (!bus_reg[6] # !state.bit7);

--A1L6 is Select~148 at LC5_2_C2
--operation mode is normal

A1L6 = state.bit4 & !bus_reg[3] & (!bus_reg[6] # !state.bit7) # !state.bit4 & (!bus_reg[6] # !state.bit7);


--bus_reg[5] is bus_reg[5] at LC5_3_C2
--operation mode is normal

bus_reg[5]_lut_out = bus[5];
bus_reg[5] = DFFE(bus_reg[5]_lut_out, GLOBAL(clock), , , A1L25);


--bus_reg[1] is bus_reg[1] at LC7_2_C2
--operation mode is normal

bus_reg[1]_lut_out = bus[1];
bus_reg[1] = DFFE(bus_reg[1]_lut_out, GLOBAL(clock), , , A1L25);


--A1L5 is Select~146 at LC6_2_C2
--operation mode is normal

A1L5 = (bus_reg[1] & !state.bit2 & (!bus_reg[5] # !state.bit6) # !bus_reg[1] & (!bus_reg[5] # !state.bit6)) & CASCADE(A1L6);


--clock is clock at PIN_95
--operation mode is input

clock = INPUT();


--rest is rest at PIN_127
--operation mode is input

rest = INPUT();


--bus[0] is bus[0] at PIN_15
--operation mode is input

bus[0] = INPUT();


--load_bus_reg is load_bus_reg at PIN_142
--operation mode is input

load_bus_reg = INPUT();


--bus[2] is bus[2] at PIN_32
--operation mode is input

bus[2] = INPUT();


--bus[4] is bus[4] at PIN_13
--operation mode is input

bus[4] = INPUT();


--bus[7] is bus[7] at PIN_11
--operation mode is input

bus[7] = INPUT();


--bus[6] is bus[6] at PIN_26
--operation mode is input

bus[6] = INPUT();


--bus[3] is bus[3] at PIN_30
--operation mode is input

bus[3] = INPUT();


--bus[5] is bus[5] at PIN_130
--operation mode is input

bus[5] = INPUT();


--bus[1] is bus[1] at PIN_29
--operation mode is input

bus[1] = INPUT();


--serial is serial at PIN_14
--operation mode is output

serial = OUTPUT(!A1L32Q);


--finish_F is finish_F at PIN_33
--operation mode is output

finish_F = OUTPUT(A1L28Q);


⌨️ 快捷键说明

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