This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module pwm_gen #( parameter WIDTH = 8 ) | |
(input clk, | |
input rst, | |
input [WIDTH-1:0] value, | |
output out); | |
reg out = 0; | |
reg [WIDTH-1:0] curr_value = 0; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void bm64_baseisa(const uint64_t in[64], uint64_t out[64]) | |
{ | |
for (int i2 = 0; i2 < 64; i2 += 8) // in[] rows, word index | |
for (int j = 0; j < 8; j++) // in[] columns, bit index | |
{ | |
int j_shift = j*8; | |
uint64_t res = 0; | |
for (int i=0; i<8; i++) | |
res |= ((in[i2+i] >> j_shift) & 0xFF) << (i*8); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:complexType name="port"> | |
<xs:attribute name="name" type="xs:string" use="required" /> | |
<xs:attribute name="is_clock" type="xs:boolean" /> | |
<xs:attribute name="clock" type="xs:string" /> | |
<xs:attribute name="combinational_sink_ports" type="xs:string" /> | |
</xs:complexType> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:complexType name="named_value"> | |
<xs:simpleContent> | |
<xs:extension base="xs:string"> | |
<xs:attribute name="name" type="xs:string" use="required"/> | |
</xs:extension> | |
</xs:simpleContent> | |
</xs:complexType> |