Project 3: Always statements in top module?

0 views
Skip to first unread message

Matthew Beckler

unread,
Apr 2, 2013, 2:16:31 PM4/2/13
to 18340-stu...@googlegroups.com, 18340...@googlegroups.com
Hello 18340 students,

One of your classmates wrote in with a good question about project 3:

> Do we need to change the always block for the top module of the FPU?
> This is the part which controls the external registers of the FPU.
>
> Specifically this block:
>
> // Surrounding Registers to Clock the Design
> always @ (posedge clk) begin
> A <= A_reg;
> B <= B_reg;
> Y_reg <= Y;
> SEL = SEL_reg;
> Valid <= 1'b1;
> end
>
> Is this use of the always block permitted, or should we use the flip
> flop module in gatelib.v instead?

This always block will be permitted in your final design. It would be
uninteresting and tedious to convert such common notation to use the DFF
module from our gatelib.v file. Please let us know if you have any questions

-Matthew Beckler
18340 Systems Staff
Reply all
Reply to author
Forward
0 new messages