mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-12 14:11:00 +00:00
Progress in presentation
This commit is contained in:
parent
22a998903b
commit
1a487303a0
5 changed files with 109 additions and 3 deletions
14
manual/PRESENTATION_ExOth/scrambler.v
Normal file
14
manual/PRESENTATION_ExOth/scrambler.v
Normal file
|
@ -0,0 +1,14 @@
|
|||
module scrambler(
|
||||
input clk, rst, in_bit,
|
||||
output reg out_bit
|
||||
);
|
||||
reg [31:0] xs;
|
||||
always @(posedge clk) begin
|
||||
if (rst)
|
||||
xs = 1;
|
||||
xs = xs ^ (xs << 13);
|
||||
xs = xs ^ (xs >> 17);
|
||||
xs = xs ^ (xs << 5);
|
||||
out_bit <= in_bit ^ xs[0];
|
||||
end
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue