Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

C , VERILOG, VHDL.

C , VERILOG, VHDL.

Share this group

Quick Overview

Category
Uncategorized
Language
Total members
287
Total events
0
Total discussions
32
Total views
57K
Total albums
0

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

pls am new to VHDL .. CAN ANYONE HELP ME WITH THE VHDL CODE FOR A 4-BIT PARALLEL ACCE

Status
Not open for further replies.

krisdan

Banned
Newbie level 3
Joined
Oct 17, 2014
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
0
Can anyone help me with the vhdl code for a 4-bit parallel access shift registers with its test bench?
Please i really need your urgent reply.
 

nick123

Member level 2
Member level 2
Joined
Aug 16, 2014
Messages
53
Helped
3
Reputation
8
Reaction score
3
Trophy points
8
Activity points
334
hey i helped u already!!
 

nick123

Member level 2
Member level 2
Joined
Aug 16, 2014
Messages
53
Helped
3
Reputation
8
Reaction score
3
Trophy points
8
Activity points
334
Code:

LIBRARY ieee;
USE ieee.std_logic_1164.all;
------------------------------------------------
ENTITY shiftreg4 IS
PORT ( P: IN STD_LOGIC_VECTOR (3 DOWNTO 0);
Clock:IN STD_LOGIC;
LOAD,I:IN STD_LOGIC;
Q:BUFFER IN STD_LOGIC_VECTOR (3 DOWNTO 0)
);
END shiftreg4;
------------------------------------------------
ARCHITECTURE arch OF shiftreg4 IS
BEGIN
PROCESS
BEGIN
WAIT UNTIL Clock'event AND Clock='1';
IF LOAD='1' THEN
Q<=P;
ELSE
Q(0)<=Q(1);
Q(1)<=Q(2);
Q(2)<=Q(3);
Q(3)<=I;
END IF
END PROCESS;
END ARCH;
------------------------------------------------
Code:
 

Status
Not open for further replies.
Top