Question

WRITE IN SYSTEM VERILOG:

Write a HDL code for 1 bit D-register with a rising edge clock, a synchronous active-low reset and an asynchronous active-hig

0 0
Add a comment Improve this question Transcribed image text
Answer #1
Program1:

 
Library IEEE;
USE IEEE.Std_logic_1164.all;

 
entity Rising Edge_DFlipFlop_Sync Active low Reset is 
   port(
      Q : out std_logic;    
      Clk :in std_logic;  
   sync_reset: in std_logic;  
      D :in  std_logic    
   );
end Rising Edge_DFlipFlop_Sync Active low Reset;
architecture Behavioral of Rising Edge_DFlipFlop_Sync Active low Reset is  
begin  
 process(Clk)
 begin 
    if(rising_edge(Clk)) then
   if(sync_reset='0') then 
    Q <= '0';
   else 
    Q <= D; 
end if;
    end if;       
 end process;  
end Behavioral; 
Program2:

 
Library IEEE;
USE IEEE.Std_logic_1164.all;

 
entity RisingEdge_DFlipFlop_AsyncResetHigh is 
   port(
      Q : out std_logic;    
      Clk :in std_logic;  
   sync_reset: in std_logic;  
      D :in  std_logic    
   );
end RisingEdge_DFlipFlop_AsyncResetHigh;
architecture Behavioral of RisingEdge_DFlipFlop_AsyncResetHigh is  
begin  
 process(Clk,sync_reset)
 begin 
     if(sync_reset='1') then 
   Q <= '0';
     elsif(rising_edge(Clk)) then
   Q <= D; 
  end if;      
 end process;  
end Behavioral; 
Add a comment
Know the answer?
Add Answer to:
Write a HDL code for 1 bit D-register with a rising edge clock, a synchronous active-low reset an...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write an HDL code for a 32-bit Up-Down counter with rising edge clock, synchronous reset, and an ...

    WRITE IN SYSTEM VERILOG: Write an HDL code for a 32-bit Up-Down counter with rising edge clock, synchronous reset, and an up_down selection input. B1. Write an HDL code for a 32-bit Up-Down counter with rising edge clock, synchronous reset, and an up_down selection input. B1.

  • 6. (20%) Write HDL code to synthesize the following circuits: a. 8-bit register. b. 9-bit Register...

    6. (20%) Write HDL code to synthesize the following circuits: a. 8-bit register. b. 9-bit Register with Asynchronous Reset c. N-bit Register with Synchronous Reset where N is a parameter d. N-bit register with Enable and Asynchronous reset where N is a parameter e. 8-bit latch

  • Can anyone solve this? i dont understand? verilog 1. (30 pts) Design a mod-6 counter. A...

    Can anyone solve this? i dont understand? verilog 1. (30 pts) Design a mod-6 counter. A mod-6 counter updates its output per clock rising edge according to the following sequence: 000, 001, 010, 011, 100, 101 (then repeat the pattern....). en is enable control (synchronous high active), resetn is reset control (asynchronous low active signal to reset counting sequence to 000) Complete the following Verilog code: en module mod6(clock, resetn, en, z); zI2:0] clock resetn Endmodule

  • Experiment #3 Design and create simulation waveform for an 8-bit up/down synchronous (rising edge of clock) binary coun...

    Experiment #3 Design and create simulation waveform for an 8-bit up/down synchronous (rising edge of clock) binary counter using Verilog Remember that your testbench can include statements such as always begin #10 clock="clock; end which specifies that the clock (reg) should toggle every 10 nSec Experiment #3 Design and create simulation waveform for an 8-bit up/down synchronous (rising edge of clock) binary counter using Verilog Remember that your testbench can include statements such as always begin #10 clock="clock; end which...

  • I need help doing the code using Verilog modelsim Design a 32-bit register using the D...

    I need help doing the code using Verilog modelsim Design a 32-bit register using the D Flip-Flop from part (1) so that it has the following features: (a) The Register has these ports Outputs: Q[31:0] Inputs: D[31:0] CLK is the clock signal EN is a synchronous signal for enabling the register. When EN is asserted at the sensitive edge of the CLK, the input D is loaded into the register. RESET We will leave this input unconnected, but will define...

  • Lab 7: Design a 4 bit register in VHDL. The register file has a synchronous load...

    Lab 7: Design a 4 bit register in VHDL. The register file has a synchronous load signal and an asynchronous reset. When the reset signal is high the register file should be cleared. The input is stored only when the load and clock signal is high. 

  • Assignment: Implement an 8 bit register in VHDL/Verilog using Model Sim software. Show two test cases...

    Assignment: Implement an 8 bit register in VHDL/Verilog using Model Sim software. Show two test cases for data read and write into the register. The register has an enable and reset signal. When the reset is high the register should be cleared. When the enable is high and reset is low, data should be written into the register. Hint: The demo code shown below has the implementation for a 4-bit register that can be used as an example. library ieee;...

  • please give the verilog code and explain in the form of comments. Part I Consider the...

    please give the verilog code and explain in the form of comments. Part I Consider the circuit in Figure 1. It is a 4-bit synchronous counter (text Section 5.9.2) that uses four T-type flip- flops (text Section 5.5). The counter increments its value on each positive edge of the clock if the Enable signal is asserted. The counter is reset to 0 by setting the Clear b signal low - it is an active-low asynchronous clear. You are to implement...

  • 3. Answer the following questions about a data flip-flop (D-Flip Flop): a) (4 ps) Write the VHDL required to define a rising-edge triggered (RET) D-Flip Flop with additional clock enable (CEN) an...

    3. Answer the following questions about a data flip-flop (D-Flip Flop): a) (4 ps) Write the VHDL required to define a rising-edge triggered (RET) D-Flip Flop with additional clock enable (CEN) and reset inputs. Your reset may be synchronous or asynchronous. Assume any input, output, or signal variables that you require have already been declared in VHDL (you do not have to write the declarations for these) b) [I pal ls your reset syachronous or asynchronous for the D-Flip Flop...

  • Use the Quartus Prime Text Editor to implement a behavioral model of the D flip-flop described ab...

    Use the Quartus Prime Text Editor to implement a behavioral model of the D flip-flop described above in a file named d_flops.sv. Specify the D flip-flop’s module according to the interface specification given in the table below. Port Mode Data Type Size Description RST in logic 1-bit Active high asynchronous reset CLK in logic 1-bit Synchronizing clock signal EN in logic 1-bit Synchronous clock enable D in logic 1-bit Synchronous data input Q out logic 1-bit Current/present state Qbar out...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT