Combinational Logic I
The Basics
Please Log In for full access to the web site.
Note that this link will take you to an external site (https://shimmer.mit.edu) to authenticate, and then you will be redirected back to this page.
Consider the circuit below:
(i.e. [O_1, O_2] ).
(i.e. [O_1, O_2] ).
(i.e. [O_1, O_2] ).
SystemVerilog
SystemVerilog as a language supports1 all standard logical operations, using C-style syntax, including AND (&&
), OR (||
), XOR (^
) and NOT (!
). Consider the very simple digital logic circuit below:
You can write this in two ways in SystemVerilog. The first using an assign
statement:
assign c = a && b;
And alternatively as an always_comb
. The pros/cons of these two ways will become apparent as you progress in the course.
always_comb begin
c = a && b;
end
Implement the circuit at the top of the page in SystemVerilog.
Once you're done, move on to the next part of this week's assignments :D