EDA Playground lets you type in and run HDL code (using a selection of free and commercial simulators and synthesizers).
It's great for learning HDLs, it's great for testing out unfamiliar things and it's great for sharing code.
You can start typing straight away. But to run your code, you'll need to sign or log in. Logging in with a Google account gives you access to all non-commercial simulators and some commercial simulators:
To run commercial simulators, you need to register and log in with a username and password. Registration is free, and only pre-approved email's will have access to the commercial simulators.
202
library IEEE;
use IEEE.std_logic_1164.all;
entity testbench is
end entity testbench;
architecture DUMMY of testbench is
begin
DUT : entity work.EX_DISCONNECT(A1);
end architecture DUMMY;
xxxxxxxxxx
-- THE EXAMPLES ARE DIRECTLY BELOW
library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity EX_DISCONNECT is
end entity EX_DISCONNECT;
----------------------------------------
architecture A1 of EX_DISCONNECT is
signal Foo : STD_LOGIC bus;
disconnect Foo: STD_LOGIC after 10 NS; -- then goes to 'Z'
signal D : STD_LOGIC;
begin
Logic: block (D) is -- block executes while D = '1'
begin
Foo <= guarded D; -- Foo remains '1' for up to 10 NS after D /= '1' then goes to 'Z'
end block Logic;
----------------------------------------
Stim: process
begin
D <= '0';
wait for 20 NS;
D <= '1';
wait for 20 NS;
D <= '0';
wait for 15 NS;
D <= '1';
wait for 5 NS;
D <= '0';
wait for 15 NS;
wait;
end process Stim;
end architecture A1;
Your account is not validated. If you wish to use commercial simulators, you need a validated account.
If you have already registered (or have recently changed your email address), but have not clicked on the link in the email we sent you, please do so. If you cannot find the email, please check your spam/junk folder. Or click here to resend the email.
If you have not already registered for a full account, you can do so by clicking below. You will then need to provide us with some identification information. You may wish to save your code first.
Creating, deleting, and renaming files is not supported during Collaboration. To encourage development of these features for Collaboration, tweet to @EDAPlayground
This playground may have been modified. Please save or copy before starting collaboration.
Your exercise has been submitted.