Implement/Add Multiple Time Delays to 1-bit Signals, RTL Code and Testbench in Verilog and VHDL - P1
#Implement/#Add #Multiple #Time #Delays to 1-bit #Signals, #RTL #Code and #Testbench in #Verilog and #VHDL - P1 SV RTL Code: //// to implement timings with reset, double delay module project(clk, pc, rst, alu_logic, load_logic, store_logic, branch_logic); input [10:0] pc; input clk, rst; output reg alu_logic, load_logic, store_logic, branch_logic; //always @(posedge clk)// wont work //always @(posedge clk or posedge rst)// wont work too //always @(pc or rst) always @(*)// this works like aboe begin int int_; int_ = pc; if (rst) begin alu_logic <= 0; load_logic <= 0; store_logic <= 0; branch_logic <= 0; end else begin if (int_ >= 0 && int_ <= 500)begin // alu/j //alu_logic <= 1; alu_logic <= #20 1; alu_logic <= #40 0; load_logic <= 0; store_logic <= 0; branch_logic <= 0; end else if (int_ >= 504 && int_ <= 600)begin // --load //load_logic <= 1; load_logic <= #40 1; load_logic <= #60 0; alu_logic <= 0; store_logic <= 0; branch_logic <= 0;end else if (int_ >= 604 && int_ <= 700)begin//store //store_logic <= 1; store_logic <= #60 1; store_logic <= #80 0; alu_logic <= 0; load_logic <= 0; branch_logic <= 0; end else begin //--- br; //branch_logic <= 1; branch_logic <= #80 1; branch_logic <= #100 0; alu_logic <= 0; load_logic <= 0; store_logic <= 0;end end end //(always) endmodule VHDL RTL code: library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all;----------------for conv_integer entity project is port( clk : in std_logic; pc : in std_logic_vector(10 downto 0); rst: in std_logic; alu_logic, load_logic, store_logic, branch_logic : out std_logic ); end project; architecture behavioral of project is begin --process(clk, rst) process (rst,pc)---- this works for double delay --process (clk,pc) --process (pc) -process(all)- works only with VHDL 2008 --process (clk) variable int :integer; begin int := conv_integer(pc); --------------Asynxhronous reset if (rst = '1') then alu_logic <= '0'; load_logic <= '0'; store_logic <= '0'; branch_logic <= '0'; else if (clk = '1' and clk'event) then if (int >= 0 and int <= 500) then -- alu/j --alu_logic <= '1'; --alu_logic <= '1' after 20 ns; alu_logic <= '1' after 1*20 ns,'0' after 2*20 ns;-- works with rst, pc in process load_logic <= '0'; store_logic <= '0'; branch_logic <= '0'; -- elsif (int >= 504 and int <= 600) then --load --load_logic <= '1'; --load_logic <= '1' after 40 ns; load_logic <= '1' after 2*20 ns,'0' after 3*20 ns; alu_logic <= '0'; store_logic <= '0'; branch_logic <= '0'; -- elsif (int >= 604 and int <= 700) then -- store --store_logic <= '1'; --store_logic <= '1' after 60 ns; store_logic <= '1' after 3*20 ns,'0' after 4*20 ns; alu_logic <= '0'; load_logic <= '0'; branch_logic <= '0'; -- else --- br/j --branch_logic <= '1'; --branch_logic <= '1' after 80 ns; branch_logic <= '1' after 4*20 ns,'0' after 5*20 ns; alu_logic <= '0'; load_logic <= '0'; store_logic <= '0'; end if; end if; --clk end if;--rst end process; end behavioral;

Implement/Add Multiple Time Delays to 1-bit Signals, RTL Code and Testbench in Verilog and VHDL - P2

Adding Varying Number of Clock Cycles Delays to Signals, RTL Code & Testbench in Verilog and VHDL P2

Adding Varying Number of Clock Cycles Delays to Signals, RTL Code & Testbench in Verilog and VHDL P1

Introduction to Functions with RTL Code Example in Verilog and VHDL with Testbench

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

🚗 BYD : The biggest SCAM of the car industry ?

Casey Muratori – The Big OOPs: Anatomy of a Thirty-five-year Mistake – BSC 2025

Cracking Enigma in 2021 - Computerphile

WHO IS STRONGER? Anatoly VS Bodybuilder | Pretended to be a CLEANER

Why I Left Quantum Computing Research

The Insane Genius of a Formula 1 Gearbox

HD Flower TV Screensaver , Framed Art Painting, TV Art - Nas Gallery

How do Transistors Build into a CPU? 🖥️🤔 How do Transistors Work? 🖥️🤔

Clear Mind Intense Focus | Ambient Techno | ADHD High Focus Support

But what are Hamming codes? The origin of error correction

Deep Work Music | Focus Music for Productivity & Concentration | Ambient Study Background

Vintage Painting | TV Frame Screensaver Art for TV Wallpaper | TV Artwork

Harder Drive: Hard drives we didn't want or need

