uaveiro-leci/1ano/2semestre/lsd/pratica08/Chronometer/ControlUnit.smf

210 lines
3.5 KiB
Plaintext
Raw Permalink Normal View History

/*
WARNING: Do NOT edit the input and output ports in this file in a text
editor if you plan to continue editing the block that represents it in
the Block Editor! File corruption is VERY likely to occur.
Copyright (C) 1991-2015 Altera Corporation. All rights reserved.
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 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 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.
Generated by Quartus Prime Version 15.1.1 Build 189 12/02/2015 SJ Lite Edition
Created on Mon Apr 11 16:06:33 2016
*/
VERSION = "3.0";
HEADER
(
GENERAL{
RMODE = "S";
RA_LEVEL = "H";
HOPT = "VHDL";
}
SPORT{
NAME = "clk";
PTYPE = "CI";
REG = "N";
OUTS = "N";
}
SPORT{
NAME = "reset";
PTYPE = "RI";
REG = "N";
OUTS = "N";
}
SPORT{
NAME = "statop";
PTYPE = "OI";
REG = "N";
OUTS = "N";
}
SPORT{
NAME = "laprst";
PTYPE = "OI";
REG = "N";
OUTS = "N";
}
SPORT{
NAME = "cntRst";
PTYPE = "OU";
REG = "N";
OUTS = "C";
}
SPORT{
NAME = "cntEnb";
PTYPE = "OU";
REG = "N";
OUTS = "C";
}
SPORT{
NAME = "regEnb";
PTYPE = "OU";
REG = "N";
OUTS = "C";
}
STATE{
NAME = "CLEARED";
STYPE = "RE";
PT = (40,80);
OUTP = "cntRst";
OUT_VALUE = "1";
COND = "";
OUTP = "cntEnb";
OUT_VALUE = "1";
COND = "";
OUTP = "regEnb";
OUT_VALUE = "1";
COND = "";
}
STATE{
NAME = "STARTED";
STYPE = "NR";
PT = (200,80);
OUTP = "cntRst";
OUT_VALUE = "0";
COND = "";
OUTP = "cntEnb";
OUT_VALUE = "1";
COND = "";
OUTP = "regEnb";
OUT_VALUE = "1";
COND = "";
}
STATE{
NAME = "STOPPED";
STYPE = "NR";
PT = (360,80);
OUTP = "cntRst";
OUT_VALUE = "0";
COND = "";
OUTP = "cntEnb";
OUT_VALUE = "0";
COND = "";
OUTP = "regEnb";
OUT_VALUE = "1";
COND = "";
}
STATE{
NAME = "LAPVIEW";
STYPE = "NR";
PT = (520,80);
OUTP = "cntRst";
OUT_VALUE = "0";
COND = "";
OUTP = "cntEnb";
OUT_VALUE = "1";
COND = "";
OUTP = "regEnb";
OUT_VALUE = "0";
COND = "";
}
TRANS{
SSTATE = "CLEARED";
DSTATE = "STARTED";
EQ = "statop";
PT = (64,79);
PT = (64,39);
PT = (224,39);
PT = (224,79);
PT = (128,32);
}
TRANS{
SSTATE = "STARTED";
DSTATE = "LAPVIEW";
EQ = "laprst";
PT = (224,79);
PT = (224,-1);
PT = (544,-1);
PT = (544,79);
PT = (368,0);
}
TRANS{
SSTATE = "STARTED";
DSTATE = "STOPPED";
EQ = "(~laprst) & statop";
PT = (224,79);
PT = (224,39);
PT = (384,39);
PT = (384,79);
PT = (352,40);
}
TRANS{
SSTATE = "LAPVIEW";
DSTATE = "STARTED";
EQ = "laprst";
PT = (544,129);
PT = (544,209);
PT = (224,209);
PT = (224,129);
PT = (440,160);
}
TRANS{
SSTATE = "STOPPED";
DSTATE = "STARTED";
EQ = "statop";
PT = (384,129);
PT = (384,169);
PT = (224,169);
PT = (224,129);
PT = (288,136);
}
TRANS{
SSTATE = "STOPPED";
DSTATE = "CLEARED";
EQ = "(~statop) & laprst";
PT = (384,129);
PT = (384,209);
PT = (64,209);
PT = (64,129);
PT = (120,160);
}
)
END