Submit Search
Upload
ALU, Registers, Shift Modules
•
Download as DOCX, PDF
•
0 likes
•
102 views
AI-enhanced title
A
Arun Chaudhary
Follow
digital aluc and shift register important content
Read less
Read more
Technology
Report
Share
Report
Share
1 of 4
Download now
Recommended
Decent exposure: Controladores sin @ivars
Decent exposure: Controladores sin @ivars
Leonardo Soto
2 3. standard io
2 3. standard io
웅식 전
C Programming Language Step by Step Part 5
C Programming Language Step by Step Part 5
Rumman Ansari
Matlab code for secant method
Matlab code for secant method
Taimoor Muzaffar Gondal
9. pointer, pointer & function
9. pointer, pointer & function
웅식 전
rtrtrNew text document
rtrtrNew text document
Harish Khodke
JavaScript Gotchas
JavaScript Gotchas
Robert MacLean
Python real time tutorial
Python real time tutorial
Rajeev Kumar
Recommended
Decent exposure: Controladores sin @ivars
Decent exposure: Controladores sin @ivars
Leonardo Soto
2 3. standard io
2 3. standard io
웅식 전
C Programming Language Step by Step Part 5
C Programming Language Step by Step Part 5
Rumman Ansari
Matlab code for secant method
Matlab code for secant method
Taimoor Muzaffar Gondal
9. pointer, pointer & function
9. pointer, pointer & function
웅식 전
rtrtrNew text document
rtrtrNew text document
Harish Khodke
JavaScript Gotchas
JavaScript Gotchas
Robert MacLean
Python real time tutorial
Python real time tutorial
Rajeev Kumar
変数の型 - Java 演習
変数の型 - Java 演習
金沢工業高等専門学校
Mamun
Mamun
Shah Mamun Kabir
Fila de caracteres
Fila de caracteres
Elaine Cecília Gatto
Project filter matlab
Project filter matlab
girma disasa
Cuarto Punto Parte A
Cuarto Punto Parte A
gustavo206
Program presentation
Program presentation
MdAlauddinRidoy
Array menu
Array menu
Sayantan Sur
Plsql
Plsql
Minhazul Nannu
ตัวอย่างการเขียนโปรแกรม โดยใช้ฟังก์ชัน
ตัวอย่างการเขียนโปรแกรม โดยใช้ฟังก์ชัน
Warawut
Lecture#5 Operators in C++
Lecture#5 Operators in C++
NUST Stuff
Vcs5
Vcs5
Malikireddy Bramhananda Reddy
Practical write a c program to reverse a given number
Practical write a c program to reverse a given number
Mainak Sasmal
C programming BY Mazedur
C programming BY Mazedur
Mazedurr rahman
Codigo Ceclav
Codigo Ceclav
cinthiaerendida
V34 numeric function-c
V34 numeric function-c
Dhirendra Chauhan
Practical write a c program to reverse a given number
Practical write a c program to reverse a given number
Mainak Sasmal
05 1 수식과 연산자
05 1 수식과 연산자
Changwon National University
C program to check leap year
C program to check leap year
mohdshanu
ฟังก์ชัน Printf&scanf
ฟังก์ชัน Printf&scanf
สุวิทย์ ดวงดี
A Beginner's Guide to MS Excel
A Beginner's Guide to MS Excel
Anshul Punetha
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Mark Billinghurst
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions
More Related Content
What's hot
変数の型 - Java 演習
変数の型 - Java 演習
金沢工業高等専門学校
Mamun
Mamun
Shah Mamun Kabir
Fila de caracteres
Fila de caracteres
Elaine Cecília Gatto
Project filter matlab
Project filter matlab
girma disasa
Cuarto Punto Parte A
Cuarto Punto Parte A
gustavo206
Program presentation
Program presentation
MdAlauddinRidoy
Array menu
Array menu
Sayantan Sur
Plsql
Plsql
Minhazul Nannu
ตัวอย่างการเขียนโปรแกรม โดยใช้ฟังก์ชัน
ตัวอย่างการเขียนโปรแกรม โดยใช้ฟังก์ชัน
Warawut
Lecture#5 Operators in C++
Lecture#5 Operators in C++
NUST Stuff
Vcs5
Vcs5
Malikireddy Bramhananda Reddy
Practical write a c program to reverse a given number
Practical write a c program to reverse a given number
Mainak Sasmal
C programming BY Mazedur
C programming BY Mazedur
Mazedurr rahman
Codigo Ceclav
Codigo Ceclav
cinthiaerendida
V34 numeric function-c
V34 numeric function-c
Dhirendra Chauhan
Practical write a c program to reverse a given number
Practical write a c program to reverse a given number
Mainak Sasmal
05 1 수식과 연산자
05 1 수식과 연산자
Changwon National University
C program to check leap year
C program to check leap year
mohdshanu
ฟังก์ชัน Printf&scanf
ฟังก์ชัน Printf&scanf
สุวิทย์ ดวงดี
A Beginner's Guide to MS Excel
A Beginner's Guide to MS Excel
Anshul Punetha
What's hot
(20)
変数の型 - Java 演習
変数の型 - Java 演習
Mamun
Mamun
Fila de caracteres
Fila de caracteres
Project filter matlab
Project filter matlab
Cuarto Punto Parte A
Cuarto Punto Parte A
Program presentation
Program presentation
Array menu
Array menu
Plsql
Plsql
ตัวอย่างการเขียนโปรแกรม โดยใช้ฟังก์ชัน
ตัวอย่างการเขียนโปรแกรม โดยใช้ฟังก์ชัน
Lecture#5 Operators in C++
Lecture#5 Operators in C++
Vcs5
Vcs5
Practical write a c program to reverse a given number
Practical write a c program to reverse a given number
C programming BY Mazedur
C programming BY Mazedur
Codigo Ceclav
Codigo Ceclav
V34 numeric function-c
V34 numeric function-c
Practical write a c program to reverse a given number
Practical write a c program to reverse a given number
05 1 수식과 연산자
05 1 수식과 연산자
C program to check leap year
C program to check leap year
ฟังก์ชัน Printf&scanf
ฟังก์ชัน Printf&scanf
A Beginner's Guide to MS Excel
A Beginner's Guide to MS Excel
Recently uploaded
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Mark Billinghurst
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
Softradix Technologies
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
null - The Open Security Community
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
Neo4j
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
Pixlogix Infotech
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Dubai Multi Commodity Centre
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Memoori
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
Deakin University
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
comworks
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
shyamraj55
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
naman860154
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
Mattias Andersson
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
null - The Open Security Community
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Padma Pradeep
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
Recently uploaded
(20)
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
ALU, Registers, Shift Modules
1.
ALU: module alu(a,b,s,y); input[3:0]a; input[3:0]b; input[2:0]s; output[7:0]y; reg[7:0]y; always@(a,b,s) begin case(s) 3'b000:y=a+b; 3'b001:y=a-b; 3'b010:y=a&b; 3'b011:y=a|b; 3'b100:y=4'b1111^a; 3'b101:y=(4'b1111^a)+1'b1; 3'b110:y=a*b; 3'b111:begin y=a; y=y>>1'b1; end endcase end endmodule TESTBENCH: initial
begin a=4'b1101; b=4'b1001; s=3'b000; #100 s=3'b001; #100 s=3'b010; #100 s=3'b011; #100 s=3'b100; #100 s=3'b101; #100 s=3'b110; #100 s=3'b111; end initial #1000 $stop; Endmodule SISO: module siso(clk,rst,a,q); input a; input clk,rst; output q; reg q; always@(posedge clk,posedge rst) begin if(rst==1'b1) q<=1'b0;
2.
else q<=a; end endmodule TESTBENCH: initial clk=1'b1; always #10 clk=~clk; initial
begin a=1'b0;rst=1'b1; #100 rst=1'b0; #100 a=1'b1; #100 rst=1'b1; #100 rst=1'b0; end initial #1000 $stop; Endmodule PIPO: module pipo(clk,rst,a,q); input clk,rst; input[3:0]a; output[3:0]q; reg[3:0]q; always@(posedge clk,posedge rst) begin if (rst==1'b1) q<=4'b0000; else q<=a; end endmodule TESTBENCH: initial clk='b1; always #10 clk=~clk; initial begin a=4'b1101;rst=1'b1; #100 rst=1'b0; #100 a=4'b1000; #100 rst=1'b1; #100 rst=1'b0; end initial #600 $stop; Endmodule SIPO:
3.
module sipo(a,clk,rst,q); input clk,rst; input
a; output [3:0]q; wire [3:0]q; reg [3:0]temp; always@(posedge clk,posedge rst) begin if(rst==1'b1) temp<=4'b0000; else begin temp<=temp<<1'b1; temp[0]<=a; end end assign q=temp; endmodule TESTBENCH: initial clk=1'b0; always #10 clk=~clk; initial begin rst=1'b1; a=1'b1; #500 rst=1'b0; #100 a=1'b0; #100 a=1'b1; #100 a=1'b0; #100 a=1'b0; #100 a=1'b1; #100 a=1'b0; end initial #1300 $stop; endmodule PISO: module piso(clk,rst,a,q); input clk,rst; input [3:0]a; output q; reg q; reg [3:0]temp; always@(posedge clk,posedge rst) begin if(rst==1'b1) begin q<=1'b0; temp<=a; end
4.
else begin q<=temp[0]; temp <= temp>>1'b1; end end endmodule TESTBENCH: initial clk=1'b1; always
#10 clk=~clk; initial begin rst=1'b1; a=4'b1101; #300 rst=1'b0; #200 rst=1'b1; #200 rst=1'b0; end initial #1000 $stop;
Download now