Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 1. Write inv HDL module to describe four inverters connected to 4-bit busses. 2. Sketch a schematic of the circuit. Source Code module main;

Task

1. Write inv HDL module to describe four inverters connected to 4-bit busses.

2. Sketch a schematic of the circuit.

Source Code

module main;

reg [3:0]a;

wire [3:0]y;

inv i( .a(a), .y(y) );

initial

begin

$dumpfile("dump.vcd");

$dumpvars(1, main);

$display("Time \t a \t y");

$monitor("%3d \t %b \t %b \t ",$time, a,y);

a=1;

//loop over task 4 times

repeat(4)

begin

change_a;

end

end

task change_a;

begin

#5 a=a+1;

end

endtask

endmodule

Results

image text in transcribed

Figure 1: Display

image text in transcribed

Figure 2: Waveform

Log Share 2018-02-26 14:02:18 EST] iverilog '-Wall' design.sv testbench.sv&&unbuffer vvp a.out VCD info: dumpfile dump.vcd opened for output. Time 0001 0010 1101 0011 0100 1011 0101 1010 1110 5 1100 15 20 Finding VCD file.. ./dump.vcd (2018-02-26 14:02:19 EST] Opening EPWave Done

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

9. Power and politics can be destructive forces in organizations.

Answered: 1 week ago