Notice: file_put_contents(): Write of 8562 bytes failed with errno=28 No space left on device in /var/www/tgoop/post.php on line 50

Warning: file_put_contents(): Only 8192 of 16754 bytes written, possibly out of free disk space in /var/www/tgoop/post.php on line 50
قسم هندسة الحاسب الالي@engineeringcomputer2004 P.7678
ENGINEERINGCOMPUTER2004 Telegram 7678
#EC482
module BinaryAdderClkRst (A, B, Cin, clk, rst, SUM, Cout);

input [3:0] A;
input [3:0] B;
input Cin;
input clk;
input rst;

output [3:0] SUM;
output Cout;

reg [3:0] SUM;
reg Cout;

always @ (posedge clk or posedge rst) // ( Try Asynchronous / Synchronous reset, and note the different!)
begin
   if (rst)
   begin
       SUM <= 0;
       Cout <= 0;
   end
   else
   begin
       {Cout,SUM} <= A + B + Cin;
   end
end

endmodule





_______________


`timescale 1ns/1ns

module BinaryAdderClkRst_tb;

reg [3:0] A;
reg [3:0] B;
reg Cin;
reg clk;
reg rst;

wire [3:0] SUM;
wire Cout;

BinaryAdderClkRst UUT (.A(A), .B(B), .Cin(Cin), .clk(clk), .rst(rst), .SUM(SUM), .Cout(Cout));

always #10 clk = ~clk;

initial
begin
   A = 4'b0000;
   B = 4'b0000;
   Cin = 0;
   clk = 0;
   rst = 0;

   #80 A = 4'd15; // A = 15
   #70 B = 4'd5;  // B = 5
   #90 Cin = 1;  // Cin = 1

   #70 rst = 1;  // Assert reset
   #80 A = 4'd8;   // A = 8
   #80 B = 4'd10;  // B = 10
   #99 Cin = 0;  // Cin = 0

   #60 rst = 0;  // Deassert reset
   #80 A = 4'd12;  // A = 12
   #70 B = 4'd7;   // B = 7
   #90 Cin = 1;  // Cin = 1

   #70 A = 4'd11;  // A = 11
   #90 B = 4'd9;   // B = 9
   #60 Cin = 1;  // Cin = 1

   #70 A = 4'd12;  // A = 12
   #50 B = 4'd6;   // B = 6
   #60 Cin = 0;  // Cin = 0

   #70 A = 4'd13;  // A = 13
   #50 B = 4'd4;   // B = 4
   #60 Cin = 1;  // Cin = 1

   #100 $finish; // End simulation
end

endmodule



tgoop.com/engineeringcomputer2004/7678
Create:
Last Update:

#EC482
module BinaryAdderClkRst (A, B, Cin, clk, rst, SUM, Cout);

input [3:0] A;
input [3:0] B;
input Cin;
input clk;
input rst;

output [3:0] SUM;
output Cout;

reg [3:0] SUM;
reg Cout;

always @ (posedge clk or posedge rst) // ( Try Asynchronous / Synchronous reset, and note the different!)
begin
   if (rst)
   begin
       SUM <= 0;
       Cout <= 0;
   end
   else
   begin
       {Cout,SUM} <= A + B + Cin;
   end
end

endmodule





_______________


`timescale 1ns/1ns

module BinaryAdderClkRst_tb;

reg [3:0] A;
reg [3:0] B;
reg Cin;
reg clk;
reg rst;

wire [3:0] SUM;
wire Cout;

BinaryAdderClkRst UUT (.A(A), .B(B), .Cin(Cin), .clk(clk), .rst(rst), .SUM(SUM), .Cout(Cout));

always #10 clk = ~clk;

initial
begin
   A = 4'b0000;
   B = 4'b0000;
   Cin = 0;
   clk = 0;
   rst = 0;

   #80 A = 4'd15; // A = 15
   #70 B = 4'd5;  // B = 5
   #90 Cin = 1;  // Cin = 1

   #70 rst = 1;  // Assert reset
   #80 A = 4'd8;   // A = 8
   #80 B = 4'd10;  // B = 10
   #99 Cin = 0;  // Cin = 0

   #60 rst = 0;  // Deassert reset
   #80 A = 4'd12;  // A = 12
   #70 B = 4'd7;   // B = 7
   #90 Cin = 1;  // Cin = 1

   #70 A = 4'd11;  // A = 11
   #90 B = 4'd9;   // B = 9
   #60 Cin = 1;  // Cin = 1

   #70 A = 4'd12;  // A = 12
   #50 B = 4'd6;   // B = 6
   #60 Cin = 0;  // Cin = 0

   #70 A = 4'd13;  // A = 13
   #50 B = 4'd4;   // B = 4
   #60 Cin = 1;  // Cin = 1

   #100 $finish; // End simulation
end

endmodule

BY قسم هندسة الحاسب الالي


Share with your friend now:
tgoop.com/engineeringcomputer2004/7678

View MORE
Open in Telegram


Telegram News

Date: |

Co-founder of NFT renting protocol Rentable World emiliano.eth shared the group Tuesday morning on Twitter, calling out the "degenerate" community, or crypto obsessives that engage in high-risk trading. With Bitcoin down 30% in the past week, some crypto traders have taken to Telegram to “voice” their feelings. In handing down the sentence yesterday, deputy judge Peter Hui Shiu-keung of the district court said that even if Ng did not post the messages, he cannot shirk responsibility as the owner and administrator of such a big group for allowing these messages that incite illegal behaviors to exist. Judge Hui described Ng as inciting others to “commit a massacre” with three posts teaching people to make “toxic chlorine gas bombs,” target police stations, police quarters and the city’s metro stations. This offence was “rather serious,” the court said. Content is editable within two days of publishing
from us


Telegram قسم هندسة الحاسب الالي
FROM American