Professional Documents
Culture Documents
Download VHDL For Engineers 1st Edition Short Solutions Manual all chapters
Download VHDL For Engineers 1st Edition Short Solutions Manual all chapters
Solutions Manual
Go to download the full and correct content document:
https://testbankfan.com/product/vhdl-for-engineers-1st-edition-short-solutions-manual/
More products digital (pdf, epub, mobi) instant
download maybe you interests ...
https://testbankfan.com/product/thermodynamics-for-engineers-1st-
edition-kroos-solutions-manual/
https://testbankfan.com/product/product-design-for-engineers-1st-
edition-shetty-solutions-manual/
https://testbankfan.com/product/fluid-mechanics-for-
engineers-1st-edition-chin-solutions-manual/
https://testbankfan.com/product/thermodynamics-for-engineers-si-
edition-1st-edition-kroos-solutions-manual/
Calculus for Scientists and Engineers 1st Edition
Briggs Solutions Manual
https://testbankfan.com/product/calculus-for-scientists-and-
engineers-1st-edition-briggs-solutions-manual/
https://testbankfan.com/product/matlab-programming-with-
applications-for-engineers-1st-edition-chapman-solutions-manual/
https://testbankfan.com/product/introduction-to-renewable-energy-
for-engineers-1st-edition-hagen-solutions-manual/
https://testbankfan.com/product/probability-and-statistics-for-
engineers-and-scientists-for-engineers-9th-edition-johnson-
solutions-manual/
https://testbankfan.com/product/essentials-of-probability-
statistics-for-engineers-scientists-1st-edition-walpole-
solutions-manual/
Chapter 6 VHDL for Engineers Solutions
6.1 There are three common kinds of simulators for digital systems: time driven, event driven, and cycle based.
Time-driven simulation is the slowest. Cycle-based simulation is the fastest. However, cycle-based simulation is
only applicable to the functional simulation of synchronous sequential systems that have a single clock.
6.2 The VHDL LRM defines how an event-driven simulator that is compliant with the standard must execute the
VHDL language.
6.3 For a time-based simulator to simulate a circuit to a resolution of 1 ns it has to evaluate the model every 1 ns,
or 2 x 106 times for 2 ms of simulated time. For an event driven simulator, if the input changes only two times in
2 ms it has to evaluate the model only twice in 2 ms.
6.4 The three steps an event-driven simulator performs to accomplish a simulation are: elaboration, initialization,
and repeated execution of simulation cycles.
6.5
(a1)
library ieee;
use ieee.std_logic_1164.all;
entity andor is
port(
a, b, c : in std_logic;
y : out std_logic
);
end andor;
y <= (a and b) or c;
end boolean_expr;
(a2)
end selected;
1
(a3)
end conditional;
(b1)
process (a, b, c)
begin
y <= (a and b) or c;
end process;
(b2)
process (a, b, c)
begin
case std_logic_vector'(a, b, c) is
when "000" | "010" | "100" => y <= '0';
when others => y <= '1';
end case;
end process;
(b3)
process (a, b, c)
begin
if a = '1' and b ='1' then
y <= '1';
elsif c = '1' then
y <= '1';
else
y <= '0';
end if;
end process;
6.6 Since the testbench was not described as selfchecking, f is not shown brought back to simulation process tb.
2
a uut/u1
s1 s2
b
tb uut/u0
f
uut/u2
c
6.7
(a)
(b)
sum
uut/p1
a, b
tb
a, b
uut/p2
carry_out
(c)
After elaboration
a < ‘U’ @ 0
b < ‘U’ @ 0
3
Signal Current < Signal Driver Transaction Queue
Value
(d)
Design: p06_07
TIME Delta a_tb b_tb sum_tb carry_out_tb
0.000 0 U U U U
0.000 1 0 0 U U
0.000 2 0 0 0 0
6.8
(a)
(b)
a, b uut/u1 s1
c_bar
tb uut/u2
f
(c)
Design: p06_08
TIME Delta a b c_bar f
0.000 0 U U U U
0.000 1 0 0 0 U
0.000 2 0 0 0 1
4
6.9
(a) An assumption is made that the testbench is not selfchecking.
a, b uut/u0
s1
f
tb uut/u1
c uut/u2
s2
(b)
Design: p06_09
TIME Delta a b c f
0.000 0 U U U U
0.000 1 0 0 0 U
0.000 3 0 0 0 0
50.000 ns 1 0 0 1 0
50.000 ns 3 0 0 1 1
6.10
(a) and (b)
library ieee;
use ieee.std_logic_1164.all;
entity fcn is
port(
a, b, c : in std_logic; f : out std_logic);
end fcn;
5
begin
(c)
a, b uut/u0
s1
tb uut/u2
a,c uut/u1
s2
f
6.11 If a design description has more than one simulation process that contains an assignment statement that
assigns a value to the same signal it has multiple signal drivers. Each of these processes defines its own separate
driver for that signal. For such a multiply driven signal, the simulator must create multiple driver queues for the
same signal. Such a situation frequently occurs in a design with bused connections, a bus signal has multiple
drivers.
6.12 During a simulation, each simulator process can be in one of three states: suspended, active, or running. The
status of the simulation process in each state is:
• Suspended: simulation process is not running or active
• Active: simulation process is in the active processes queue waiting to be executed.
6
• Running: simulator is executing the simulation process.
6.13 At the beginning of the initialization phase, the current time (Tc) is set to 0. The kernel places all of the sim-
ulation processes in the active processes queue. Each simulation process is then taken from this queue and exe-
cuted until it suspends. The order of execution of simulation processes during initialization is not important. The
initial execution of each simulation process ensures that all initial transactions are scheduled, so that the simula-
tion may continue. A simulation process is suspended either implicitly or explicitly. A process with a sensitivity
list is suspended implicitly after its sequential statements have been executed to the end of the process. A process
with one or more wait statements is suspended explicitly when its first wait statement is executed.
6.14
(a).
After elaboration
a < ‘U’ @ 0
b < ‘U’ @ 0
(b)
a sum
stim_a uut/u0
a
b
carry_out
stim_b uut/u1
b
(c)
stim_b: process
begin
b_tb <= '0';
wait for 20 ns;
b_tb <= '1';
wait for 20 ns;
b_tb <= '0';
wait for 20 ns;
b_tb <= '1';
wait;
7
end process;
(d)
Design: p06_14
TIME Delta a_tb b_tb sum_tb carry_out_tb
0.000 0 U U U U
0.000 1 0 0 U U
0.000 2 0 0 0 0
6.15
(a)
a s1
p0
b
f
p2
p1
c s2
(b)
(c)
8
tb0
UUT/p0
s1
a
b
tb1 UUT/p2 f
s2
UUT/p1
tb2
c
(d)
(e)
9
6.16
tb: process
begin
enable <= '0';
wait for 50 ns;
enable <= '1';
wait;
end process;
6.17 Increasing the delta cycle limit will not solve the problem because the number of cycles required is infinite.
6.18
library ieee;
use ieee.std_logic_1164.all;
entity norwfb is
port(
enable : in std_logic;
sigout : out std_logic
);
end norwfb;
end dataflow;
For the functional simulation, with the enable input starting at ‘1’ the output stays ‘0’ until the enable input is
made ‘0’ at 40 ns. At that point a delta count overflow occurs and the simulation stops.
For the timing simulation, with the enable input starting at ‘1’ after a 20 ns delay the output becomes and stays
‘0’ until the enable input is made ‘0’ at 40 ns. At that point the output oscillates every 20 ns until the enable
input is made ‘1’ at 160 ns, at which point the output becomes and remains ‘0’. The following waveform
shows this relationship for a PLD with a 10 ns delay (not 20 ns).
10
6.19 The signal attributes transaction, quiet, active, and last_active can be categorized as transaction related. The
signal attributes stable, delayed, event, last_event, and last_value can be categorized as event related. Attributes
driving and driving_value can be categorized as general.
6.20
(a)
(b)
sigx’last_event at 7 ns (7 ns - 0 ns) = 7 ns
sigx’last_active at 7 ns (7 ns - 5 ns) = 2 ns
sigx’last_value at 7 ns = ‘U’
6.21
11
(a)
(b)
sigy’last_event at 28 ns (28 ns - 10 ns) = 18 ns
sigy’last_active at 28 ns (28 ns - 25 ns) = 3 ns
sigy’last_value at 28 ns = ‘1’
6.22 If the declaration of a variable was allowed in the declarative part of an architecture and two processes in the
architecture body read and modify that variable, the variable’s modification is indeterminate if both processes
contain the same signal in their sensitivity lists. This is because we cannot know which process is executed first
in response to and event on that signal and the variable will immediately take its modified value.
12
Another random document with
no related content on Scribd:
A businesslike atmosphere filtered through the quiet of the Smokies.
Though wolves and panthers had largely disappeared by 1910, fur
buyers and community traders enjoyed a brisk exchange in mink,
raccoon, fox, and ’possum hides. Oak bark and chestnut wood,
called “tanbark” and “acid wood” because they were sources of
valuable tannic acid, brought $7 per cord when shipped to Asheville
or Knoxville. As the sawmills flourished, makeshift box houses of
vertical poplar and chestnut planks gave way to more substantial
weatherboarded homes of horizontal lengths and tight-fitting frames.
Slick, fancy, buggy-riding “drummers” peddled high-button shoes and
off-color stories. The spacious Wonderland Park Hotel and the
Appalachian Club at Elkmont, and a hunting lodge on Jake’s Creek
graced the once forbidding mountainsides.
Undergirding this development was a growing cash base: peaches
and chestnuts, pork and venison, wax and lard—translated into
money—brought flour and sugar, yarn and needles, tools and
ammunition. Yet in the midst of this new-found activity, many clung to
their old habits. Children still found playtime fun by sliding down hills
of pine needles and “riding” poplar saplings from treetop to treetop.
Hard-shell Baptist preachers, such as the hunter and “wilderness
saddle-bagger” known as “Preacher John” Stinnett, still devoted long
spare hours, and sometimes workdays as well, to reading The Book:
“I just toted my Bible in a tow sack at the handle of my bull tongue
and I studied it at the turn of the furrow and considered it through the
rows.”
But whatever the immediate considerations of the hour happened to
be, logging was the order of the day. From the Big Pigeon River, all
the way to the Little Tennessee, the second generation of timber-
cutters had moved into the Smokies on a grand scale.
The companies, with their manpower, their strategically placed
sawmills, and their sophisticated equipment, produced board feet of
lumber by the millions. The rest of the country, with its increased
demands for paper and residential construction, absorbed these
millions and cried for more. By 1909, when production attained its
peak in the Smokies and throughout the Appalachians, logging
techniques had reached such an advanced state that even remote
stands of spruce and hemlock could be worked with relative ease.
Demand continued unabated and even received a slight boost when
World War I broke out in 1914.
Laura Thornborough
Wiley Oakley, his wife, and children gather on the
porch of their Scratch Britches home at Cherokee
Orchard with “Minnehaha.” Oakley always said, “I
have two women: one I talk to and one who talks to
me.”
National Park Service
Oakley was a park guide before there was a park. And
in that role he nearly always wore a red plaid shirt. He
developed friendships with Henry Ford and John D.
Rockefeller and became known as the “Will Rogers of
the Smokies.”
In Horace Kephart’s own eyes, his greatest education came from the
spirited breed of mountain man known as “blockade runners” or
simply “blockaders.” These descendants of hard-drinking Scotsmen
and Irishmen had always liked to “still” a little corn whisky to drink
and, on occasion, to sell. But as the 1920s opened into the era of
Prohibition, the mountain distiller of a now contraband product
reached his heyday. He found and began to supply an expanding,
and increasingly thirsty market.
Stealth became the keynote in this flourishing industry. Mountaineers
searched out laurel-strangled hollows and streams that seemed
remote even to their keen eyes. There they assembled the copper
stills into which they poured a fermented concoction of cornmeal,
rye, and yeast known as “sour mash” or “beer.” By twice heating the
beer and condensing its vapors through a water-cooled “worm” or
spiral tube, they could approximate the uncolored liquor enjoyed at
the finest New York parties. And by defending themselves with
shotguns rather than with words, they could continue their
approximations.
In this uniquely romantic business, colorful characters abounded on
both sides of the law. Horace Kephart wrote about a particular pair of
men who represented the two legal extremes: the famous
moonshiner Aquilla Rose, and the equally resilient revenuer from the
Internal Revenue Service, W. W. Thomason.
Aquilla, or “Quill,” Rose lived for 25 years at the head of sparsely
populated Eagle Creek. After killing a man in self-defense and hiding
out in Texas awhile, Rose returned to the Smokies with his wife and
settled so far up Eagle Creek that he crowded the Tennessee-North
Carolina state line. Quill made whisky by the barrel and seemed to
drink it the same way, although he was occasionally seen playing his
fiddle or sitting on the porch with his long beard flowing and his
Winchester resting across his lap. His eleventh Commandment, to
“never get ketched,” was faithfully observed, and Quill Rose
remained one of the few mountain blockaders to successfully
combine a peaceable existence at home with a dangerous livelihood
up the creek.
W.W. Thomason visited Horace Kephart at Bryson City in 1919.
Kephart accepted this “sturdy, dark-eyed stranger” as simply a tourist
interested in the moonshining art. While Thomason professed
innocence, his real purpose in the Smokies was to destroy stills
which settlers were operating on Cherokee lands to evade the local
law. He prepared for the job by taking three days to carve and paint
a lifelike rattlesnake onto a thick sourwood club. During the following
weeks, he would startle many a moonshiner by thrusting the stick
close and twisting it closer.
When Kephart led the “Snake-Stick Man” into whiskyed coves in the
Sugarlands or above the Cherokee reservation, he found himself
deputized and a participant in the ensuing encounters. More often
than not, shots rang out above the secluded thickets. In one of these
shootouts, Thomason’s hatband, solidly woven out of hundreds of
strands of horsehair, saved this fearless revenuer’s life.