diff --git a/.pic/Basic Verilog structures/assignments/fig_03.drawio.svg b/.pic/Basic Verilog structures/assignments/fig_03.drawio.svg index 4871d7b..2ca9de6 100644 --- a/.pic/Basic Verilog structures/assignments/fig_03.drawio.svg +++ b/.pic/Basic Verilog structures/assignments/fig_03.drawio.svg @@ -1,304 +1,4 @@ - - - - - - - -
-
-
-
-
-
-
-
- - module - - - blocking_assignment - - - ( - -
-
- - - - input - - - - - logic - - - a, b - -
-
- - - - output - - - - - logic - - - c, d - -
-
- - ); - -
-
-
-
- - // блокирующее присваивание -
-
-
- - always_ff - - - @(posedge clk) begin - -
-
- - - - b = a; - -
-
- -
-
-
-
- - c = b; - - - // обновленное значение b - -
-
- -
-
-
-
- - d = c; - - - // обновленное значение с - -
-
- - end - -
-
- -
-
-
-
- - endmodule - -
-
-
-
-
-
-
-
-
- - module blocking_assignment(... - -
-
- - - - -
-
-
-
-
-
-
-
- - module - - - non - - - bloc - - - king_a - - - ssignment - - - ( - -
-
- - - - input - - - - - logic - - - a, b - -
-
- - - - output - - - - - logic - - - c, d - -
-
- - ); - -
-
-
-
- - // неблокирующее присваивание -
-
-
- - always_ff - - - @(posedge clk) begin - -
-
- - - - b <= a; - -
-
- -
-
-
-
- - c <= b; - - - // старое значение b - -
-
- -
-
-
-
- - d <= c; - - - // старое значение c - -
-
- - end - -
-
- -
-
-
-
- - endmodule - -
-
-
-
-
-
-
-
-
- - module nonblocking_assignment(... - -
-
- - - - - - - - - - - - - - - - -
- - - - - Text is not SVG - cannot display - - - -
\ No newline at end of file + + + +
module blocking_assignment(
  input  logic a, b
  output logic c, d
);

// blocking assignment
always_ff @(posedge clk) begin
  b = a;

  c = b;  // updated value of b

  d = c;  // updated value of с
end

endmodule
module blocking_assignment(...
module nonblocking_assignment(
  input  logic a, b
  output logic c, d
);

// non-blocking assignment
always_ff @(posedge clk) begin
  b <= a;

  c <= b;  // old value of b

  d <= c;  // old value of c
end

endmodule
module nonblocking_assignment(...
Text is not SVG - cannot display
\ No newline at end of file diff --git a/.pic/Basic Verilog structures/assignments/fig_14.drawio.svg b/.pic/Basic Verilog structures/assignments/fig_14.drawio.svg index 76320dc..6674ef3 100644 --- a/.pic/Basic Verilog structures/assignments/fig_14.drawio.svg +++ b/.pic/Basic Verilog structures/assignments/fig_14.drawio.svg @@ -1,161 +1,4 @@ - - - - - - - -
-
-
-
-
- logic [ - - 3 - - - 1 - - : - - 0 - - ] a,b,c; -
-
-
- - always_comb begin - -
-
-
- - temp - - <= a | b; -
-
-
- - d - - <= c & temp; -
-
- - end - -
-
-
-
-
-
-
- - logic [31:0] a,b,c;... - -
-
- - - - - - - -
-
-
- - 5ns - -
-
-
-
- - 5ns - -
-
- - - - -
-
-
- - 5ns - -
-
-
-
- - 5ns - -
-
- - - - - - - - -
-
-
- - - Первый проход блока always - - -
-
-
-
- - Первый проход блока always - -
-
- - - - - - -
-
-
- - - Второй проход блока always - - -
-
-
-
- - Второй проход блока always - -
-
- -
- - - - - Text is not SVG - cannot display - - - -
\ No newline at end of file + + + +
logic [31:0] a,b,c;
always_comb begin
  temp <= a | b;
  d    <= c & temp;
end
logic [31:0] a,b,c;...
5ns
5ns
5ns
5ns
first pass of the always block
first pass of the...
second pass of the always block
second pass of the...
Text is not SVG - cannot display
\ No newline at end of file diff --git a/.pic/Basic Verilog structures/testbench/tb_1.png b/.pic/Basic Verilog structures/testbench/tb_1.png index eeba199..6f225f7 100644 Binary files a/.pic/Basic Verilog structures/testbench/tb_1.png and b/.pic/Basic Verilog structures/testbench/tb_1.png differ diff --git a/.pic/Basic Verilog structures/verilog syntax/file_structure.png b/.pic/Basic Verilog structures/verilog syntax/file_structure.png index aa9dc62..7ad7f81 100644 Binary files a/.pic/Basic Verilog structures/verilog syntax/file_structure.png and b/.pic/Basic Verilog structures/verilog syntax/file_structure.png differ