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.
any error in this code?
entity reg4 is
port(d0,d1,d2,d3, clr,clk : in bit;
q0,q1,q2,q3 : out bit);
end reg4;
architecture structure of reg4 is
component DFF
port(D,clk :inbit; Q:outbit);
end component;
begin
DFF0: DFF portmap(d0, clock, q0);
DFF1: DFF portmap(d1, clock, q1);
DFF2: DFF...
Thanks Klaus. but i want to make it using instances of four flip flops
i have written this code. someone please verify it
entity reg4 is
port(D,clk : in bit;
Q: out bit);
end reg4;
architecture behave of reg4 is
component DFF
port(D,clk :inbit; Q:outbit);
end component;
signal Q: in...
Thanks KlausSt. but I want to make it using four instances of D flip flops.
i have written this code. can you please verify it.
library IEEE;
use IEEE.std_logic_1164.all;
entity reg4 is
port (d : in std_logic;
clear : in std_logic;
clk : in std_logic;
Qout ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.