fix typo in Random.ship
[fleet.git] / ships / Random.ship
1 ship: Random
2
3 == Ports ===========================================================
4 data  out:  out
5
6 == Constants ========================================================
7
8 == TeX ==============================================================
9 == Fleeterpreter ====================================================
10     public void service() {
11     }
12
13 == FleetSim ==============================================================
14
15 == FPGA ==============================================================
16
17   reg [`WORDWIDTH-1:0] out_d;
18   assign out_d_ = out_d;
19
20   always @(posedge clk) begin
21     if (rst) begin
22       `reset
23       out_d <= 0;
24     end else begin
25       `cleanup
26       if (`out_empty) begin
27         out_d <=  {out_d, out_d[17] ~^ out_d[10]}; 
28         `fill_out
29       end
30     end
31   end
32
33 == Test =================================================================
34 #skip
35
36 == Contributors =========================================================
37 Adam Megacz <megacz@cs.berkeley.edu>