{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

5c - 31 base_counter counter1(clock,reset,1,temp 32 33...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
exp_5c.v Tue Feb 22 14:58:47 2011 Page 1 1 `timescale 1ns / 1ps 2 ////////////////////////////////////////////////////////////////////////////////// 3 // Company: 4 // Engineer: 5 // 6 // Create Date: 14:14:32 02/22/2011 7 // Design Name: 8 // Module Name: exp_5c 9 // Project Name: 10 // Target Devices: 11 // Tool versions: 12 // Description: 13 // 14 // Dependencies: 15 // 16 // Revision: 17 // Revision 0.01 - File Created 18 // Additional Comments: 19 // 20 ////////////////////////////////////////////////////////////////////////////////// 21 module exp_5c(clock, reset,parity); 22 23 parameter n =42; 24 25 input clock; 26 input reset; 27 output parity; 28 29 wire [n-1:0]temp; 30
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 31 base_counter counter1(clock,reset,1,temp); 32 33 assign parity =^temp; 34 35 36 37 endmodule 38 39 module base_counter(clock,reset, en, Q); 40 parameter n = 42; 41 input clock; 42 input en; 43 input reset; 44 output reg [n-1:0] Q; 45 46 47 48 // Usage of asynchronous resets may negatively impact FPGA resources 49 // and timing. In general faster and smaller FPGA designs will 50 // result from not using asynchronous resets. Please refer to 51 // the Synthesis and Simulation Design Guide for more information. 52 53 54 55 always @( posedge clock or posedge reset) 56 if (reset) 57 Q <= 0; 58 else if (en) 59 Q <= Q + 1; 60 61 endmodule...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern